How to Build a Responsible AI Chatbot Using Open Technologies 7 Sections35 Lessons5 QuizzesLifetime
Semantic search
Keyword search looks for matching strings. Semantic search looks for related meaning. When a student asks a question:
- The question becomes an embedding.
- The vector database compares it with stored chunk embeddings.
- The closest chunks are returned.
- A distance score estimates how similar each chunk is.
The repository normally selects up to five chunks. It prefers chunks below a similarity-distance threshold, but if none pass, it currently falls back to the closest available results. That fallback keeps the system answering, but it can also increase the chance of weakly grounded answers.
