Skip to content
Neeraj Kumar
All work

Case study 03 · HostBooks · 2024 – 2026

Enterprise RAG at 10M+ embeddings

A hybrid retrieval platform over 10M+ embeddings. Organisations upload and query their documents conversationally, with cited, streamed answers and organisation-level data isolation.

Embeddings in production
10M+
Embeddings in production
Query resolution rate
95%
Query resolution rate
Latency
<50ms
Latency

Python · FastAPI · Qdrant · SPLADE · BM25 · Cross-encoder · SSE · Prometheus

The problem

Much of the information enterprises need is held in documents: financial records, compliance manuals and operating procedures. Zeno AI needed reliable access to that content to answer questions and act on a business's behalf.

Financial and compliance text contains many exact identifiers, codes and defined terms. Semantic search on its own can retrieve the wrong passage, so retrieval needed keyword and sparse signals as well.

Scale & constraints

  • 0110M+ document embeddings
  • 02Strict separation of data between organisations
  • 03Mixed formats: PDF, DOCX, Markdown and plain text
  • 04Answers must cite their sources

Architecture

Documents are chunked with a strategy chosen per collection, embedded and stored with organisation-level isolation. At query time, dense, SPLADE and BM25 retrievers run in parallel, Reciprocal Rank Fusion merges the results, a cross-encoder reranks the shortlist, and the answer streams back with citations.

Ingestion

Index

Org-level isolation · RBAC

Retrieval

In parallel

Ranking

Answer

Bedrock · Vertex AI · Anthropic · OpenAI · Groq

Step 1 of 5 · Ingestion

Ingestion

Documents are ingested and split using the chunking strategy configured for each collection.

Select any component to explore it.

Key decisions

  1. 01

    Hybrid retrieval

    Dense embeddings capture meaning, SPLADE adds learned sparse signals, and BM25 catches exact terms such as account codes and section numbers. Reciprocal Rank Fusion combines the three to improve recall before reranking.

  2. 02

    Chunking per collection

    Fixed-size, semantic, parent-child and late chunking are available and configured per collection, since different document types need different chunking.

  3. 03

    Model choice per collection

    Each collection can use AWS Bedrock, Google Vertex AI, Anthropic, OpenAI or Groq, selected through configuration rather than code changes.

  4. 04

    Access control and resilience

    JWT authentication, role-based access control and organisation-level isolation keep data separated. Crash recovery for stuck documents, local-first model loading and Prometheus metrics support reliable operation.

My role

Shipped Enterprise RAG in August 2024 as DGM of Engineering & Product. Set the retrieval architecture, the multi-tenant data model and the model-provider strategy, and led its delivery to production.

Outcomes

  • 95% query resolution rate
  • Sub-50ms latency
  • 10M+ embeddings in production
  • Answers with citations, in-document highlighting and confidence scoring

Next case study · GenAI AP/AR Automation

Invoice processing: 30 minutes to 20 seconds