SemaDB from SemaFind is a no fuss vector similarity database for building AI applications. The hosted SemaDB Cloud
offers a no fuss developer experience to get started.
The full documentation of the API along with examples and an interactive playground is available on RapidAPI.
This notebook demonstrates usage of the SemaDB Cloud
vector store.
You’ll need to install langchain-community
with pip install -qU langchain-community
to use this integration
Load document embeddings
To run things locally, we are using Sentence Transformers which are commonly used for embedding sentences. You can use any embedding model LangChain offers.Connect to SemaDB
SemaDB Cloud uses RapidAPI keys to authenticate. You can obtain yours by creating a free RapidAPI account.- “mycollection”: is the collection name in which we will store these vectors.
- 768: is dimensions of the vectors. In our case, the sentence transformer embeddings yield 768 dimensional vectors.
- API_KEY: is your RapidAPI key.
- embeddings: correspond to how the embeddings of documents, texts and queries will be generated.
- DistanceStrategy: is the distance metric used. The wrapper automatically normalises vectors if COSINE is used.