Coder Social home page Coder Social logo

Comments (5)

ashvardanian avatar ashvardanian commented on May 18, 2024 1

🎉 This issue has been resolved in version 0.14.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

from usearch.

ashvardanian avatar ashvardanian commented on May 18, 2024

Consider done. I will add it in the next couple of days ;)

from usearch.

ashvardanian avatar ashvardanian commented on May 18, 2024

@leoplusx I managed to implement those today and they are already available in the latest release. You can use index.labels property to get all labels, use index[x] to get one vector under the x label, and check if it's present with the simple in operator. More enhancements coming soon!

from usearch.

leoplusx avatar leoplusx commented on May 18, 2024

Actually, it doesn't seem to work. At least in Python:

Label values all seem to be 0.

Even though, when I run a search, it's clear that there actually are non-zero labels in the index.

Code example:


matches, distances, count  = iu.search(emb_np, k=10)
matches
> array([36517119, 38332614, 38332473, 38332625, 35783650, 38332484,
       36786081, 36927136, 38642553, 37563334])

iu[36517119]
> IndexError: Couldn't find key.

len(iu.labels)
> 3361000

len(set(iu.labels))
> 1

iu.labels[:10]
> array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0])

from usearch.

ashvardanian avatar ashvardanian commented on May 18, 2024

Oh, wow. The new tests cover it, so it must have been solved, but not yet released. Will push the new release sooner.

from usearch.

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.