OSSS.ai.store.topic_manager¶
OSSS.ai.store.topic_manager
¶
Topic management and auto-tagging pipeline for OSSS.
This module provides intelligent topic extraction and suggestion capabilities that analyze agent outputs to automatically propose relevant topics and tags.
TopicSuggestion
¶
Bases: BaseModel
A suggested topic with confidence and reasoning.
Migrated from dataclass to Pydantic BaseModel for enhanced validation, serialization, and integration with the OSSS Pydantic ecosystem.
TopicAnalysis
¶
Bases: BaseModel
Complete topic analysis for a query and agent outputs.
Migrated from dataclass to Pydantic BaseModel for enhanced validation, serialization, and integration with the OSSS Pydantic ecosystem.
KeywordExtractor
¶
Extract meaningful keywords and phrases from text.
extract_keywords(text, min_length=3)
¶
Extract keywords with frequency counts.
TopicMapper
¶
Map extracted terms to structured topics.
map_terms_to_topics(terms)
¶
Map extracted terms to topic suggestions.