All Questions
Rag And Retrieval easy

Your product requires every RAG answer to include clickable source citations that users can verify. How should those citations be produced?

  1. A Ask the LLM to recall the URL of the source it originally learned each fact from in training.
  2. B After generation, run a web search on the answer text and link the top-ranked search result.
  3. C Embed the final answer text and cite whichever indexed chunk lies nearest to it in vector space.
  4. D Pass retrieved chunks with IDs, have the model cite those IDs, and map IDs to source links.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions