Crain IQ Documentation
This folder (/docs/**) is the canonical documentation source for this repo.
- In-app docs at
/docs(when running the app) should render content from this folder. - Anything in
/docs-archive/**is historical and may be inaccurate.
Getting started
Architecture
- Architecture Overview
- System Design
- Data Flow
- Temporal Search
- Session Context
- Multi-brand Routing
- Streaming responses
- Streaming refactor report (archived)
API
RAG pipeline
Security, reliability, and observability
Data + database
Development + deployment
Operations
- Operations overview
- Ingestion runbook - Scheduled content ingestion
- FTS index runbook - Full-text search index maintenance
Evaluation + testing
Archived documentation
See /docs-archive for historical/superseded docs.
Documentation standards
- Keep content concise and factual.
- Prefer linking to code over duplicating code.
- Avoid emojis (they create noise and tend to age poorly).
- When docs and code conflict, update docs.
Last updated: 2025-12-30