Coder Social home page Coder Social logo

Comments (6)

okhat avatar okhat commented on July 23, 2024 1

@surajnair04 It's ready, beta version: https://github.com/stanford-futuredata/ColBERT/tree/binarization

from colbert.

okhat avatar okhat commented on July 23, 2024

Hi Suraj! Thanks for the question.

I'll get back to you after a few meetings, but I wanted to mention a limitation of the "beta" quantization branch. FAISS indexing shouldn't be done over the compressed vectors; the double compression leads to very poor FAISS quality in that case.

Either FAISS indexing has to be executed over the full index uncompressed (and then you can delete that big index!), or it will have to use the code we'll soon push that does FAISS indexing during the initial colbert.index step!

I haven't read your commands yet btw...

from colbert.

surajnair04 avatar surajnair04 commented on July 23, 2024

Hi @okhat, thanks for your prompt response!
I think I understand what's happening

  • the initial colbert.index step in the beta quantization branch compress the vectors
  • colbert.faiss_index step would then further compress the vector as part of the underlying indexing strategy

This double compression leads to a drop in the ranking quality. Is this correct?

So, the alternative is to wait for the beta branch to stabilize at which point colbert.index would contain the FAISS indexing?
Do you have a sense of when the release is planned?
I'm quite eager to try it out :)

The commands are pretty much the same as in the master branch (with the exception of --compress argument for colbert.index)

from colbert.

okhat avatar okhat commented on July 23, 2024

This double compression leads to a drop in the ranking quality. Is this correct?

Exactly. If you have the uncompressed index, you can create the FAISS object on top of that. Then this is resolved.

Otherwise, we're planning to update this in less than 2 weeks.

The commands are pretty much the same as in the master branch (with the exception of --compress argument for colbert.index)

Yup sounds right to me

from colbert.

surajnair04 avatar surajnair04 commented on July 23, 2024

Exactly. If you have the uncompressed index, you can create the FAISS object on top of that. Then this is resolved.

Otherwise, we're planning to update this in less than 2 weeks.

I believe using an uncompressed index would make sense for smaller document collections from a storage perspective.
However, I am interested in storing the compressed vectors in FAISS so it makes sense to wait.

Thanks for your help, @okhat!

from colbert.

surajnair04 avatar surajnair04 commented on July 23, 2024

@okhat, Thanks a lot! I will try it out and open new issues if I encounter any.
Closing this one for now.

from colbert.

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.