Git Product home page Git Product logo

Comments (2)

joein avatar joein commented on September 26, 2024

Hello @bnkc

With pure qdrant-client API (without fastembed mixin's methods like add and query), you can have unnamed vectors, which means that you don't need to provide a name.

However, fastembed creates named vectors and operates with them. Names of the vectors are generated from the chosen model names.
Thus, to do search, you need to set query_vector to a some named vector, e.g.:

models.NamedVector(
    name=client.get_vector_field_name(), vector=query_vector
)

If collection was not created, then the first call to add creates it.
If you want to create it on your own, take a look at get_fastembed_vector_params method

from qdrant-client.

bnkc avatar bnkc commented on September 26, 2024

Hi @joein

Thanks! This worked for me :)

from qdrant-client.

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.