Spaces:
Sleeping
Sleeping
Commit History
-
Refactor recommendation request and mentee query text handling
Doanh Van Vu- Updated the RecommendationRequest model to remove unnecessary fields and added `mentor_domain_ids` and `career_id` for improved data structure. - Modified the `build_mentee_query_text` function to reflect changes in the mentee data structure, enhancing clarity by including `career_id`, `domain_ids`, and `mentor_domain_ids` while removing references to `desired_skills`, `current_skills`, and `interests`.71703c8 -
Refactor mentor availability handling across services
Doanh Van Vu- Removed the `available_slots` and `has_availability` fields from the MentorUpsertRequest and RecommendationRequest models, streamlining the data structure. - Updated the PineconeService and RecommendationService to eliminate references to availability metrics in logging and processing. - Simplified scoring logic in the rerank_mentors function by removing the availability score calculation, enhancing performance and clarity. - Adjusted the mentor text building process to exclude available slots information, improving the output format.69934b0 -
Add test for recommend mentors endpoint and enhance logging in services
Doanh Van Vu- Introduced a new test script `test_api.py` to validate the recommend mentors API endpoint. - Enhanced logging in `embedding_service.py`, `pinecone_service.py`, `recommendation_service.py`, `reranker_service.py`, and `scoring.py` to include timing information for various operations, improving traceability and performance monitoring. - Improved error handling and logging messages for better clarity and debugging support.6a14fa9