The team indexed rulebooks from PDFs, keeping section sequence and adding summaries and business metadata to text chunks. They converted tables to CSV because plain text extraction could lose relationships between rows and columns, leading to incorrect answers about details such as fees.
Your Fridge Is a Valid Payment Device
Speakers
Eleonora Drykina and Nina Žižakić, engineers at Belgian technology studio In The Pocket, explain how they built an AI rulebook assistant and what they learned from its use.
Dense embeddings find semantically similar passages, while BM25 finds exact terms such as rule codes and message names. Combining their results with Reciprocal Rank Fusion raised hit rate on 63 questions from 92% to 97%, without losing questions dense search had found. The agent can then retrieve a section, a document path, or a small full rulebook when its initial 10 chunks are not enough.
Answers take an average of 38 seconds, so the team streams Markdown as it is generated and adds a clickable source card when ready. They log questions, tool calls, answers, feedback, source clicks, and copies in Azure Table Storage, while keeping the conversation context to the latest 20 messages.
The team built about 86 end-to-end tests from real questions, user testing, and behavioral guidelines, including citing the right source and saying when a rulebook has no answer. They found that LLM evaluations can be noisy and that an evaluation prompt can wrongly penalize content that is actually in a rulebook. After launch, they saw about 900 questions across more than 100 conversations from around 34 active users; by the third month, over 90% of questions were genuine.
Drykina says preserving document structure, handling tables carefully, and giving the agent multiple retrieval scopes improved the system. Streaming made the slower experience usable, while structured interface components were added where they helped. Early user interviews also helped the team shape evaluation prompts and judge proposed improvements.
Takeaways
- Keep section and table structure when indexing documents so retrieval preserves the meaning of rules and fees.
- Use hybrid search when users need both semantic matches and exact identifiers; measure retrieval on representative questions.
- Give agents retrieval tools with different scopes, plus limits and recovery paths for oversized documents or unmatched sections.
- Stream long-running answers and add interactive source components when they are ready.
- Build evaluations from real user questions, repeat noisy LLM evaluations, and check that the evaluator itself is correct.
Mentioned in this talk
Search inside this talk
What was claimed 11
- works atEleonora Drykina works at
In The Pocket“we work at In The Pocket”
YouTube Verified2 sources· Talk, Web· archived
- works atNina Žižakić works at
In The PocketMachine Learning Engineer“I’m an engineer, and we work at In The Pocket”
YouTube Unverified2 sources· Talk, Web· archived
- uses
“using Reciprocal Rank Fusion”
YouTube Unverified1 source· Talk
- uses
In The Pocket uses Qdrant
“we combined both in one Qdrant call”
YouTube Unverified1 source· Talk
- metrichybrid search: Hit rate rose from 92% to 97% on 63 questions compared with dense embeddings alone
“raised the hit rate from 92% to 97%”
YouTube Unverified1 source· Talk
- metricRulebook assistant: Average response time: 38 seconds
“an average of 38 seconds per answer”
YouTube Unverified1 source· Talk
- uses
“we chose ... Azure Table Storage”
YouTube Unverified1 source· Talk
- metricRulebook assistant: About 86 end-to-end evaluation tests
“We have about 86 end-to-end tests”
YouTube Unverified1 source· Talk










