QuivrHQ / quivr

Opiniated RAG for integrating GenAI in your apps 🧠 Focus on your product rather than the RAG. Easy integration in existing products with customisation! Any LLM: GPT4, Groq, Llama. Any Vectorstore: PGVector, Faiss. Any Files. Anyway you want.
https://core.quivr.com
Other
36.42k stars 3.56k forks source link

[Bug]: Missing Input in Brainentity #3295

Open zdkderpphb opened 3 weeks ago

zdkderpphb commented 3 weeks ago

What happened?

I was unable to edit a brain because of an input error. I added the line quivr_assistant: Optional[bool] = None at the end of class BrainEntity and then it worked.

Relevant log output

backend-api  | pydantic_core._pydantic_core.ValidationError: 1 validation error for BrainEntity
backend-api  | quivr_assistant
backend-api  |   Extra inputs are not permitted [type=extra_forbidden, input_value=False, input_type=bool]

Twitter / LinkedIn details

No response

linear[bot] commented 3 weeks ago

CORE-219 [Bug]: Missing Input in Brainentity

dosubot[bot] commented 3 weeks ago

Hey there, @zdkderpphb! I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this together!

A similar issue was not directly found, but it seems like the error is due to an extra input not being permitted in the BrainEntity class. Adding quivr_assistant: Optional[bool] = None to the class definition resolved the issue for you by allowing this additional input.

To properly handle this, ensure that any new attributes you add to BrainEntity are defined in the class to avoid validation errors. This aligns with how optional attributes are typically managed in the class [1].

To continue talking to Dosu, mention @dosu.

StanGirard commented 3 weeks ago

Hey, can you try to do a supabase db reset from the backend folder please ?