Skip to content

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.

LLMTopicAnalyzer

Use LLM for sophisticated topic analysis.

analyze_topics(query, agent_outputs) async

Use LLM to analyze and suggest topics.

TopicManager

Main topic management and auto-tagging pipeline.

analyze_and_suggest_topics(query, agent_outputs, existing_topics=None) async

Complete topic analysis and suggestion pipeline.