Deprecated Terms
As LlamaIndex continues to evolve, many class names and APIs have been adjusted, improved, and deprecated.
The following is a list of previously popular terms that have been deprecated, with links to their replacements.
GPTSimpleVectorIndex
Section titled âGPTSimpleVectorIndexâThis has been renamed to VectorStoreIndex, as well as unifying all vector indexes to a single unified interface. You can integrate with various vector databases by modifying the underlying vector_store.
Please see the following links for more details on usage.
GPTVectorStoreIndex
Section titled âGPTVectorStoreIndexâThis has been renamed to VectorStoreIndex, but it is only a cosmetic change. Please see the following links for more details on usage.
LLMPredictor
Section titled âLLMPredictorâThe LLMPredictor object is no longer intended to be used by users. Instead, you can setup an LLM directly and pass it into the Settings or the interface using the LLM. The LLM class itself has similar attributes and methods as the LLMPredictor.
PromptHelper and max_input_size/
Section titled âPromptHelper and max_input_size/âThe max_input_size parameter for the prompt helper has since been replaced with context_window.
The PromptHelper in general has been deprecated in favour of specifying parameters directly in the service_context and node_parser.
See the following links for more details.
ServiceContext
Section titled âServiceContextâThe ServiceContext object has been deprecated in favour of the Settings object.
llama-index-legacy
Section titled âllama-index-legacyâThe llama-index-legacy package has been deprecated and removed from the repository. Please see the latest getting started guide for the latest information and usage.
AgentRunner/AgentWorker (and related classes)
Section titled âAgentRunner/AgentWorker (and related classes)âThe AgentRunner and AgentWorker classes have been deprecated in favour of AgentWorkflow and Workflows.
This includes the following deprecated classes:
AgentRunnerFunctionCallingAgentFunctionCallingAgentWorkerllama_index.core.agent.ReActAgent(use llama_index.core.agent.workflow.ReActAgent)ReActAgentWorkerLATSAgentWorkerCoAAgentWorkerFnAgentWorkerQueryPipelineAgentWorkerMultiModalReActAgentWorkerIntrospectiveAgentWorkerSelfReflectiveAgentWorkerToolInteractiveReflectionAgentWorkerLLMCompilerAgentWorkerQueryUnderstandAgentWorker
QueryPipeline (and related classes)
Section titled âQueryPipeline (and related classes)âQueryPipeline has been deprecated in favour of Workflows.
This includes the following deprecated classes:
AgentFnComponentAgentInputComponentBaseAgentComponentCustomAgentComponentArgPackComponentFnComponentFunctionComponentInputComponentRouterComponentSelectorComponentToolRunnerComponentStatefulFnComponentLoopComponent- etc.