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.
安装与设置
我们需要安装 docarray 个 Python 包。
pip install docarray
向量存储
LangChain 提供了对 In-memory 和 HNSW 向量存储的访问权限,这些存储来自 DocArray 库。
查看一个 使用示例。
from langchain_community.vectorstores import DocArrayHnswSearch
API 参考:DocArrayHnswSearch
查看一个 使用示例。
from langchain_community.vectorstores DocArrayInMemorySearch
检索器
查看一个 使用示例。
from langchain_community.retrievers import DocArrayRetriever
API 参考:DocArrayRetriever