Find answers from the community

Updated 2 months ago

Chat history

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
engine.chat_history = x
L
k
2 comments
Actually, that property is read only

Instead, you can pass in the chat history on the function call

.chat(msg, chat_history=chat_history)
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