Quest 08 Β· Developers
RAG: making an AI find documents and answer from them
I am the guild librarian. Members ask me about the rules every day, but the rulebook is 300 pages, so even I take ages to find things.
It would be wonderful if Ari could read the rulebook and answer for me. The rules change every few months.
I have never learned the guild rulebook. As in request 3, you would have to hand me the material. But if I am handed 300 pages every timeβ¦
Summary
How do you get an AI to answer from a 300-page rulebook? Through the guild library's request, learn the structure of RAG, which cuts documents into pieces and finds the right ones, and where to look first when an answer is wrong.
Pick a document you have (a manual, rules, meeting notes), remove personal details, and paste it into an AI with the request below. It is a small RAG done by hand.
Answer my question using only the document below. - Quote the part your answer is based on, word for word. - If the document has no basis for an answer, reply only "Not in the document". Question: [question] Document: [paste the document here]