AI agent · Knowledge

A coach that reads the playbook so advisors don't have to

A network of real-estate advisors had its whole method in one large knowledge base. We built a coaching agent that finds the few sections a question needs and answers from them, instead of sending the entire base to a model on every call.

Book a free callBuilt for SAAFKA

Illustration
AI agent · Knowledge
  1. The advisor asks
  2. Search two ways
  3. Fuse the rankings
  4. Answer from the passages
  5. Guard the stream

The situation

The network's know-how filled a knowledge base of roughly 196,000 tokens. Sending all of it with every question is slow, costly and still loses the right paragraph in the noise. New advisors needed answers in seconds, in the network's own words.

What changed

Each question now pulls only the relevant sections. Two search methods are combined so both meaning and exact terms are found, and a guardrail stops the agent from naming competitors or internal people while it streams its answer.

How it works

5 steps, end to end

  1. 01

    The advisor asks

    A coaching question from inside the network's platform.

  2. 02

    Search two ways

    Semantic search and keyword search run side by side over 962 sections.

  3. 03

    Fuse the rankings

    Both result lists are merged into one ranking of the best passages.

  4. 04

    Answer from the passages

    The model writes a coaching answer from the selected sections only.

  5. 05

    Guard the stream

    Names that must not appear are blocked as the answer streams out.

Where the AI stops

The model writes. The code decides.

The model

  • Writes the coaching answer
  • Adapts the tone to the advisor's question
  • Summarises long sections into steps

The code

  • Selects the sections the model is allowed to read
  • Fuses semantic and keyword rankings
  • Blocks competitor and internal names while streaming

By the numbers

Counts read in the code we shipped. No invented results.

962
sections indexed for retrieval
~196k
tokens no longer sent on every call
2
search methods, rank-fused

Built with

  • Vector search (pgvector)
  • Keyword search (BM25)
  • Rank fusion
  • Streaming guardrail
  • Stateless API

Built for

The client behind it

Real estateSaafkaA network of real-estate advisors: buy, sell, rent and appraise anywhere in Morocco.Read the client story

More use cases

All use cases

All use cases

Contact

let's talk about your project

  • Where we areMorocco, working worldwide
  • Writehello@kaishift.com
  • LanguagesFrench, Arabic, English
Prefer a call? Book 30 minutes

Write to usWe answer the same working day.