█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

AutoFlow

PingCAP का graph-RAG knowledge base: अपनी डॉक्स साइट को crawl करें, TiDB में knowledge graph बनाएं, और Perplexity-style सर्च पेज या embeddable widget पर सवालों के जवाब पाएं

RAG Frameworks & Platformsओपन सोर्स
भाषा
TypeScript
लाइसेंस
Apache-2.0
संक्षेप में

AutoFlow क्या है?

AutoFlow PingCAP का graph-RAG knowledge base: अपनी डॉक्स साइट को crawl करें, TiDB में knowledge graph बनाएं, और Perplexity-style सर्च पेज या embeddable widget पर सवालों के जवाब पाएं. यह Retrieval & Knowledge (RAG) टूल्स की RAG Frameworks & Platforms श्रेणी में आता है; ओपन सोर्स है, TypeScript में लिखा गया है और Apache-2.0 लाइसेंस के तहत है।

सारांश

AutoFlow, PingCAP का एक open-source knowledge-base tool है, जो TiDB Vector, LlamaIndex और DSPy पर बना है। खुद जोड़नी पड़े ऐसी library देने के बजाय, यह एक deploy होने वाली application है: एक crawler जो sitemap के ज़रिए documentation या marketing साइट को खंगालता है, एक indexing pipeline जो नतीजे को vector embeddings और knowledge graph दोनों में बदलती है, और एक front end जो इन्हीं के आधार पर सवालों के जवाब देता है। PingCAP यही stack सार्वजनिक रूप से tidb.ai पर चलाता है, जो प्रोजेक्ट का live demo भी है।

graph RAG में "graph" वाला हिस्सा ही इसे सामान्य vector store से अलग बनाता है। chunk embeddings के साथ-साथ AutoFlow entities और उनके बीच के संबंध निकालकर TiDB में रखे गए graph में सहेजता है, ताकि जवाब सिर्फ़ उन chunks पर निर्भर न रहे जो query vector के सबसे पास संयोग से आ गए, बल्कि संबंधित concepts की पूरी चेन को भी फॉलो कर सके। TiDB chat history, vectors, JSON और analytics को एक ही database में संभालता है, इसीलिए deployment एक database और अलग vector service की जगह एक ही Docker Compose stack है।

The AutoFlow conversational search page at tidb.ai: a thread sidebar on the left, an 'Ask anything about TiDB' prompt box in the centre with suggested questions, and an admin section listing documents, data sources, import tasks and indexes.
The conversational search page, with the admin sections for documents, data sources and indexes in the sidebar.AutoFlow README ↗

इसके साथ दो front ends आते हैं। पहला है Perplexity-style बातचीत वाला सर्च पेज, जिसमें threads, source citations और चुना जा सकने वाला chat engine है, और पीछे documents, data sources, import tasks और indexes के लिए admin area है। दूसरा है embeddable JavaScript snippet: इसे अपनी साइट पर पेस्ट करें और आमतौर पर नीचे-दाईं ओर दिखने वाली एक बातचीत वाली सर्च विंडो वहीं product के सवालों के जवाब देती है। repository में चेतावनी है कि AutoFlow अभी शुरुआती विकास में है; maintainers का घोषित अगला कदम इसे application के साथ-साथ Python library (`autoflow-ai`) के रूप में पैकेज करना है।

यह क्या करता है

  • Graph RAG — entities और relationships को TiDB में knowledge graph में निकाला जाता है, और इसे vector similarity की जगह नहीं, उसके साथ मिलाकर query किया जाता है
  • एक built-in website crawler जो आधिकारिक और documentation साइटों को उनके sitemap के ज़रिए खंगालता है, ताकि knowledge base को हाथ से दी गई फ़ाइलों के बजाय सिर्फ़ एक URL से जोड़ा जा सके
  • Perplexity-style बातचीत वाला सर्च पेज, जिसमें threads, सुझाए गए सवाल, citations और चुना जा सकने वाला chat engine है
  • एक embeddable JavaScript snippet जो वही बातचीत वाली सर्च विंडो किसी भी साइट पर जोड़ देता है
  • documents, data sources, import tasks और index tasks के लिए एक admin area, ताकि ingestion एक black box न रहकर देखा जा सके
  • सब कुछ के लिए एक database — TiDB chat history, vectors, JSON और analytics रखता है, इसलिए deployment एक Compose stack है
  • retrieval के लिए LlamaIndex और prompts को हाथ से tune करने के बजाय उन्हें program करने के लिए DSPy पर बना है

शुरू करें

AutoFlow को एक package की तरह install नहीं किया जाता, बल्कि एक application के रूप में deploy किया जाता है। प्रोजेक्ट इसे चलाने का तरीका Docker Compose बताता है, और इसके लिए कम से कम 4 CPU cores और 8 GB RAM वाली मशीन चाहिए।

पहले hosted instance आज़माएं

PingCAP TiDB documentation पर AutoFlow को tidb.ai पर सार्वजनिक रूप से चलाता है। कुछ भी deploy करने से पहले यह देखने का सबसे तेज़ तरीका है कि तैयार knowledge base कैसा दिखता है — threads, citations और graph-backed जवाब।

bashbash
open https://tidb.ai

Docker Compose से deploy करें

प्रोजेक्ट की deployment guide autoflow.tidb.ai/deploy-with-docker Compose stack को चरण-दर-चरण समझाती है। दो प्रकाशित images हैं tidbai/backend और tidbai/frontend; दोनों पर Docker Hub पर semver tags हैं। 4 CPU cores और 8 GB RAM की योजना बनाकर चलें।

bashbash
git clone https://github.com/pingcap/autoflow.git
cd autoflow
# follow https://autoflow.tidb.ai/deploy-with-docker for the
# .env values (TiDB connection string, LLM + embedding keys)
docker compose up -d

Crawler को अपने documentation पर लगाएं

admin area में एक data source जोड़ें और उसे वह साइट दें जिसे index करवाना है। built-in crawler साइट को उसके sitemap के ज़रिए खंगालता है; इसके बाद import tasks और index tasks ingestion की प्रगति दिखाते हैं, ताकि आप देख सकें कि कौन-से pages vector index और knowledge graph तक पहुँचे।

Search widget को अपनी साइट में embed करें

index बन जाने के बाद AutoFlow बातचीत वाली सर्च विंडो के लिए एक JavaScript snippet बनाता है। उसे अपनी साइट के HTML में कॉपी करें — आमतौर पर इसे नीचे-दाईं ओर रखा जाता है — और visitors को product के सवालों के पेज के अंदर ही जवाब मिलने लगते हैं।

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • इसे तब इस्तेमाल करें जब documentation साइट को सर्च बॉक्स के बजाय एक answer box चाहिए, और जवाबों को उस पेज का हवाला देना ज़रूरी हो जहाँ से वे आए
  • इसे तब इस्तेमाल करें जब सवाल एक साथ कई concepts को छूते हों, क्योंकि ऐसे में knowledge graph सामान्य top-k vector search से ज़्यादा काम आता है
  • इसे तब इस्तेमाल करें जब आप पहले से TiDB चलाते हैं और stack में एक अलग vector database जोड़ना नहीं चाहते
  • इसे तब इस्तेमाल करें जब आप एक deploy होने वाली RAG application को शुरू से अंत तक पढ़ना चाहते हैं — crawler, ingestion, graph, chat — बजाय इसके कि इसे libraries से खुद जोड़ें

How AutoFlow compares

AutoFlow alongside other open-source rag frameworks & platforms tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
Dify★ 162kLLM और RAG ऐप विज़ुअल कैनवास पर बनाने के लिए ओपन सोर्स प्लेटफ़ॉर्म
graphify★ 156kकोड, डॉक्स, PDF और इमेज वाले फ़ोल्डर को एक ऐसे नॉलेज ग्राफ़ में बदलें जिसमें query की जा सके
RAGFlow★ 95.1kगहरी डॉक्यूमेंट समझ और स्रोत से जुड़े, ट्रेस किए जा सकने वाले उद्धरणों वाला ओपन सोर्स RAG engine
Context7★ 65.8kनवीनतम, वर्ज़न-विशिष्ट लाइब्रेरी डॉक्स सीधे आपके कोडिंग एजेंट के प्रॉम्प्ट में
Pathway★ 61.9kडेटा बदलने के साथ-साथ अपडेट रहने वाली Python ETL और RAG पाइपलाइन
LightRAG★ 41kग्राफ़-आधारित RAG, जो आपके दस्तावेज़ों को क्वेरी योग्य नॉलेज ग्राफ़ में बदल देता है
PageIndex★ 40.9kVectorless, reasoning-based RAG जो लंबे डॉक्युमेंट से tree index बनाता है
AutoFlow★ 3kPingCAP का graph-RAG knowledge base: अपनी डॉक्स साइट को crawl करें, TiDB में knowledge graph बनाएं, और Perplexity-style सर्च पेज या embeddable widget पर सवालों के जवाब पाएं