From 32776c1561852c4b3f8d2884a4f49077bab37b17 Mon Sep 17 00:00:00 2001 From: Ayyub I Date: Sat, 11 Nov 2023 16:46:56 -0600 Subject: [PATCH 1/2] modification: replaced new gpt-4 model with older v --- packages/googlecloud/functions/getanswer/inquirer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/googlecloud/functions/getanswer/inquirer.py b/packages/googlecloud/functions/getanswer/inquirer.py index e6372077..06507400 100644 --- a/packages/googlecloud/functions/getanswer/inquirer.py +++ b/packages/googlecloud/functions/getanswer/inquirer.py @@ -137,7 +137,7 @@ def transform_query_for_date(query): def get_indepth_response_from_query(df, db, query, k): logger.info("Performing in-depth summary query...") - llm = ChatOpenAI(model_name="gpt-4-1106-preview") + llm = ChatOpenAI(model_name="gpt-4") template_date_detection = """ Analyze the following query: "{query}". From 014515f95b27083a3e06831295f62e7de6b2016d Mon Sep 17 00:00:00 2001 From: Ayyub I Date: Sat, 11 Nov 2023 16:52:12 -0600 Subject: [PATCH 2/2] reverted to new model --- packages/googlecloud/functions/getanswer/inquirer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/googlecloud/functions/getanswer/inquirer.py b/packages/googlecloud/functions/getanswer/inquirer.py index 06507400..e6372077 100644 --- a/packages/googlecloud/functions/getanswer/inquirer.py +++ b/packages/googlecloud/functions/getanswer/inquirer.py @@ -137,7 +137,7 @@ def transform_query_for_date(query): def get_indepth_response_from_query(df, db, query, k): logger.info("Performing in-depth summary query...") - llm = ChatOpenAI(model_name="gpt-4") + llm = ChatOpenAI(model_name="gpt-4-1106-preview") template_date_detection = """ Analyze the following query: "{query}".