Welcome to the ContextIQ documentation! This guide will help you understand, deploy, and develop with ContextIQ.
- Main README - Project overview and quick start
- Architecture Overview - System design and components
- API Usage Guide - How to use the ContextIQ APIs
- Deployment Guide - Local, Docker, and production deployment
- Database Migrations - Managing schema changes with Alembic
- Authentication Guide - JWT tokens, API keys, and permissions
- Development Guide - Setting up your development environment
- System Architecture - Detailed architecture documentation
- Data Models - Database schemas and models
- Processing Layer Guide - Core processing engines (extraction, consolidation, embedding, revision tracking)
- Messaging System Guide - RabbitMQ messaging system with queues, publishers, and consumers
- Memory Lifecycle Guide - Complete journey from sessions to memories (extraction and consolidation)
- Embeddings Guide - Text embeddings with OpenAI (models, configuration, optimization)
- Vector Search Guide - Qdrant vector database and similarity search
- Agent Engine Memory Bank Research - Research notes on Google's approach
- Context Engineering Paper Summary - Summary of Google's Sessions & Memory whitepaper
- Anthropic Context Engineering - Anthropic's perspective on context engineering
...get started quickly
- Read the Main README Quick Start section
- Follow the Deployment Guide for local setup
- Review API Usage Guide for first API calls
...deploy to production
- Read the Deployment Guide Production section
- Configure Authentication properly
- Set up Database Migrations workflow
...contribute code
- Follow the Development Guide setup
- Understand the Architecture
- Review code quality standards in Development Guide
...integrate with my AI agent
- Review API Usage Guide for authentication
- See Sessions API examples
- See Memory API examples
...understand the system design
- Read Architecture Overview
- Review System Architecture details
- Study Data Models
...understand embeddings and vector search
- Read Embeddings Guide for text embedding details
- Read Vector Search Guide for similarity search
- Review API Usage Guide for memory search examples
...manage database changes
- Read Database Migrations Guide
- Learn migration commands and patterns
- Understand production migration strategies
...configure authentication
- Read Authentication Guide
- Generate JWT secrets and API keys
- Configure middleware in your services
...understand how messaging works
- Read Messaging System Guide for RabbitMQ details
- Learn about queue patterns and message flows
- Review publisher and consumer examples
...understand how memories are created
- Read Memory Lifecycle Guide for end-to-end flow
- Learn about extraction with LLM (Anthropic Claude)
- Understand consolidation and deduplication
- Review embedding generation and vector storage
...understand the processing layer
- Read Processing Layer Guide for architecture details
- Learn about the four core engines and their interactions
- Understand how processing fits between services and storage
- Review configuration and optimization strategies
Files in the docs/ root directory cover essential topics:
- Architecture, API usage, deployment, development
- Authentication, database migrations
- Research and background materials
The docs/architecture/ directory contains detailed technical documentation:
- System architecture diagrams and explanations
- Data models and database schemas
- Design decisions and rationale
The docs/pr_summaries/ directory contains:
- Summaries of major pull requests
- Implementation notes
- Migration guides for breaking changes
When updating documentation:
- Keep it up to date: Update docs when code changes
- Cross-reference: Link to related documentation
- Use examples: Show code examples where relevant
- Be comprehensive: Cover common use cases and edge cases
- Follow markdown best practices: Use headers, code blocks, lists
- Use clear, concise language
- Include a table of contents for documents > 200 lines
- Use code blocks with language hints (
python,bash) - Link to other docs using relative paths
- Keep line length reasonable (100-120 characters)
- Use meaningful heading hierarchy (# → ## → ###)
If you can't find what you're looking for:
- Search existing documentation
- Check GitHub Issues
- Ask in GitHub Discussions
- Review the code - it's well-commented!
Planned documentation additions:
- Performance tuning guide
- Monitoring and observability setup guide
- Troubleshooting guide with common issues
- Integration guides for popular frameworks (LangGraph, CrewAI, etc.)
- API client SDK documentation (Python, TypeScript)
- Advanced deployment patterns (K8s, multi-region, etc.)
- Security best practices guide
- Backup and disaster recovery guide
Last Updated: December 2024
For questions or suggestions about documentation, please open an issue on GitHub.