LlamaIndex
LlamaIndex 是构建大型语言模型(LLM)应用的首选数据框架
安装与设置¶
您需要安装 llama-index Python 包。
pip install llama-index
查看 安装说明。
检索器
LlamaIndexRetriever
它用于在 LlamaIndex 数据结构上基于来源进行问答。
from langchain_community.retrievers.llama_index import LlamaIndexRetriever
API 参考:LlamaIndexRetriever
LlamaIndexGraphRetriever
它用于基于 LlamaIndex 图数据结构,结合来源进行问答。
from langchain_community.retrievers.llama_index import LlamaIndexGraphRetriever
API 参考:LlamaIndexGraphRetriever