DingoDB is a distributed multi-mode vector database, which combines the characteristics of data lakes and vector databases, and can store data of any type and size (Key-Value, PDF, audio, video, etc.). It has real-time low-latency processing capabilities to achieve rapid insight and response, and can efficiently conduct instant analysis and process multi-modal data.You’ll need to install
langchain-community
with pip install -qU langchain-community
to use this integration
This notebook shows how to use functionality related to the DingoDB vector database.
To run, you should have a DingoDB instance up and running.
OpenAIEmbeddings
so we have to get the OpenAI API Key.
Adding More Text to an Existing Index
More text can embedded and upserted to an existing Dingo index using theadd_texts
function
Maximal Marginal Relevance Searches
In addition to using similarity search in the retriever object, you can also usemmr
as retriever.
max_marginal_relevance_search
directly: