Skip to content

API Reference parrot.tools.vectorstoresearch

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.tools.vectorstoresearch

View source

VectorStoreSearchTool - A tool for performing similarity search on vector stores.

This tool accepts a StoreConfig to configure the vector store and performs similarity searches based on user queries.

Alias AbstractStore

Re-exported from parrot.stores.AbstractStore.

Alias AbstractTool

Re-exported from parrot.tools.abstract.AbstractTool.

Alias AbstractToolArgsSchema

Re-exported from parrot.tools.abstract.AbstractToolArgsSchema.

Alias SearchResult

Re-exported from parrot.models.stores.SearchResult.

Alias StoreConfig

Re-exported from parrot.models.stores.StoreConfig.

Alias ToolResult

Re-exported from parrot.tools.abstract.ToolResult.

Class VectorSearchArgs

Arguments schema for VectorStoreSearchTool.

Attributes:

Attribute Type Description
query str
limit int
score_threshold Optional[float]
metadata_filters Optional[Dict[str, Any]]
use_mmr bool
lambda_mult float

Class VectorStoreSearchTool

A tool for performing similarity search on vector stores.

This tool creates a vector store instance based on the provided StoreConfig and performs similarity searches to find documents relevant to user queries.

Parameter Type Default Description
store_config StoreConfig Configuration for the vector store
name Optional[str] None Optional custom name for the tool
description Optional[str] None Optional custom description for the tool
additional_columns Optional[List[str]] None Additional columns to retrieve from the store
content_column str 'document' Name of the column containing document content
embedding_column str 'embedding' Name of the column containing embeddings
metadata_column str 'cmetadata' Name of the column containing metadata
id_column str 'id' Name of the ID column
**kwargs {} Additional arguments passed to AbstractTool

Attributes:

Attribute Type Description
name str
description str
store AbstractStore Get or create the vector store instance.

Method VectorStoreSearchTool.search

Convenience method for executing a search.

This is a wrapper around execute() with named parameters.

search(query: str, limit: int = 10, score_threshold: Optional[float] = None, metadata_filters: Optional[Dict[str, Any]] = None, use_mmr: bool = False, lambda_mult: float = 0.5) -> ToolResult

Parameter Type Default Description
query str The search query
limit int 10 Maximum number of results to return
score_threshold Optional[float] None Minimum similarity score threshold
metadata_filters Optional[Dict[str, Any]] None Optional metadata filters
use_mmr bool False Whether to use MMR search
lambda_mult float 0.5 Lambda multiplier for MMR

Returns: ToolResult — ToolResult containing the search results

Alias supported_stores

Re-exported from parrot.stores.supported_stores.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally