From b929fd9f591851b245944f145479e17a8c6cc508 Mon Sep 17 00:00:00 2001 From: Francisco Ingham Date: Tue, 17 Jan 2023 03:45:14 -0300 Subject: [PATCH] Exclude reference to 'example' in api prompt (#629) Co-authored-by: lesscomfortable --- langchain/chains/api/prompt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain/chains/api/prompt.py b/langchain/chains/api/prompt.py index 500a7afe..020ac8d1 100644 --- a/langchain/chains/api/prompt.py +++ b/langchain/chains/api/prompt.py @@ -4,7 +4,7 @@ from langchain.prompts.prompt import PromptTemplate API_URL_PROMPT_TEMPLATE = """You are given the below API Documentation: {api_docs} Using this documentation, generate the full API url to call for answering the user question. -You should build the API url so as to get a response that is as short as possible, while still getting the necessary information to answer the question. Pay attention in the following example, how there are many pieces of information that are deliberately not included in the API call. You should do the same. +You should build the API url in order to get a response that is as short as possible, while still getting the necessary information to answer the question. Pay attention to deliberately exclude any unnecessary pieces of data in the API call. Question:{question} API url:"""