Skip to content

API Reference parrot_tools.multistoresearch.origins.wiki

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

parrot_tools.multistoresearch.origins.wiki

View source

ParrotWikiOrigin — LLM-Wiki / WikiStore adapter (FEAT-379).

Calls :class:~parrot.knowledge.wiki.store.BaseWikiStore directly (search_fts / search_vector) — this adapter intentionally does NOT delegate to :class:~parrot.knowledge.wiki.search.WikiCombinedSearch (decision: PageIndex/GraphIndex have their own dedicated adapters; wiki-plane results stay purely tagged as the "wiki" origin).

Class ParrotWikiOrigin

Adapter wrapping a BaseWikiStore (SQLite or in-memory backend).

Always FTS-capable (supports_fts=True): search_fts is the lexical-search entry point on every wiki-store backend. The vector leg is only active when an async embedder is configured, since search_vector takes an embedding, not free text.

Parameter Type Default Description
store 'BaseWikiStore' A :class:BaseWikiStore instance (e.g. SQLiteWikiStore, InMemoryWikiStore).
embedder Optional[Callable[[str], Awaitable[List[float]]]] None Optional async callable (text: str) -> list[float] used to embed the query before calling store.search_vector. When None (default), search always uses the FTS leg.
category Optional[str] None Optional exact category pre-filter forwarded to search_fts.
name str 'wiki' Adapter name. Defaults to "wiki".
description Optional[str] None LLM-readable explanation of this origin. Defaults to a description of the LLM-Wiki plane and its two legs.
timeout Optional[float] None Optional per-adapter timeout override in seconds.

Method ParrotWikiOrigin.search

Search the wiki plane: vector leg if configured, else 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 return.

Returns: List[OriginHit] — Normalized hits in the backend's native return order.

Method ParrotWikiOrigin.fts_search

Run the wiki store's lexical search_fts leg.

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 return.

Returns: List[OriginHit] — Normalized hits in the store's native BM25 rank order.

Alias SearchOrigin

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

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