π Website | π Docs | π Self-Host | π₯οΈ Dashboard
Knowhere is the open-source infrastructure for unstructured data processing. It automates the complex pipeline of extracting, parsing, and transforming messy documents into structured, high-quality data optimized for AI Agents, Agentic RAG, and traditional vector-based RAG workflows.
Note
Get started in seconds with Knowhere Cloud. Avoid the complexity of self-deployment. Use our managed API at knowhereto.ai and enjoy $5 in free credits upon registration.
- May 7, 2026: π Knowhere is now Open Source! We have open-sourced our entire stack for document ingestion, parsing, and agentic RAG. You can now self-host the full platform using knowhere-self-hosted. Check out our Contribution Guide to get involved!
- Apr 30, 2026: π¦ Version 2026.04.30.1 has been released. This update includes several stability improvements and initial support for the agentic RAG layer. See the full changelog for details.
Tip
TL;DR: Knowhere parses documents into structured units, maps them in a graph, and lets agents navigate that context to find and cite reliable evidence.
Knowhere turns raw documents into a structured memory store that AI agents can navigate and cite. The process follows a three-stage pipeline:
flowchart LR
A[π Document Parsing] --> B[πΈοΈ Graph Construction]
B --> C[π€ Agentic Retrieval]
B --> D[π Vector-based RAG]
C --> E[β
Cited Results]
D --> E
Knowhere routes files to specialized parsers for PDFs, Office docs, images, and more. We don't just extract text; we preserve the document's hierarchy:
- Hierarchical Paths: Every chunk knows its exact location (e.g.,
Section 2.1 > Table 4). - Multi-modal Units: Tables and images are treated as distinct assets with their own metadata.
- Structural Awareness: Heading levels and section boundaries are maintained to keep context intact.
Parsed content is organized into a lightweight graph. Itβs designed as a practical map for agents, not a complex ontology.
- Nodes: Represent documents, sections, and chunks.
- Edges: Map semantic relationships (keyword overlap, summaries) and structural links. This graph helps agents quickly understand what a document is about and which neighboring files might be relevant.
An agent navigates the memory graph to find evidence rather than relying on a single vector lookup:
- Hybrid Discovery: Fuses keyword and semantic search (RRF) for broad first-pass coverage.
- Agent Navigation: The agent "walks" the graph, reviewing section previews to drill down into the most relevant paths.
- Cited Evidence: Results are returned as traceable evidence β source document, section, chunk, and any linked image or table assets.
For teams that prefer a pure retrieval pipeline without agent overhead, Knowhere's parsed chunks plug directly into standard vector stacks:
- Dense Search: Chunk embeddings stored in Qdrant, pgvector, or Milvus for fast ANN lookup.
- Sparse Search: BM25 term index for keyword-sensitive queries.
- Multi-channel Fusion: Dense and sparse results are fused with RRF before being returned, giving you the best of both signals.
| Repository | Description |
|---|---|
| knowhere | This repo. Backend API and worker β document ingestion, parsing, graph construction, and retrieval. |
| π₯οΈ knowhere-dashboard | The web UI. Connects to the API for the full product experience. |
| π³ knowhere-self-hosted | Docker Compose stack for self-hosted deployments. Packages the API, worker, and dashboard together. |
| π knowhere-python-sdk | Official Python SDK for the Knowhere Cloud API. |
| π¦ knowhere-node-sdk | Official Node.js SDK for the Knowhere Cloud API. |
- Multi-modal Parsing: High-fidelity extraction from PDF, Office, and images, preserving headings, tables, and hierarchical paths.
- Lightweight Memory Graph: Context-aware organization that links documents and chunks for better relationship understanding.
- Agentic RAG: A hybrid retrieval engine combining traditional search (RRF) with autonomous agent navigation.
- Evidence-based Citations: Every result is backed by traceable source paths, ensuring reliability for AI Agent decision-making.
β Supported
-
.pdf.docx.pptx.xlsx.csv -
.jpg.png -
.md.txt.json
β³ Coming Soon
-
.epub.html.xml -
.mp4.mp3 -
.skills.md
Want to see a new format supported? Adding a parser is a great first contribution. Check out CONTRIBUTING.md to get started.
- Python 3.11+
uv- Docker with
docker compose
- Sync the workspace dependencies:
uv sync --all-packages- Copy the environment examples:
cp apps/api/.env.example apps/api/.env
cp apps/worker/.env.example apps/worker/.env- Update the copied
.envfiles with the values you need for local work:
- database and Redis connection settings
- S3-compatible storage credentials
DS_KEY- any optional LLM, billing, or webhook providers you want to enable
- Start the local infrastructure stack:
./deploy/local-dev/start-dev.sh- Start the API and worker in separate terminals:
cd apps/api && uv run main.py
cd apps/worker && uv run worker.pyThe API runs migrations during startup.
For API-only development without the dashboard, create an API-only user/key after the API service starts:
cd apps/api
uv run scripts/init_user.py --email you@example.comIf you plan to use the dashboard, register through the dashboard instead of
using scripts/init_user.py.
The API is now running at http://localhost:5005. If you want the full product experience with a UI, run the knowhere-dashboard alongside it β it connects to this API out of the box.
Run lint checks from the repository root:
make lintApply safe Ruff fixes:
make lint-fixRun type checks across the API, worker, and shared source code:
make typecheckRun both lint and type checks:
make check- API:
http://localhost:5005 - OpenAPI docs:
http://localhost:5005/docs - LocalStack:
http://localhost:4566 - PostgreSQL:
localhost:5432 - Redis:
localhost:6379
- External dependency guide: docs/external-services.md
If you use Knowhere in your research, please cite it as:
@software{knowhere2026,
author = {Ontos AI},
title = {Knowhere: Prepare Unstructured Data for AI Agents},
year = {2026},
publisher = {GitHub},
url = {https://github.com/Ontos-AI/knowhere},
version = {2026.04.30.1},
license = {Apache-2.0}
}- GitHub Discussions for questions, ideas, and general conversation.
- GitHub Issues for bug reports and feature requests.
Any contributions to Knowhere are more than welcome!
If you are new to the project, check out the good first issues. They are well-defined, relatively simple, and a great way to get familiar with the codebase and the contribution workflow.
For general guidelines on branching, commit conventions, and the review process, take a look at CONTRIBUTING.md.
Other useful references:
- SECURITY.md β how to report vulnerabilities responsibly.
- CODE_OF_CONDUCT.md β community behavior expectations.
- LICENSE and NOTICE β Apache 2.0.
We're building the knowledge layer for the Agent era. If that sounds like work you want to do, reach out β decode the address below and drop us a line:
echo 'dGVhbUBrbm93aGVyZXRvLmFp' | base64 --decode