Knowhere क्या है?
Knowhere उलझे दस्तावेज़ों को hierarchy-native मेमोरी में बदलें, जिसे agents नेविगेट कर सकें और cite कर सकें. यह Retrieval & Knowledge (RAG) टूल्स की Parsing & Ingestion श्रेणी में आता है; ओपन सोर्स है, Python में लिखा गया है और Apache-2.0 लाइसेंस के तहत है। शुरू करने के लिए: dependencies इंस्टॉल करें.
सारांश
Knowhere agent workloads के लिए एक दस्तावेज़ parsing और retrieval सिस्टम है। इसकी बुनियादी सोच यह है कि पारंपरिक OCR और document-intelligence pipelines में retrieval से पहले हर element को सटीक रूप से निकालना ज़रूरी होता है। लेकिन गंदे PDFs और slide decks पर reading order, layout, tables या छिपी हुई text layers में आई गड़बड़ियाँ जमा होकर भरोसेमंद context को खराब कर देती हैं। इसके बजाय Knowhere दो tracks पर parse करता है: एक Text Track, जो जहाँ structure भरोसेमंद है वहाँ उसे वैसा ही रखता है, और एक Vision Track, जहाँ frontier vision models PDF page या PowerPoint slide को पूरे रूप में समझते हैं।
दोनों tracks एक ही chunk और metadata schema पर आते हैं, इसलिए आगे का सब कुछ — storage, hierarchy, graph construction, retrieval — format पर निर्भर नहीं करता। एक run का नतीजा chunks का ढेर नहीं, बल्कि navigable मेमोरी होता है: section nodes, जिनमें document paths, page ranges, summaries, entities और linked assets रहते हैं, साथ ही page से निकले typed entities और keywords से बना cross-document graph। Images और tables निकाले जाते हैं, VLM से summarise किए जाते हैं और उस section से जोड़े जाते हैं जहाँ से वे आए थे। नतीजों में source document, section path, page number और citation के लिए rendered visual evidence सुरक्षित रहते हैं।
Retrieval जानबूझकर agent-neutral रखा गया है। Knowhere एक corpus schema और hierarchy-aware tools का सेट देता है — document outlines, structural filters, exact search, fuzzy recall, full reading, assets और cross-document relationships — और यह तय करना agent पर छोड़ता है कि कौन-सा tool कब कॉल करना है और कितनी गहराई तक traverse करना है, बजाय इसके कि हर query को एक तय pipeline से गुज़ारा जाए। यही contract built-in agents के साथ-साथ MCP के ज़रिए बाहरी agents को भी मिलता है, और जब deterministic lookup चाहिए तो classic top-K retrieval भी उपलब्ध है। यह प्रोजेक्ट model-agnostic है; API, worker, dashboard, Docker stack और Python/Node SDKs सभी Apache-2.0 के तहत जारी किए गए हैं।
यह क्या करता है
- Dual-track parsing — जहाँ भरोसेमंद native structure है वहाँ Text Track, और जटिल PDFs व .pptx के लिए Vision Track, जिसमें vision model page-by-page समझता है
- दोनों tracks के लिए एक hierarchy-native मेमोरी schema: section paths, page ranges, summaries, entities, linked assets
- Namespace भर में page से निकले typed entities और keywords से बना cross-document memory graph
- Agent-native retrieval: outlines, structural filters, exact search, fuzzy recall, full reading और relationship tools, जिन्हें MCP पर कॉल किया जा सकता है
- Page-grounded citations, जो documents, sections, page numbers और rendered visual evidence तक वापस ले जाते हैं
- VLM-assisted image और table handling, जो उनके source section nodes से जुड़े रहते हैं
- OpenAI, Qwen, GLM, DeepSeek, Volcengine और अन्य compatible providers के साथ model-agnostic
- Self-hostable stack (API, worker, dashboard, Docker Compose) और hosted API के लिए official Python और Node SDKs
शुरू करें
लोकल तौर पर backend चलाने के लिए Python 3.11+, uv और docker compose के साथ Docker चाहिए। समर्थित inputs ये हैं: .pdf और .pptx (V2 Jobs API के ज़रिए Vision Page), .doc/.docx/.xls/.xlsx, images, और .md/.txt/.html/.json।
Dependencies इंस्टॉल करें
Repository clone करें और workspace sync करें।
uv sync --all-packagesServices कॉन्फ़िगर करें
Environment examples को copy करें और database व Redis settings, S3-compatible storage credentials, और कम से कम एक LLM provider key (DS_KEY, ALI_API_KEYS, GPT_API_KEY या GLM_API_KEY) भरें। V2 PDF और PowerPoint parsing के लिए इसके अलावा एक vision-capable provider भी चाहिए।
cp apps/api/.env.example apps/api/.env
cp apps/worker/.env.example apps/worker/.envInfrastructure, API और worker शुरू करें
Local stack शुरू करें, फिर API और worker को अलग-अलग terminals में चलाएँ। जब schema अपडेट करना हो, तब migrations explicitly चलाएँ।
./deploy/local-dev/start-dev.sh
cd apps/api && uv run main.py
cd apps/worker && uv run worker.py
# when the schema changed
cd apps/api && uv run alembic upgrade headsUser बनाएँ और ingest करें
सिर्फ API वाले काम के लिए (dashboard के बिना) API चालू होने के बाद एक user और key बनाएँ; वरना dashboard से register करें। फिर Jobs API के ज़रिए documents upload करें और MCP पर अपने agent को नतीजे वाले corpus की ओर इंगित करें।
cd apps/api
uv run scripts/init_user.py --email you@example.comकमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।
कब इस्तेमाल करें
- इसे तब चुनें जब आपका corpus ऐसे PDFs और slide decks हों जिन्हें आम parsers बिगाड़ देते हैं — scans, atlases, drawing collections, घने layouts
- इसे तब चुनें जब जवाब सिर्फ chunk नहीं, बल्कि किसी page तक cite होने चाहिए
- इसे तब चुनें जब आपको agent को एक document graph देना हो, जिसे वह flat vector lookup की जगह reader की तरह नेविगेट कर सके
- इसे तब चुनें जब कई agents या frameworks को MCP पर एक ही corpus contract साझा करना हो
How Knowhere compares
Knowhere alongside other open-source parsing & ingestion tools AI/TLDR tracks, ranked by GitHub stars.
| टूल | स्टार | यह क्या करता है |
|---|---|---|
| MarkItDown | ★ 199k | PDF, Office दस्तावेज़ और अन्य फ़ाइलों को LLM के लिए साफ़ Markdown में बदलें |
| MinerU | ★ 84.7k | PDF, Office फ़ाइल और स्कैन को RAG और LLM के लिए साफ़ Markdown या JSON में बदलें |
| Docling | ★ 71.3k | PDF, Office फ़ाइलें और अन्य फ़ॉर्मेट को LLM-ready Markdown या JSON में बदलें |
| Marker | ★ 41.2k | PDF और दस्तावेज़ों को Markdown, JSON या HTML में बदलें, टेबल और समीकरण जस के तस रहते हुए |
| OpenDataLoader PDF | ★ 30.4k | AI-ready डेटा और ऑटोमेटेड एक्सेसिबिलिटी टैगिंग के लिए ओपन-सोर्स PDF पार्सर |
| Repomix | ★ 29.6k | अपने पूरे codebase को एक ही AI-friendly फ़ाइल में पैक करें |
| Unstructured | ★ 15.8k | ओपन सोर्स preprocessing, जो अव्यवस्थित दस्तावेज़ों को LLM के लिए साफ़ elements में बदल देता है |
| Knowhere | ★ 4.2k | उलझे दस्तावेज़ों को hierarchy-native मेमोरी में बदलें, जिसे agents नेविगेट कर सकें और cite कर सकें |
