跳到主要内容
DocArray 是一个用于传输中的嵌套、非结构化、多模态数据的库,包括文本、图像、音频、视频、3D 网格等。它允许深度学习工程师使用 Pythonic API 高效地处理、嵌入、搜索、推荐、存储和传输多模态数据。

安装和设置

我们需要安装 docarray Python 包。
pip install docarray

向量存储

LangChain 提供了对 DocArray 库中的 In-memoryHNSW 向量存储的访问。 请参阅使用示例
from langchain_community.vectorstores import DocArrayHnswSearch
请参阅使用示例
from langchain_community.vectorstores DocArrayInMemorySearch

检索器

请参阅使用示例
from langchain_community.retrievers import DocArrayRetriever

以编程方式连接这些文档到 Claude、VSCode 等,通过 MCP 获取实时答案。
© . This site is unofficial and not affiliated with LangChain, Inc.