Git Product home page Git Product logo

Comments (5)

jegou avatar jegou commented on May 27, 2024 1

@sbdk82
This conversion is a way to define an embedding. "Hashing" could mean many things in this context, including what's Faiss does internally for representing the vectors it indexes.

Directly using a q-gram as a sum of 1-hot vector may be ok-ish but not taking into account the inter-word similarity. This is why I suggested taking the sum of word2vec (over q-grams for instance) instead. We have done some tests in a similar setting with Faiss and it seemed that this was giving decent results.

from faiss.

jegou avatar jegou commented on May 27, 2024

Faiss is not a string matching library.
If you can cast your problem to vector search (i.e., by using string embeddings such as sums of word2vec), then you may consider Faiss, but the hard part will be to define a proper string embedding in the first place that would be adapted to your problem. Otherwise consider using a specific string matching algorithm.

from faiss.

sbdk82 avatar sbdk82 commented on May 27, 2024

How about converting the string to a vector of hash values of its q-grams?

from faiss.

sbdk82 avatar sbdk82 commented on May 27, 2024

@jegou Thanks !! I will try to figure out how could I use word2vec for my data.

from faiss.

Ashansl avatar Ashansl commented on May 27, 2024

How can i use word2vev with FAISS

from faiss.

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.