OSSS.ai.agents.historian.search¶
OSSS.ai.agents.historian.search
¶
Historical search infrastructure for the Historian agent.
This module provides various search strategies for finding relevant historical content from the notes directory, including tag-based, keyword, and future semantic search capabilities.
SearchResult
¶
Bases: BaseModel
A single search result from historical content.
Migrated from dataclass to Pydantic BaseModel for enhanced validation, serialization, and integration with the OSSS Pydantic ecosystem.
HistorianSearchInterface
¶
NotesDirectoryParser
¶
TagBasedSearch
¶
Bases: HistorianSearchInterface
Search based on frontmatter topics and tags.
search(query, limit=10)
async
¶
Search based on topic matching.
KeywordSearch
¶
Bases: HistorianSearchInterface
Enhanced keyword search with TF-IDF-like scoring.
search(query, limit=10)
async
¶
Search based on keyword matching with relevance scoring.
HybridSearch
¶
Bases: HistorianSearchInterface
Hybrid search combining tag-based and keyword search.
search(query, limit=10)
async
¶
Combine results from tag-based and keyword search.
SemanticSearchPlaceholder
¶
Bases: HistorianSearchInterface
Placeholder for future semantic search implementation.
search(query, limit=10)
async
¶
Placeholder that falls back to hybrid search.