From dbe3049682df6d6b801475a2f95e6388d847b267 Mon Sep 17 00:00:00 2001 From: Julian Risch Date: Fri, 14 Apr 2023 18:09:02 +0200 Subject: [PATCH] docs: Add docstring for PromptNode debug attribute (#4672) --- haystack/nodes/prompt/prompt_node.py | 1 + 1 file changed, 1 insertion(+) diff --git a/haystack/nodes/prompt/prompt_node.py b/haystack/nodes/prompt/prompt_node.py index dc28f0d29..4defbfef9 100644 --- a/haystack/nodes/prompt/prompt_node.py +++ b/haystack/nodes/prompt/prompt_node.py @@ -81,6 +81,7 @@ class PromptNode(BaseComponent): :param top_k: The number of independently generated texts to return per prompt. For example, if you set top_k=3, the model will generate three answers to the query. :param stop_words: Stops text generation if any of the stop words is generated. :param model_kwargs: Additional keyword arguments passed when loading the model specified in `model_name_or_path`. + :param debug: Whether to include the used prompts as debug information in the output under the key _debug. Note that Azure OpenAI InstructGPT models require two additional parameters: azure_base_url (the URL for the Azure OpenAI API endpoint, usually in the form `https://.openai.azure.com') and