From e199c29384c31d68ca2f9d0634f2c06cfc8c4395 Mon Sep 17 00:00:00 2001 From: Minu Mathew Date: Wed, 16 Oct 2024 15:24:24 -0500 Subject: [PATCH 1/3] mhealth customization --- ai_ta_backend/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai_ta_backend/main.py b/ai_ta_backend/main.py index 6282541c..9362e1fd 100644 --- a/ai_ta_backend/main.py +++ b/ai_ta_backend/main.py @@ -64,7 +64,7 @@ def index() -> Response: JSON: _description_ """ response = jsonify( - {"hi there, this is a 404": "Welcome to UIUC.chat backend 🚅 Read the docs here: https://docs.uiuc.chat/ "}) + {"hi there, this is a 404": "Welcome to mHealth UIUC.chat backend 🚅 Read the docs here: https://docs.uiuc.chat/ "}) response.headers.add('Access-Control-Allow-Origin', '*') return response From 9d564e6dec8cb332b95bd3fade61ced817edbdd0 Mon Sep 17 00:00:00 2001 From: Minu Mathew Date: Fri, 1 Nov 2024 14:32:31 -0500 Subject: [PATCH 2/3] decrease search results returned --- ai_ta_backend/service/retrieval_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai_ta_backend/service/retrieval_service.py b/ai_ta_backend/service/retrieval_service.py index b098345b..555f9132 100644 --- a/ai_ta_backend/service/retrieval_service.py +++ b/ai_ta_backend/service/retrieval_service.py @@ -412,7 +412,7 @@ def vector_search(self, search_query, course_name, doc_groups: List[str], user_q public_doc_groups = [] # Max number of search results to return - top_n = 120 + top_n = 80 # Capture the search invoked event to PostHog self._capture_search_invoked_event(search_query, course_name, doc_groups) From 42d871adfda92d37b6fbf39214438c584841fb2b Mon Sep 17 00:00:00 2001 From: Minu Mathew Date: Fri, 8 Nov 2024 14:59:42 -0600 Subject: [PATCH 3/3] reduce retrieved docs --- ai_ta_backend/service/retrieval_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai_ta_backend/service/retrieval_service.py b/ai_ta_backend/service/retrieval_service.py index 555f9132..f4de5153 100644 --- a/ai_ta_backend/service/retrieval_service.py +++ b/ai_ta_backend/service/retrieval_service.py @@ -412,7 +412,7 @@ def vector_search(self, search_query, course_name, doc_groups: List[str], user_q public_doc_groups = [] # Max number of search results to return - top_n = 80 + top_n = 10 # Capture the search invoked event to PostHog self._capture_search_invoked_event(search_query, course_name, doc_groups)