examples/document-qa-example/README.md
This example demonstrates how to use the LangChain Go library to perform question answering on documents using two different approaches: Stuff QA and Refine QA.
It sets up an OpenAI language model (LLM) client.
It demonstrates two methods of question answering:
a) Stuff QA Chain:
b) Refine QA Chain:
For each method, it:
go run document_qa.goThis example showcases two different approaches to document QA, allowing you to compare their usage and effectiveness for different scenarios. The Stuff QA method is simpler and faster for small document sets, while the Refine QA method can handle larger document sets by processing them iteratively.
Happy questioning! 📚🔍