Find answers from the community

Updated 5 months ago

Chat history

At a glance

The post asks how to get chat history from a bot. Community members suggest using the .chat_history attribute. Another community member raises an issue with changes in the vector store, encountering an error that was not present in version 0.6.7. The error is related to the metadata dictionary not containing the node content. Community members discuss the issue, with one suggesting that the error should have been caught in a try/except block. Another community member notes that the issue was due to the index being built using version 0.6.7, and that the error is not present with newer indexes.

question - how can i get chat history from bot ?
L
a
6 comments
use the .chat_history attribute
Another question - has anything changeged in vector store . I see an error that was not there in 0.6.7
Traceback (most recent call last):
File "/Users/ashish/opt/anaconda3/envs/LLMTools/lib/python3.9/site-packages/llama_index/vector_stores/weaviate_utils.py", line 122, in to_node
node = metadata_dict_to_node(entry)
File "/Users/ashish/opt/anaconda3/envs/LLMTools/lib/python3.9/site-packages/llama_index/vector_stores/utils.py", line 61, in metadata_dict_to_node
raise ValueError("Node content not found in metadata dict.")
ValueError: Node content not found in metadata dict.
What version do you have? There should be proper legacy support for indexes πŸ€”
that error should have been caught in a try/except
@Logan M , sorry my fault . The reason is the index was built using 0.6.7 so it was falling back to the old structure..:) With newer index I dont see that error
Add a reply
Sign up and join the conversation on Discord