Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

change paris str to question variable for first message index.md (#8527)

Maxime Rivest33da561aeb38
diff --git a/docs/docs/tutorials/conversation_history/index.md b/docs/docs/tutorials/conversation_history/index.md
index 1fb7f4314..ec89fac33 100644
--- a/docs/docs/tutorials/conversation_history/index.md
+++ b/docs/docs/tutorials/conversation_history/index.md
@@ -28,7 +28,7 @@ while True:
break
outputs = predict(question=question, history=history)
print(f"\n{outputs.answer}\n")
- history.messages.append({"question": "What is the capital of France?", **outputs})
+ history.messages.append({"question": question, **outputs})
dspy.inspect_history()
```
@@ -81,7 +81,7 @@ In adhering to this structure, your objective is:
User message:
[[ ## question ## ]]
-What is the capital of France?
+do you know the competition between pytorch and tensorflow?
Assistant message: