█

AI/TLDR

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

Infinity

vectors, tensors और full text पर hybrid search वाला AI-native डेटाबेस

Vector Databasesओपन सोर्स
भाषा
Python
संक्षेप में

Infinity क्या है?

Infinity एक AI-native डेटाबेस है, जो search, recommenders, question-answering और RAG (Retrieval-augmented Generation) जैसे LLM ऐप्लिकेशन के लिए बनाया गया है। यह एक ही जगह पर कई तरह के रिच डेटा टाइप संभालता है: dense vectors, sparse vectors, tensors, full text और structured data।. यह Retrieval & Knowledge (RAG) टूल्स की Vector Databases श्रेणी में आता है; ओपन सोर्स है और Python में लिखा गया है।

सारांश

Infinity एक AI-native डेटाबेस है, जो search, recommenders, question-answering और RAG (Retrieval-augmented Generation) जैसे LLM ऐप्लिकेशन के लिए बनाया गया है। यह एक ही जगह पर कई तरह के रिच डेटा टाइप संभालता है: dense vectors, sparse vectors, tensors, full text और structured data।

इसका मुख्य विचार hybrid search है। आप एक ही query में dense embedding search, sparse embedding search, tensor search, full-text search और filtering को मिला सकते हैं, और फिर RRF, weighted sum या ColBERT जैसे तरीकों से नतीजों को rerank कर सकते हैं। इसलिए यह उन टीमों के लिए उपयुक्त है जो retrieval pipelines बना रही हैं और जिन्हें सिर्फ़ plain vector similarity से ज़्यादा कुछ चाहिए।

Vector databases के बीच Infinity इस वजह से अलग दिखता है कि यह बिना किसी external dependency के एक single binary के रूप में आता है, और एक सहज Python API देता है जिसे Python module के रूप में embedded भी चलाया जा सकता है। AI developers के लिए, जो vector store और search engine को अलग-अलग जोड़ने के बजाय एक ही सिस्टम चाहते हैं, इससे deployment सरल रहता है।

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

  • एक ही query में dense embeddings, sparse embeddings, tensors और full text पर hybrid search, साथ में filtering
  • कई rerankers, जिनमें RRF, weighted sum और ColBERT शामिल हैं
  • रिच डेटा टाइप: strings, numerics, vectors और बहुत कुछ
  • सरल deployment के लिए single-binary आर्किटेक्चर, जिसमें कोई external dependency नहीं है
  • सहज Python API, जिसमें Infinity को Python module के रूप में embed करने का विकल्प है
  • बड़े datasets पर sub-millisecond vector query latency और उच्च QPS की रिपोर्ट (project benchmark देखें)

शुरू करें

Infinity एक server के रूप में चलता है (आमतौर पर Docker के ज़रिए) और इसके साथ एक अलग Python client होता है। पक्का कर लें कि आपके पास AVX2 वाला x86_64 CPU और Python 3.11+ है।

Docker से Infinity server शुरू करें

Linux या MacOS x86_64 पर data directory बनाएं, image pull करें और container चलाएं। Windows 10+ पर इसे WSL2 के अंदर चलाएं।

bashbash
sudo mkdir -p /var/infinity && sudo chown -R $USER /var/infinity
docker pull infiniflow/infinity:nightly
docker run -d --name infinity -v /var/infinity/:/var/infinity --ulimit nofile=500000:500000 --network=host infiniflow/infinity:nightly

Python client इंस्टॉल करें

pip से Infinity SDK इंस्टॉल करें।

bashbash
pip install infinity-sdk==0.7.0

कनेक्ट करें और vector search चलाएं

Server से कनेक्ट करें, vector column वाली table बनाएं, rows insert करें और एक dense vector match चलाएं।

pythonpython
import infinity

infinity_obj = infinity.connect(infinity.NetworkAddress("<SERVER_IP_ADDRESS>", 23817))
db_object = infinity_obj.get_database("default_db")
table_object = db_object.create_table("my_table", {"num": {"type": "integer"}, "body": {"type": "varchar"}, "vec": {"type": "vector, 4, float"}})
table_object.insert([{"num": 1, "body": "unnecessary and harmful", "vec": [1.0, 1.2, 0.8, 0.9]}])
table_object.insert([{"num": 2, "body": "Office for Harmful Blooms", "vec": [4.0, 4.2, 4.3, 4.5]}])
res = table_object.output(["*"]).match_dense("vec", [3.0, 2.8, 2.7, 3.1], "float", "ip", 2).to_pl()
print(res)

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

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

  • RAG pipeline की retrieval layer बनाना, जिसमें semantic vector search और keyword full-text search दोनों चाहिए
  • बेहतर नतीजों के लिए dense और sparse embeddings को reranking (RRF, weighted sum या ColBERT) के साथ मिलाना
  • LLM ऐप्लिकेशन में search, recommenders और question-answering फीचर्स को सपोर्ट करना
  • vectors, tensors, full text और structured filters के लिए अलग-अलग सिस्टम चलाने के बजाय एक ही डेटाबेस चलाना

How Infinity compares

Infinity alongside other open-source vector databases tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
Supabase★ 116kManaged Postgres backend whose Vector toolkit (pgvector) stores, indexes, and queries embeddings next to transactional data.
Redis Cloud★ 77.9kFully-managed Redis with built-in vector search, offering low-latency similarity and hybrid queries over any embeddings.
Milvus★ 46.8kअरबों embeddings में बड़े पैमाने पर खोज के लिए एक ओपन सोर्स वेक्टर डेटाबेस
FAISS★ 42kdense vectors पर कुशल similarity search और clustering के लिए लाइब्रेरी
Qdrant★ 35.9kRust में लिखा, समृद्ध payload फ़िल्टरिंग वाला सिमेंटिक सर्च के लिए वेक्टर सर्च इंजन
Chroma★ 29.8kओपन सोर्स एम्बेडिंग डेटाबेस, जो रिट्रीवल और RAG फ़ीचर बनाने में मदद करता है
pgvector★ 23.9kPostgres के लिए ओपन सोर्स वेक्टर similarity search
Infinity★ 4.8kvectors, tensors और full text पर hybrid search वाला AI-native डेटाबेस