Split your docs, store them in Qdrant and answer questions with the right passages in the prompt.
Out on Sunday 15 November10 minutes, one build start to finish
Why this matters
A chatbot that answers from your own documentation is often the first useful AI feature a team ships. The quality depends on finding the right passages and citing them, so readers can check every answer.
What you build
A chatbot that answers from your own documents and cites the page it used.
Split your docs into passages and embed them.
Store them in Qdrant with the page each one came from.
Search for the passages closest to a question.
Answer with those passages in the prompt, and cite the page.
The ideas behind it
Chunking
Splitting docs into passages small enough to retrieve and large enough to make sense.
Embeddings and vector search
Each passage is turned into numbers so the closest ones to a question can be found.
Grounded answers with citations
The model answers from the retrieved passages and names the page each came from.
Before you start
You need
Python, Docker to run Qdrant, and an LLM API key.
Length
About 10 minutes, one build start to finish.
Questions
Why Qdrant?
It is open source, runs in one Docker container and is fast to start. Other vector databases work the same way.
How do I stop made-up answers?
Answer only from retrieved passages, cite them and say so when nothing relevant is found.
How do I keep it up to date?
Re-index pages when they change, keyed by the page they came from.
Is the recorded lab free?
Yes. Watch it any time, follow the steps and keep the code you build.
How is it different from a Live Lab?
A recorded lab is one short build you follow on your own. A Live Lab builds a bigger part of the system in an hour, with time for your questions.