[Bug]: Fail to retrieve list_chats() for chats created by using the UI or without giving a name to the "name" variable
Is there an existing issue for the same bug?
- [x] I have checked the existing issues.
RAGFlow workspace code commit ID
....
RAGFlow image version
latest
Other environment information
I am using RAGFlow in docker containers on an AWS virtual machine that uses this AMI: Deep Learning OSS Nvidia Driver AMI GPU PyTorch 2.2.0 (Amazon Linux 2) 20240517. This ragflow has been linked by network with Ollama.
Actual behavior
When I try to list the chats by using the API, I have no problem to list the chats made by calls to the API, but when I try to list chats that have been created using the RAGFlow user interface or I try to list all the chats I have, the next error occurs:
rag_object.list_chats()
Traceback (most recent call last): File "
Expected behavior
With the correct functionality of the API, the last code should retrievea RAGFlow object of the Chat class.
Steps to reproduce
myChats= rag_object.list_chats()
or
myChats= rag_object.list_chats(name= "Name of a chat created using the UI")
Additional information
No response
This may be caused by KB that already has been removed.
What means KB? I am a bit lost...
Sorry, knowledge base or dataset.
Hi! I'm facing same issue. I see that the problem is that some chat I've created is pointing to a KB that does not exist currently. Is this the expected behaviour? I mean, should't it anyway list that chat and then throw the error if I try to create a session for example?
In my case, I am trying to create a simple function that list all chats and removes them, but since I have some chat poiting to a non existent KB I can't list them. Therefore I have to manually search for that chat with deleted KB.
I understand that this is not a major issue, but it would be nice that listing chats is not linked to that chat being functional.