Indexing: load documents, clean and chunk them, create embeddings, and store vectors with metadata in a vector database (plus an optional keyword index).
Retrieval: embed the query, run similarity (or hybrid) search with metadata filters, and optionally rerank.
Generation: build a prompt from the question and top chunks, instruct the model to answer only from the context and cite sources, then return the answer.
Around it: evaluation, monitoring, access control, caching and refresh of the index as documents change.
Loading…