FastAPI-Backend-Models / services /topic_service.py

Commit History

refactor: Simplify topic extraction logic in TopicService by removing Pydantic schema, enhancing JSON response handling, and adding fuzzy matching for improved topic validation.
94c2a9a

Yassine Mhirsi commited on

feat: Introduce predefined topics list in TopicService and enhance topic extraction logic to validate against this list, ensuring accurate topic matching and improved error handling.
7218dd0

Yassine Mhirsi commited on

fix: Update topic extraction instructions in TopicService to specify that the main idea should be captured in simple English.
77f9f6f

Yassine Mhirsi commited on

fix: Clarify topic extraction instructions in the TopicService to specify that the output should be a single sentence capturing the main idea.
0ab4347

Yassine Mhirsi commited on

feat: Add topic-related schemas and API routes for topic management, along with LangChain dependencies in requirements.
2380f6f

Yassine Mhirsi commited on