How onyx-dot-app/onyx works
Onyx is a team knowledge and AI-assistant platform: it ingests connected-source content and permissions into an internal representation, then retrieves relevant context for chat, agents, and other clients. The graph includes the documented agent, web-search, action, sandbox, and artifact capabilities, but their implementation paths are not established by the sampled sources. Indexing and shared storage links are grounded in the source index and excerpts; other feature relationships are documented at the README level.
Main entry points: query_backend.py Query and chat · runtime.py Custom agents · indexing_pipeline.py Indexing pipeline · document_batch_storage.py Document batches
Components 22
Knowledge ingestion
- Source connectors
backend/onyx/connectors/models.py - Indexing pipeline
backend/onyx/indexing/indexing_pipeline.py - Document batches
backend/onyx/file_store/document_batch_storage.py - File store
backend/onyx/file_store/file_store.py - Knowledge index
backend/onyx/db/document.py
Query and retrieval
- Query and chat
backend/ee/onyx/server/query_and_chat/query_backend.py - Search processing
backend/ee/onyx/search/process_search_query.py - Search pipeline
backend/onyx/context/search/pipeline.py - Access controls
backend/onyx/access/access.py
AI capabilities
- Custom agents
backend/onyx/agents/runtime.py - Deep research
backend/onyx/agents/agent_coordination.py - Web search
backend/onyx/agents/tools.py - External actions
backend/onyx/agents/tool_execution.py - Secure sandbox
microvm/cmd/host-agent/main.go - Artifacts
backend/onyx/agents/runtime.py - LLM providers
backend/onyx/configs/llm_configs.py
Shared platform
- Model inference
backend/model_server/main.py - SQL database
backend/onyx/db/engine/sql_engine.py - Runtime configuration
backend/onyx/configs/app_configs.py - Cache interface
backend/onyx/cache/interface.py
Other components
- User
- Product clients
Connections 23
- User → Product clients: asks through
- Product clients → Query and chat: submits queries
- Source connectors → Indexing pipeline: provides documents
backend/onyx/indexing/indexing_pipeline.py - Indexing pipeline → Document batches: stores batches
backend/onyx/indexing/indexing_pipeline.py - Document batches → File store: uses storage
backend/onyx/file_store/document_batch_storage.py - Indexing pipeline → Knowledge index: indexes documents
backend/onyx/indexing/indexing_pipeline.py - Query and chat → Search processing: processes queries
- Query and chat → Search pipeline: retrieves context
- Search processing → Knowledge index: searches knowledge
- Query and chat → Access controls: enforces access
- Query and chat → Custom agents: runs agents
- Custom agents → Deep research: coordinates research
- Custom agents → Web search: uses web search
- Custom agents → External actions: takes actions
- Custom agents → Secure sandbox: executes code
- Custom agents → Artifacts: generates artifacts
- Query and chat → LLM providers: requests generation
- LLM providers → Model inference: uses inference
- Indexing pipeline → SQL database: persists metadata
backend/onyx/indexing/indexing_pipeline.py - Query and chat → SQL database: reads records
- Indexing pipeline → Runtime configuration: uses configuration
backend/onyx/indexing/indexing_pipeline.py - Query and chat → Runtime configuration: uses configuration
- File store → Cache interface: uses cache
backend/onyx/file_store/file_store.py