Open HyunjunA opened 3 months ago
Which vector DB are you connected to when you see this error? The full AlzKB vector DB? or the local (test) vector DB?
I used the full AlzKB vector DB.
If the WEAVIATE_URL and WEAVIATE_API_KEY are configured correctly, it works fine. It's likely that you mixed the test and prod WEAVIATE_API_KEYs
During troubleshooting, I found that setting the wrong WEAVIATE_API_KEY causes the IndexError
you're experiencing (very likely because no "knowledge* was retrieved.)
We'll need to resolve these tasks:
POST /chatapi/v1/got
endpoint needs to return a proper result when no "thoughts" are retrieved.@HyunjunA Please confirm if you can get this to work with the correct weaviate configuration (i.e. having the right corresponding WEAVIATE_URL and WEAVIATE_API_KEY)
@jay-m-dev I believe the WEAVIATE_URL and WEAVIATE_API_KEY are configured correctly. However, I can review with you how they are set up on my local machine.
It is functioning properly, but occasionally, this error occurs.
Describe the bug The error shown in the screenshot sometimes occurs when posting a question "Please list five genes associated with Alzheimer's disease" to the Kragen server. Specifically, the POST request to http://127.0.0.1:5050/chat/api/v1/got results in a "500 Internal Server Error." The browser console displays "Failed to fetch data: SyntaxError: Unexpected token '<', '<!doctype '... is not valid JSON," indicating that the server response was not in JSON format as expected. Instead, the server seems to have returned an HTML document (often an error page), which the client-side script attempted to parse as JSON.
To Reproduce Steps to reproduce the behavior:
Screenshots![image](https://github.com/EpistasisLab/KRAGEN/assets/39776968/7c4e890e-e1cd-4b74-9eec-1fb9837e8a6c)