From the course: Advanced RAG Applications with Vector Databases

Solution: Cite your document sources

From the course: Advanced RAG Applications with Vector Databases

Solution: Cite your document sources

(bright music) - [Instructor] All right. Let's take a look at how we can solve this challenge. As we mentioned earlier, the names of the documents are all stored in the vector store via document metadata. This means that we can access this information when we retrieve objects from the vector store. We can get our sources via prompt engineering by adding a simple sentence to our prompt. All we have to do to solve this challenge is to tell the llm to cite its sources. And voila, it tells us which documents it found the answer in. Cite your sources. There it is. This information can be found in the first and second document titled "Our Story" and "What We Do" respectively. Now, let's tackle another challenge.

Contents