How to Build a Retriever From Scratch for a Support System
Say you run support for a bank. A customer opens the chat and asks:
What are the terms of the family mortgage?
You have to answer. Instead of reaching for a framework or the "ideal" RAG diagram, let's just build it. Start with the simplest thing, and fix each part when it breaks.
You have to answer. Instead of reaching for a framework or the "ideal" RAG diagram, let's just build it. Start with the simplest thing, and fix each part when it breaks.
What answering needs
To answer that one question, you do two things:
- Find the internal document with the answer.
- Use that document to write the reply.
That is the whole system. One half searches. The other half answers.
The system splits in two: a search half that finds the document, and an answer half that writes the reply.
Start with the answer half. It is easier.
...
Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE