FastAPI-Backend-Models / services /topic_service.py

Commit History

refactor: Update GROQ_TOPIC_MODEL to the latest production version and adjust fallback models in TopicService for improved model selection and stability.
ce133a0

malek-messaoudii commited on

refactor: Update GROQ_TOPIC_MODEL for consistency and adjust fallback models in TopicService to enhance model selection and robustness.
e2251fd

malek-messaoudii commited on

feat: Add GROQ_TOPIC_MODEL configuration and enhance TopicService to utilize it for improved model selection during initialization, including fallback options for robustness.
870d2ba

malek-messaoudii commited on

feat: Add topic similarity service using Google Generative AI embeddings, enabling improved topic matching and similarity analysis. Update topic extraction logic to utilize this service and enhance overall functionality.
a453c29

Yassine Mhirsi commited on

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