A complete search engine and RAG pipeline in your browser, server or edge network with support for full-text, vector, and hybrid search in less than 2kb.
A complete search engine and RAG pipeline in your browser, server or edge network with support for full-text, vector, and hybrid search in less than 2kb.
You can install Orama using npm, yarn, pnpm, bun:
npm i @orama/oramaOr import it directly in a browser module:
<html>
<body>
<script type="module">
import { create, insert, search } from 'https://cdn.jsdelivr.net/npm/@orama/orama@latest/+esm'
</script>
</body>
</html>With Deno, you can just use the same CDN URL or use npm specifiers:
import { create, search, insert } from 'npm:@orama/orama'Read the complete documentation at https://docs.orama.com.
Orama is quite simple to use. The first thing to do is to create a new database instance and set an indexing schema:
…Orama currently supports 10 different data types:
| Type | Description | Example |
|---|---|---|
string |
A string of characters. | 'Hello world' |
number |
A numeric value, either float or integer. | 42 |
boolean |
A boolean value. | true |
enum |
An enum value. | 'drama' |
geopoint |
A geopoint value. | { lat: 40.7128, lon: 74.0060 } |
string[] |
An array of strings. | ['red', 'green', 'blue'] |
number[] |
An array of numbers. | [42, 91, 28.5] |
boolean[] |
An array of booleans. | [true, false, false] |
enum[] |
An array of enums. | ['comedy', 'action', 'romance'] |
vector[<size>] |
A vector of numbers to perform vector search on. | [0.403, 0.192, 0.830] |
Orama supports both vector and hybrid search by just setting mode: 'vector' when performing search.
To perform this kind of search, you'll need to provide text embeddings at search time:
…Have trouble generating embeddings for vector and hybrid search? Try our @orama/plugin-embeddings plugin!
…Want to use OpenAI embedding models? Use our Secure Proxy plugin to call OpenAI from the client-side securely.
Since v3.0.0, Orama allows you to create your own ChatGPT/Perplexity/SearchGPT-like experience. You will need to call the OpenAI APIs, so we strongly recommend using the Secure Proxy Plugin to do that securely from your client side. It's free!
…Read the complete documentation.
Read the complete documentation at https://docs.orama.com/open-source.
Write your own plugin: https://docs.orama.com/docs/orama-js/plugins/writing-your-own-plugins
Orama is licensed under the Apache 2.0 license.
Arabic tokenizer splits words at آ, ء, vowel marks and the Persian letters پ چ ژ ک گ ی
PluginPT15 do not handle accuentuate search
Circular dependencies / require cycle
No addon option for extra indexes in free plan
Documentation on upsertMultiple/removeMultiple?
Plugin for Astro Starlight
[Docusaurus] Search box without cloud still displays "Get a summary"
Search Filter not working as expected
Distinct values for number facets
[Docs] No Documentation for configuring Orama Cloud with docusaurus plugin