Orama क्या है?
Orama JavaScript सर्च इंजन जिसमें फुल-टेक्स्ट, वेक्टर और हाइब्रिड सर्च है, और जो कहीं भी चलता है. यह Retrieval & Knowledge (RAG) टूल्स की Vector Databases श्रेणी में आता है; ओपन सोर्स है और JavaScript में लिखा गया है। शुरू करने के लिए: orama इंस्टॉल करें.
सारांश
Orama JavaScript में लिखा गया एक सर्च इंजन है। आप एक schema परिभाषित करते हैं, documents इन्सर्ट करते हैं, और फुल-टेक्स्ट, वेक्टर या हाइब्रिड सर्च से उन्हें क्वेरी करते हैं। वही कोड ब्राउज़र में, edge पर या सर्वर पर चलता है, इसलिए आप सर्च को वहीं के पास रख सकते हैं जहाँ आपका डेटा पहले से है।
यह वेक्टर डेटाबेस श्रेणी में आता है, क्योंकि यह embeddings को सीधे index में स्टोर करता है। आप schema में फिक्स्ड साइज़ के साथ एक vector field घोषित करते हैं, documents को उनके embeddings के साथ इन्सर्ट करते हैं, फिर query vector और similarity threshold पास करके सर्च करते हैं। फुल-टेक्स्ट सर्च के लिए BM25 इस्तेमाल होता है, और हाइब्रिड सर्च एक ही क्वेरी में दोनों संकेतों को जोड़ता है।
यह उन front-end और full-stack developers के लिए ठीक है जिन्हें अलग search service खड़ी किए बिना ऐप के अंदर या पेज पर सर्च चाहिए। filters, facets, geosearch, typo tolerance और 30 भाषाओं में stemming जैसी अतिरिक्त सुविधाएँ आम सर्च ज़रूरतों को डिफ़ॉल्ट रूप से ही पूरी करती हैं।
यह क्या करता है
- BM25 रैंकिंग पर आधारित फुल-टेक्स्ट सर्च, typo tolerance और exact match के साथ
- क्वेरी के समय mode को 'vector' या 'hybrid' सेट करके वेक्टर और हाइब्रिड सर्च
- 10 field types वाले schema-typed documents, जिनमें vector[<size>], geopoint और enum शामिल हैं
- एक ही package से ब्राउज़र, edge, सर्वर या Deno में चलता है
- फ़िल्टर, facets, field boosting, geosearch, और merchandising के लिए result pinning
- 30 भाषाओं में stemming और tokenization, साथ ही एक plugin system
शुरू करें
package इंस्टॉल करें, schema के साथ एक database बनाएँ, documents इन्सर्ट करें, फिर सर्च करें।
Orama इंस्टॉल करें
अपने पसंदीदा package manager (npm, yarn, pnpm, या bun) से इंस्टॉल करें। आप CDN के ज़रिए browser module में या Deno में इसे सीधे import भी कर सकते हैं।
npm i @orama/oramaDatabase बनाएँ और schema सेट करें
एक instance बनाएँ और वे fields घोषित करें जिन्हें आप index करना चाहते हैं। Vector size schema में सेट करना ज़रूरी है।
import { create, insert, search } from '@orama/orama'
const db = create({
schema: {
name: 'string',
description: 'string',
price: 'number',
},
})Documents इन्सर्ट करें और सर्च करें
एक document जोड़ें, फिर किसी search term के साथ फुल-टेक्स्ट क्वेरी चलाएँ।
insert(db, {
name: 'Noise cancelling headphones',
description: 'Best noise cancelling headphones on the market',
price: 99.99,
})
const results = search(db, {
term: 'Best headphones',
})Vector search चलाएँ
schema में एक vector field जोड़ें, फिर query vector, तुलना के लिए property और न्यूनतम similarity पास करके सर्च करें।
const results = search(db, {
mode: 'vector',
vector: {
value: [0.938292, 0.284961, 0.248264, 0.748276, 0.26472],
property: 'embedding',
},
similarity: 0.85,
})कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।
कब इस्तेमाल करें
- docs साइट या वेब ऐप में इन-पेज सर्च जोड़ें जो पूरी तरह ब्राउज़र में चलता है
- stored embeddings का इस्तेमाल करके प्रोडक्ट कैटलॉग पर semantic या hybrid सर्च बनाएँ
- अलग search service के बिना edge पर या serverless functions में सर्च चलाएँ
- field boosting और result pinning के साथ faceted, filtered प्रोडक्ट सर्च चलाएँ
How Orama compares
Orama alongside other open-source vector databases tools AI/TLDR tracks, ranked by GitHub stars.
| टूल | स्टार | यह क्या करता है |
|---|---|---|
| Supabase | ★ 116k | Managed Postgres backend whose Vector toolkit (pgvector) stores, indexes, and queries embeddings next to transactional data. |
| Redis Cloud | ★ 77.9k | Fully-managed Redis with built-in vector search, offering low-latency similarity and hybrid queries over any embeddings. |
| Milvus | ★ 46.8k | अरबों embeddings में बड़े पैमाने पर खोज के लिए एक ओपन सोर्स वेक्टर डेटाबेस |
| FAISS | ★ 42k | dense vectors पर कुशल similarity search और clustering के लिए लाइब्रेरी |
| Qdrant | ★ 35.9k | Rust में लिखा, समृद्ध payload फ़िल्टरिंग वाला सिमेंटिक सर्च के लिए वेक्टर सर्च इंजन |
| Chroma | ★ 29.8k | ओपन सोर्स एम्बेडिंग डेटाबेस, जो रिट्रीवल और RAG फ़ीचर बनाने में मदद करता है |
| pgvector | ★ 23.9k | Postgres के लिए ओपन सोर्स वेक्टर similarity search |
| Orama | ★ 10.6k | JavaScript सर्च इंजन जिसमें फुल-टेक्स्ट, वेक्टर और हाइब्रिड सर्च है, और जो कहीं भी चलता है |

