DocArray
DocArray is a library for nested, unstructured, multimodal data in transit,including text, image, audio, video, 3D mesh, etc. It allows deep-learning engineers to efficiently process,embed, search, recommend, store, and transfer multimodal data with a Pythonic API.
Installation and Setup
We need to installdocarray
python package.
pip install docarray
Vector Store
LangChain provides an access to theIn-memory
andHNSW
vector stores from theDocArray
library.
See ausage example.
from langchain_community.vectorstoresimport DocArrayHnswSearch
API Reference:DocArrayHnswSearch
See ausage example.
from langchain_community.vectorstores DocArrayInMemorySearch
Retriever
See ausage example.
from langchain_community.retrieversimport DocArrayRetriever
API Reference:DocArrayRetriever