已弃用术语#
随着 LlamaIndex 的持续演进,许多类名和 API 已进行调整、改进和弃用。
以下是已被弃用的先前常用术语列表,并附有其替代方案的链接。
GPTSimpleVectorIndex#
已重命名为 VectorStoreIndex,同时将所有向量索引统一为单一接口。您可以通过修改底层的 vector_store 来集成各种向量数据库。
具体用法请参阅以下链接:
GPTVectorStoreIndex#
已重命名为 VectorStoreIndex,但这仅是名称变更。具体用法请参阅以下链接:
LLMPredictor#
LLMPredictor 对象不再建议用户直接使用。您可以直接设置 LLM 并将其传入 Settings 或使用 LLM 的接口。LLM 类本身具有与 LLMPredictor 相似的属性和方法。
PromptHelper 和 max_input_size#
提示助手参数 max_input_size 已被 context_window 取代。
PromptHelper 整体已被弃用,建议直接在 service_context 和 node_parser 中指定参数。
详情请参阅:
ServiceContext#
ServiceContext 对象已被弃用,改用 Settings 对象。
llama-index-legacy#
llama-index-legacy 包已被弃用并从代码库中移除。请参阅最新入门指南获取最新信息和使用方法。
AgentRunner/AgentWorker(及相关类)#
AgentRunner 和 AgentWorker 类已被弃用,改用 AgentWorkflow 和 Workflows。
包括以下已弃用类:
AgentRunnerFunctionCallingAgentFunctionCallingAgentWorkerllama_index.core.agent.ReActAgent(改用 llama_index.core.agent.workflow.ReActAgent)ReActAgentWorkerLATSAgentWorkerCoAAgentWorkerFnAgentWorkerQueryPipelineAgentWorkerMultiModalReActAgentWorkerIntrospectiveAgentWorkerSelfReflectiveAgentWorkerToolInteractiveReflectionAgentWorkerLLMCompilerAgentWorkerQueryUnderstandAgentWorker