by rahimnathwani · 2y ago · 0 comments
I used OpenAI's function calling (via Langchain's https://python.langchain.com/v0.1/docs/modules/model_io/chat... API).
Some of the challenges I had:
1. poor recall for some fields, even with a wide variety of input document formats
2. needing to experiment with the json schema (particularly field descriptions) to get the best info out, and ignore superfluous information
3. for each long document, deciding whether to send the whole document in the context, or only the most relevant chunks (using traditional text search and semantic vector search)
4. poor quality OCR
From the demo video, it seems like your main innovation is allowing a non-technical user to do #2 in an iterative fashion. Have I understood correctly?
OOC which openai model were you using? Would recommend trying 4o as well as Anthropic claude 3.5 sonnet if ya haven't played around with those yet
I was using gpt-3.5-turbo-0125. It was before the recent pricing change.
But I have a bunch of updates to make to the json schema, so will re-run everything with gpt-4o-mini.
Sonnet seems a lot more expensive, but I'll 'upgrade' if the schema changes don't get sufficiently good results.
I'm curious about what types of source documents you tried, and whether you ever suffer from hallucinations?