From be5f596d2ac1fac8095eec0bc82094d0cb6f8de0 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 1 Jun 2024 00:07:14 -0700 Subject: [PATCH] refac: improved fc prompt --- examples/function_calling_filter_pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/function_calling_filter_pipeline.py b/examples/function_calling_filter_pipeline.py index 70afcdb..43bae4d 100644 --- a/examples/function_calling_filter_pipeline.py +++ b/examples/function_calling_filter_pipeline.py @@ -149,7 +149,7 @@ And answer according to the language of the user's question.""", fc_system_prompt = ( f"Functions: {json.dumps(function_specs, indent=2)}" + """ -If a function doesn't match the query, return an empty string. Else, pick a function, fill in the parameters from the function's schema, and return it in the format { "name": \"functionName\", "parameters": { "key": "value" } }. Only pick a function if the user asks." +If a function doesn't match the query, return an empty string. Else, pick a function, fill in the parameters from the function's schema, and return it in the format { "name": \"functionName\", "parameters": { "key": "value" } }. Only pick a function if the user asks. Only return the object. Do not return any other text." """ )