To perform vector and hybrid search, you need to convert your text data into embeddings.
While this is managed for you with Orama Cloud, when using Orama open-source, you need to generate embeddings for your documents on your own.
This plugin generates embeddings for your documents at insert and search time, allowing you to perform vector and hybrid searches on your documents.
Installation
You can install the plugin using any major Node.js package manager.
Important note: to use this plugin, you’ll also need to install one of the following TensorflowJS backend:
@tensorflow/tfjs
@tensorflow/tfjs-node
@tensorflow/tfjs-backend-webgl
@tensorflow/tfjs-backend-cpu
@tensorflow/tfjs-node-gpu
@tensorflow/tfjs-backend-wasm
For example, if you’re running Orama on the browser, we highly recommend using @tensorflow/tfjs-backend-webgl
:
If you’re using Orama in Node.js, we recommend using @tensorflow/tfjs-node
:
Usage
This plugin will generate text embeddings for you at insert and search time, allowing you to perform vector and hybrid searches on your documents.