已弃用的术语#
随着 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