Skip to content

API Reference parrot_tools.multistoresearch.origins.vector

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

parrot_tools.multistoresearch.origins.vector

View source

VectorStoreOrigin — duck-typed vector-store adapter (FEAT-379).

Wraps a single duck-typed vector store (pgvector / FAISS / ArangoDB) via its similarity_search(query, limit=...) method — never a concrete store class, preserving the "no concrete store imports at load time" convention from the pre-FEAT-379 single-tool implementation.

Alias SearchOrigin

Re-exported from parrot_tools.multistoresearch.origins.base.SearchOrigin.

Class VectorStoreOrigin

Adapter wrapping one duck-typed vector store.

Parameter Type Default Description
store Any Any object exposing an async similarity_search(query, limit=...) -> list[SearchResult] method (e.g. PgVectorStore, FAISSStore, ArangoDBStore). Also detected for an optional callable fulltext_search attribute, which enables the FTS leg (ArangoDB case).
name str Adapter name, e.g. "pgvector", "faiss", "arango".
description Optional[str] None LLM-readable explanation of this origin. Defaults to a generic per-store description when omitted.
timeout Optional[float] None Optional per-adapter timeout override in seconds.

Method VectorStoreOrigin.search

Run similarity_search against the wrapped store.

search(query: str, k: int) -> List[OriginHit]

Parameter Type Default Description
query str The search query text.
k int Maximum number of hits to request from the store.

Returns: List[OriginHit] — class:~parrot.models.OriginHit list, in the store's native return order.

Method VectorStoreOrigin.fts_search

Run the wrapped store's fulltext_search, when available.

fts_search(query: str, k: int) -> List[OriginHit]

Parameter Type Default Description
query str The search query text.
k int Maximum number of hits to request from the store.

Returns: List[OriginHit] — class:~parrot.models.OriginHit list.

Raises:

  • NotImplementedError — When the wrapped store has no callable fulltext_search attribute.

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