跳到主要内容
LlamaIndex 是构建 LLM 应用程序的领先数据框架

安装和设置

您需要安装 llama-index python 包。
pip install llama-index
请参阅安装说明

检索器

LlamaIndex检索器

它用于对 LlamaIndex 数据结构进行带源头的问答。
from langchain_community.retrievers.llama_index import LlamaIndexRetriever

LlamaIndex图检索器

它用于对 LlamaIndex 图数据结构进行带源头的问答。
from langchain_community.retrievers.llama_index import LlamaIndexGraphRetriever

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