Skip to content
Artificial Intelligence

Tataco AI

A grounded conversational layer over private company knowledge, engineered so that every answer can be traced back to a source document.

Year
2025
Type
Retrieval-grounded assistant platform
Status
Live
Audience
Support, operations and commercial teams working across large private document sets.
Tataco AI system visual
01Overview

The context.

Tataco AI gives internal teams a single place to ask questions of scattered documentation, contracts and operational records.

The system is retrieval-first: the model is never asked to remember, only to summarise what retrieval has already proven.

Answers ship with citations, and any answer without sufficient supporting context is refused rather than improvised.

02Problem

What was actually broken.

Pain observed
  • Knowledge lived in inboxes, drives and individual memory.
  • New team members took months to become independently productive.
  • Generic assistants produced confident answers that were quietly wrong.
  • Sensitive documents could not be sent to third-party model providers.
Business risk

Slow response times and inconsistent answers to the same customer question.

Technical constraint

Grounding generation in a private corpus while keeping latency conversational and data residency intact.

03Solution

What was engineered.

  • A hybrid retrieval pipeline combining vector similarity with lexical search, then re-ranking before any generation occurs.
  • Document ingestion normalises formats, preserves structure, and chunks along semantic boundaries rather than fixed token windows.
  • Answer synthesis is constrained to retrieved context, with inline citations and an explicit refusal path.
  • Access control is applied at retrieval time, so a user can never be cited a document they cannot open.
04Architecture

Layer by layer.

Frontend

Streaming conversation interface with citation panel and source preview.

  • React
  • TypeScript
  • Server-sent events
Backend

Retrieval orchestration, re-ranking and generation gateway.

  • Python
  • FastAPI
  • LangGraph-style orchestration
API

Streaming answer endpoint plus ingestion and evaluation APIs.

  • REST
  • SSE
  • OpenAPI
Database

Vector index alongside relational metadata and permission tables.

  • PostgreSQL
  • pgvector
Search

Lexical index fused with dense retrieval for hybrid recall.

  • BM25
  • Hybrid fusion
  • Cross-encoder re-rank
Infrastructure

Containerised inference and API services with autoscaling workers.

  • Docker
  • Queue workers
  • CI/CD
Authentication

SSO-backed identities with document-level authorisation at query time.

  • OIDC
  • JWT
  • ACL filters
Storage

Encrypted document store with versioned ingestion history.

  • Object storage
  • AES-256
  • Versioning
05Decisions

The why behind each trade-off.

Why retrieval-grounded generation instead of fine-tuning?

Company knowledge changes weekly. Retrieval updates in minutes and stays attributable; a fine-tune is a slow, opaque snapshot of yesterday's truth.

Why local and private inference paths?

Some corpora legally cannot leave the customer boundary. Supporting a self-hosted model path meant the same product could serve regulated and unregulated clients.

Why pgvector instead of a dedicated vector database?

Permissions, metadata and embeddings need to be filtered together in one query. Splitting them across stores turns authorisation into a race condition.

Why hybrid retrieval?

Dense retrieval misses exact identifiers; lexical search misses paraphrase. Fusing both raised answerable-question coverage far more than any prompt change did.

06Challenges

What resisted.

  • AI limitations

    The hardest engineering was teaching the system to decline. Refusal thresholds were tuned against a labelled evaluation set, not vibes.

  • Performance

    Re-ranking added quality and latency. Streaming the first tokens while re-ranking completed kept the interaction responsive.

  • Security

    Authorisation is enforced inside the retrieval query, so no permission check can be bypassed by a clever prompt.

  • Evaluation

    A regression suite of real questions with graded answers runs on every change, because prompt edits are code changes.

07Lessons

What it taught.

  • An AI product is a retrieval and evaluation product wearing a conversational interface.
  • Citations are not a UI feature; they are the mechanism that makes the output verifiable.
  • A system that knows when to stay silent earns more trust than one that always answers.
08Results

Measured, not claimed.

1.4s

Answer latency

Median time to first streamed token.

100%

Citation rate

Every generated answer carries sources.

94%

Refusal precision

Correct declines on unanswerable set.

50k+ docs

Corpus

Indexed with permission-aware retrieval.

09Gallery

The system in context.

Retrieval pipeline: ingest, chunk, embed, fuse, re-rank.
Retrieval pipeline: ingest, chunk, embed, fuse, re-rank.
Citation-first answer surface with source preview.
Citation-first answer surface with source preview.

Technology stack

Frontend
  • React
  • TypeScript
  • Tailwind CSS
  • SSE
Backend
  • Python
  • FastAPI
  • Async workers
AI
  • Embeddings
  • Cross-encoder re-rank
  • Local inference
Data
  • PostgreSQL
  • pgvector
  • Redis
Infrastructure
  • Docker
  • CI/CD
  • OpenTelemetry
Next case studyFiveM Infrastructure