From 8e94488d4ee3c5a29a919d0b9e19f7ea4170b1f4 Mon Sep 17 00:00:00 2001 From: Cameron Pfiffer Date: Wed, 14 Aug 2024 16:42:32 -0700 Subject: [PATCH] Correct variable name in chain-of-thought example --- docs/cookbook/chain_of_thought.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cookbook/chain_of_thought.md b/docs/cookbook/chain_of_thought.md index 17c362696..bd76f40b7 100644 --- a/docs/cookbook/chain_of_thought.md +++ b/docs/cookbook/chain_of_thought.md @@ -94,7 +94,7 @@ def generate_hermes_prompt(user_prompt): return ( "<|im_start|>system\n" "You are a world class AI model who answers questions in JSON " - f"Here's the json schema you must adhere to:\n\n{schema}\n<|im_end|>\n" + f"Here's the json schema you must adhere to:\n\n{json_schema}\n<|im_end|>\n" "<|im_start|>user\n" + user_prompt + "<|im_end|>"