█

AI/TLDR

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

USearch

कई भाषाओं में काम करने वाला सिंगल-फ़ाइल वेक्टर similarity search और clustering engine

Vector Databasesओपन सोर्स
भाषा
C++
लाइसेंस
Apache-2.0
$pip install usearch
संक्षेप में

USearch क्या है?

USearch कई भाषाओं में काम करने वाला सिंगल-फ़ाइल वेक्टर similarity search और clustering engine. यह Retrieval & Knowledge (RAG) टूल्स की Vector Databases श्रेणी में आता है; ओपन सोर्स है, C++ में लिखा गया है और Apache-2.0 लाइसेंस के तहत है। शुरू करने के लिए: python package इंस्टॉल करें.

सारांश

USearch एक embedded similarity search engine है, जो वेक्टर के लिए बनाया गया है। यह एक ही C++11 header और approximate nearest-neighbor search के लिए HNSW algorithm पर आधारित है। यह अलग server की तरह नहीं, बल्कि आपके अपने application के भीतर (in-process) चलता है, इसलिए आप अपने code से ही index बनाते हैं, vectors जोड़ते हैं और उसी से सीधे query करते हैं।

यह उन developers के लिए है जिन्हें पूरा vector database सेटअप किए बिना embeddings पर search करना है। इसी core के साथ कई भाषाओं के bindings मिलते हैं, जिनमें Python, JavaScript, Java, Rust, C, C99, Objective-C, Swift, C#, Go और Wolfram शामिल हैं, और यह Linux, macOS, Windows, iOS, Android और WebAssembly पर चलता है।

embedded / in-process vector category में USearch का फ़ोकस एक compact codebase, कम dependencies और user-defined metrics पर है। यह bf16, e5m2 और i8 जैसे half- और quarter-precision types को सपोर्ट करता है, बड़े indexes को पूरी तरह RAM में लोड किए बिना disk से view कर सकता है, और on-the-fly deletions व relabeling को संभालता है।

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

  • सिंगल C++11 header library से HNSW-based approximate nearest-neighbor search
  • कई भाषाओं के लिए bindings, जिनमें Python, JavaScript, Java, Rust, C, Swift, C# और Go शामिल हैं
  • SIMD-optimized distance functions के साथ JIT compilation वाले user-defined metrics
  • मेमोरी बचत के लिए half- और quarter-precision सपोर्ट (bf16, e5m2, i8)
  • बड़े indexes को पूरी तरह RAM में लोड किए बिना सीधे disk से view करें
  • On-the-fly deletions, renaming/relabeling और heterogeneous lookups

शुरू करें

अपनी भाषा का binding इंस्टॉल करें, फिर index बनाएं, vectors जोड़ें और search करें। नीचे दिया उदाहरण Python package का इस्तेमाल करता है।

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

PyPI से USearch इंस्टॉल करें।

bashbash
pip install usearch

Vectors का index बनाएं और search करें

एक fixed dimensionality वाला index बनाएं, किसी key के तहत एक vector जोड़ें, फिर सबसे नज़दीकी matches खोजें।

pythonpython
import numpy as np
from usearch.index import Index

index = Index(ndim=3)
vector = np.array([0.2, 0.6, 0.4])
index.add(42, vector)
matches = index.search(vector, 10)

assert matches[0].key == 42

कोई दूसरी भाषा इस्तेमाल करें (वैकल्पिक)

USearch JavaScript के लिए npm package के रूप में भी मिलता है, और Rust, Java, C#, Go आदि के लिए crates/packages के रूप में भी।

bashbash
npm install usearch

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

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

  • अलग vector database server चलाए बिना किसी app में semantic या embedding-based search जोड़ना
  • iOS, Android और WebAssembly सहित edge या mobile targets पर nearest-neighbor lookup
  • पूरे vector set को RAM में रखने के बजाय index को disk से view करके बहुत बड़े vector sets पर search करना
  • built-in binary metrics या custom user-defined metrics का उपयोग करके domain-specific similarity (जैसे जीनोमिक्स या केमिस्ट्री)

How USearch compares

USearch 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
USearch★ 4.4kकई भाषाओं में काम करने वाला सिंगल-फ़ाइल वेक्टर similarity search और clustering engine