Closed binhaoIsUsed closed 1 week ago
Hey @binhaoIsUsed, nice to see you back! Diving into another challenge, I see? Let's crack this one together.
The error you're encountering is likely due to a mismatch between the vector dimensions expected by the find_brain_closest_query
function and the actual dimensions of the vectors being generated by the Embeddings
instance used in CustomSupabaseVectorStore
.
The find_brain_closest_query
function is trying to execute an RPC call with the query_embedding
parameter, which is expected to be a vector of a certain dimension. The error message suggests that the function is expecting vectors of dimension 4096, but the vectors being generated by the Embeddings
instance are of dimension 1536.
To resolve this issue, you need to ensure that the vectors generated by the Embeddings
instance match the expected dimensions. This could involve:
Embeddings
instance to ensure it's set to generate vectors of the correct size (4096 in this case).Embeddings
instance is correct and cannot be changed, you may need to adjust the find_brain_closest_query
function to accept vectors of size 1536.find_brain_closest_query
function cannot be changed, you might need to find a way to convert or adapt the 1536-dimensional vectors to the expected 4096-dimensional format, though this could potentially lead to loss of information or accuracy.Unfortunately, without more information about the specific implementation of the Embeddings
class used in CustomSupabaseVectorStore
, it's difficult to provide a more specific solution. If you could provide more details about this, it would be helpful in diagnosing and resolving the issue.
Yeah sorry about that the seeding of the database makes it so it only accepts OpenAI.
Could you delete all lines in the brain_vectors table on localhost:54323 ? And try again the procedure ?
Would like to fix this bug....
Please go ahead :)
On Sun, Mar 17, 2024 at 22:42:11, Mirza Ismail Baig < @.*** > wrote:
Would like to fix this bug....
ā Reply to this email directly, view it on GitHub ( https://github.com/QuivrHQ/quivr/issues/2356#issuecomment-2002972129 ) , or unsubscribe ( https://github.com/notifications/unsubscribe-auth/AEVUW3B7QR2XPQFQNFNFHV3YYZ5DHAVCNFSM6AAAAABE2BK4ISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBSHE3TEMJSHE ). You are receiving this because you commented. Message ID: <QuivrHQ/quivr/issues/2356/2002972129 @ github. com>
Add a brain but getting this error even though the brains_vector table is empty
here https://github.com/QuivrHQ/quivr/issues/2486#issuecomment-2176878298 you can find about schema adjusting. fix for model properties #2690
Thanks for your contributions, we'll be closing this issue as it has gone stale. Feel free to reopen if you'd like to continue the discussion.
What happened?
When I'm going to chat with newly created brain via Ollama, get an error on "different vector dimensions". The expected dimension of embedding query is 4096. (chatgpt3.5-turbo-0125 is OK.)
Relevant log output
Twitter / LinkedIn details
No response