From 9c6b0b963c446969e0353ea6e66ef260b818caf7 Mon Sep 17 00:00:00 2001 From: Ayyub I Date: Mon, 13 Nov 2023 18:42:45 -0600 Subject: [PATCH 1/2] reverted to gpt-4 --- 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 5dd078e0b200e2c844d013826b1c680c6185b0a4 Mon Sep 17 00:00:00 2001 From: Ayyub I Date: Mon, 13 Nov 2023 18:43:29 -0600 Subject: [PATCH 2/2] reverted to langchain v 0.0.330 --- packages/googlecloud/functions/getanswer/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/googlecloud/functions/getanswer/requirements.txt b/packages/googlecloud/functions/getanswer/requirements.txt index a7e27b65..83e78d1c 100644 --- a/packages/googlecloud/functions/getanswer/requirements.txt +++ b/packages/googlecloud/functions/getanswer/requirements.txt @@ -3,7 +3,7 @@ functions-framework flask google-cloud-error-reporting python-dotenv -langchain +langchain==0.0.330 openai==0.28.1 google-api-python-client # Google API google-search-results # SerpAPI