Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 3 months ago
0
Follow
Chat history
Chat history
Inactive
0
Follow
k
kornberg
11 months ago
Β·
If I'm setting up LlamaIndex in an API, is it rationale for me to have a static "chat_engine" that I simply replace the chat_history with every time I get a request? By literalyl doing
Plain Text
Copy
engine.chat_history = x
L
k
2 comments
Share
Open in Discord
L
Logan M
11 months ago
Actually, that property is read only
Instead, you can pass in the chat history on the function call
.chat(msg, chat_history=chat_history)
k
kornberg
11 months ago
Thanks, looking into the npx create-llama backend now to see how they do it
Add a reply
Sign up and join the conversation on Discord
Join on Discord