Search⌘ K
AI Features

RAG-Powered Support Assistant API Design Decisions

Explore how a RAG-powered support assistant turns authorized documents into searchable evidence and cited answers. Learn to separate ingestion from query workflows, apply permissions and freshness rules, use hybrid retrieval, support streaming, and handle missing evidence, retries, deletion, and feedback reliably.

The requirements establish that support answers must use authorized evidence, provide inspectable citations, and handle insufficient information without guessing. Meeting these requirements depends on how documents become searchable and how each question retrieves and uses that knowledge.

This lesson traces the ingestion and query workflows, then examines the choices for asynchronous processing, retrieval, permissions, freshness, streaming, and reliability. These decisions will guide the resources, endpoints, and message formats defined in the next lesson.

Design overview

The RAG-powered support assistant API consists of four main services: knowledge management, ingestion, question answering, and conversation and feedback. Clients access these services through the API gateway to manage documents, track processing, ask questions, and report answer quality.

  • The knowledge management service manages knowledge bases, document versions, and access policies.

  • The ingestion service processes accepted documents asynchronously and publishes searchable content.

  • The question answering service retrieves authorized evidence and generates answers with citations.

  • The conversation and feedback service preserves question context and records feedback linked to answers.

These are logical responsibilities rather than a requirement to deploy four separate services. They cooperate across two workflows: preparing documents for search and answering questions from published knowledge.

High-level design of the RAG-powered support assistant API
High-level design of the RAG-powered support assistant API

The following components support these workflows:

Component

Responsibility

Document and metadata storage

Stores source content, versions, ownership, permissions, and processing records

Ingestion workers

Extract text, create chunks, generate embeddings, and update indexes

Search service

Provides permission-constrained keyword and vector retrieval

Identity and authorization services

Establish caller identity, tenant scope, and permitted content

Conversation service

Stores messages and relevant follow-up context

Retrieval and evidence assembly

Ranks candidates and selects a bounded set of supporting passages

Generation and streaming service

Produces screened answer text with references to selected evidence

Evaluation and monitoring

Records processing outcomes, evidence references, feedback, latency, and usage

These are logical responsibilities, not a requirement to deploy a separate service for every row. Document identity, version, source location, and permission metadata must remain associated with each chunk. That association supports access checks, citations, updates, and deletion. ...