langchain.tools.vectorstore.tool.BaseVectorStoreTool¶

class langchain.tools.vectorstore.tool.BaseVectorStoreTool(*, vectorstore: VectorStore, llm: BaseLanguageModel = None)[source]¶

Bases: BaseModel

Base class for tools that use a VectorStore.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

param llm: langchain.schema.language_model.BaseLanguageModel [Optional]¶
param vectorstore: langchain.vectorstores.base.VectorStore [Required]¶
model Config[source]¶

Bases: Config

Configuration for this pydantic object.

arbitrary_types_allowed = True¶
extra = 'forbid'¶