Giter Club home page Giter Club logo

Comments (5)

dosubot avatar dosubot commented on May 27, 2024 2

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:

  1. Checking the configuration of the Embeddings instance to ensure it's set to generate vectors of the correct size (4096 in this case).
  2. If the 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.
  3. 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.

marcato15 avatar marcato15 commented on May 27, 2024 1

Add a brain but getting this error even though the brains_vector table is empty

from quivr.

StanGirard avatar StanGirard commented on May 27, 2024

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.

MiirzaBaig avatar MiirzaBaig commented on May 27, 2024

Would like to fix this bug....

from quivr.

StanGirard avatar StanGirard commented on May 27, 2024

from quivr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.