Skip to content

Commit 4ed80bf

Browse files
authored
Merge pull request #1070 from mwarden/15-fix-bug-python-example-query-rag
fix unit 15 README.md final example code bug
2 parents 390856e + fca4306 commit 4ed80bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

15-rag-and-vector-databases/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def chatbot(user_input):
206206
# create a message object
207207
messages=[
208208
{"role": "system", "content": "You are an AI assistant that helps with AI questions."},
209-
{"role": "user", "content": history[-1]}
209+
{"role": "user", "content": "\n\n".join(history) }
210210
]
211211

212212
# use chat completion to generate a response

0 commit comments

Comments
 (0)