Comments (5)
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:
- Checking the configuration of the
Embeddings
instance to ensure it's set to generate vectors of the correct size (4096 in this case). - If the
Embeddings
instance is correct and cannot be changed, you may need to adjust thefind_brain_closest_query
function to accept vectors of size 1536. - Alternatively, if the
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.
Sources
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.
from quivr.
Add a brain but getting this error even though the brains_vector table is empty
from quivr.
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 ?
from quivr.
Would like to fix this bug....
from quivr.
from quivr.
Related Issues (20)
- [Bug]: Api Not authenticated HOT 2
- [Bug]: Setting up locally shows screen "Talk to Quivr Unpaid users have access to a free and limited demo of Quivr" HOT 16
- [Bug]: Unable to Access Login Page and Enter Credentials HOT 6
- [Bug]: While creating a new brain in localhost instance of Quivr, I am getting error HOT 16
- [Bug]: HOT 5
- [Bug]:
- [Bug]: error /app/node_modules/sharp: Command failed. HOT 2
- LocalAI support HOT 3
- [Bug]: GPT4 Brain code is not clean
- [Bug]: Unable to start backend-core HOT 8
- [Bug]: "error":"model 'llama2' not found, try pulling it first" HOT 6
- [Bug]: How to use the embedding model of ollama HOT 2
- [Bug]: runtime error: slice bounds out of range [1:0] HOT 1
- [Bug]: No model on ollama was used to answer HOT 16
- [Bug]: Not able to create brain on AWS Linux HOT 1
- [Epic]: Where does the user change the language? HOT 3
- How to set up the groq api? HOT 3
- [Bug]: it's still using OpenAI after set Ollama in .env file HOT 2
- [Feature]: azure open ai vs OpenAI key
- [Bug]: UnpickleableExceptionWrapper('postgrest.exceptions', 'APIError', ('{\'code\': \'42P01\', \'details\': None, \'hint\': None, \'message\': \'relation "public.syncs_active" does not exist\'}',), 'Error 42P01:\nMessage: relation "public.syncs_active" does not exist') HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quivr.