Open littlezbq opened 1 month ago
Hello, @littlezbq! I'm here to assist you with any bugs, questions, or contributions. Let's work together to resolve the issue you're facing.
The error "relation 'public.syncs_active' does not exist" indicates that the table public.syncs_active
is not found in the database. This could be due to the table not being created successfully during the deployment.
Based on the provided SQL migration script, the table public.syncs_active
should be created with the following command:
create table "public"."syncs_active" (
"id" bigint generated by default as identity not null,
"name" text not null,
"syncs_user_id" bigint not null,
"user_id" uuid not null default gen_random_uuid(),
"settings" jsonb,
"last_synced" timestamp with time zone not null default (now() AT TIME ZONE 'utc'::text),
"sync_interval_minutes" integer default 360
);
To resolve this issue, ensure that the migration script has been executed successfully. You can verify the existence of the table by running the following query in your database:
SELECT * FROM information_schema.tables WHERE table_name = 'syncs_active';
If the table does not exist, re-run the migration script to create the table. If the table exists, ensure that the correct schema (public
) is being referenced in your application [1].
To continue the conversation, mention @dosu.
it works, no error like this anymore, but the brain still return blank to me, no error in logs checked on docker.
To troubleshoot the issue where the brain returns a blank response despite no errors in the logs and the public.syncs_active
table issue being resolved, you can follow these steps:
Check Current Brain and Prompt: Ensure that currentBrain
and currentPrompt
are correctly set. If either is null
or not properly set, the brain might not have the necessary context to generate a response.
Verify Fetching Status: Confirm that isFetchingBrains
is false
to ensure that the brains have been fetched and are available.
Inspect Brain Details: Check the currentBrainDetails
fetched by useBrainFetcher
to ensure that the brain's details are correctly retrieved.
Review State Management: Ensure that the state management for currentBrainId
, currentPromptId
, allBrains
, and publicPrompts
is functioning correctly and that the IDs match the expected values.
Check API Call Responses: Ensure that the API calls made by the brain are returning valid responses. The APIBrainQA
class in backend/modules/brain/api_brain_qa.py
handles API calls and responses. Verify that the get_api_call_response_as_text
method is correctly processing the API responses and that no exceptions are being raised.
Log Steps and Responses: Utilize the log_steps
method in the APIBrainQA
class to log each step of the process. This can help identify where the issue might be occurring. Additionally, ensure that the make_completion
method is correctly handling the responses and not exceeding the recursive call limit.
Here is a code snippet to help you verify these aspects:
// Ensure currentBrain and currentPrompt are set
if (!currentBrain) {
console.error("Current brain is not set.");
return;
}
if (!currentPrompt) {
console.error("Current prompt is not set.");
return;
}
// Ensure brains are fetched
if (isFetchingBrains) {
console.error("Brains are still being fetched.");
return;
}
// Check current brain details
if (!currentBrainDetails) {
console.error("Current brain details are not available.");
return;
}
// Log the current state for debugging
console.log("Current Brain ID:", currentBrainId);
console.log("Current Prompt ID:", currentPromptId);
console.log("All Brains:", allBrains);
console.log("Public Prompts:", publicPrompts);
console.log("Current Brain Details:", currentBrainDetails);
By verifying these aspects and ensuring that the API calls and responses are correctly handled, you can identify any discrepancies or missing information that might be causing the blank response [1][2].
To continue the conversation, mention @dosu.
What happened?
i follow exactly as the documentation to deploy quivr and it succeed. I can create brain and upload files to it, but when I try to talk to my brain, he returned nothing but a blank to me, and the page didn't jump any error windows. hope someone can help me figure out what happened
Relevant log output
Twitter / LinkedIn details
No response