Workflow
Answer questions from your own documents
Build a small assistant that answers from a set of documents and shows where each answer came from.
The guide. Intermediate, about 90 minutes
Problem to solve
A general assistant does not know your internal documents and will guess when asked about them.
Before you start
A folder of documents you are allowed to process, and an API key for a model provider.
Steps
1. Collect the documents and remove anything that should not be searchable. 2. Split them into passages and create an embedding for each one. 3. Store the passages and embeddings in a vector database. 4. For each question, retrieve the closest passages and give them to the model with an instruction to answer only from them. 5. Show the source passages next to every answer. 6. Write twenty real questions with known answers and use them to measure changes.
What you’ll need.
- TechniqueRetrieval-augmented generation (RAG)technique
- ConceptEmbeddingstechnique
- ConceptVector databasesstorage
- FrameworkLlamaIndexframework
- TechniqueEvalstesting
Signals. What has been measured, and where.
Insufficient data
No trend history or community ratings have been measured for this entry. When they are, they will appear here with their sources.