Giter Club home page Giter Club logo

Comments (5)

matsui528 avatar matsui528 commented on June 18, 2024 1

Hi @insikk

OPQ is a straightforward extension of PQ, where a rotation matrix is applied for each vector in advance. Implementing OPQ is on my TODO list, but PR is welcome :)

LOPQ is a different technology, and cannot be combined to the current PQk-means.

The SOTA search system consists of (1) coarse quantization and (2) PQ compression for each vector. LOPQ is a strategy to train the coarse-quantizer in the per-cell manner, whereas PQk-means does not include coarse-quantization step (because maintaining such data structure is an additional cost in our setting).

from pqkmeans.

insikk avatar insikk commented on June 18, 2024

Thank you for your kind explanation. Now I understand what is the difference.

I am really looking forward OPQ implementation.
Because I don't know much about OPQ, I don't think I can send PR on this feature.

Meanwhile, I might able to plug and play with external OPQ library. Can you recommend any C++, C++ + Python binding, or Pure Python implementation of OPQ?

from pqkmeans.

matsui528 avatar matsui528 commented on June 18, 2024

OPQ is an encoding step, so it should be pure Python (pq_encoder.py). Actually I have my own C++ implementation of OPQ. I'll port it to Python (maybe next month)

from pqkmeans.

ParadoxZW avatar ParadoxZW commented on June 18, 2024

May I get your C++ implementation of OPQ encoding (just for educational purpose)? This is my email: [email protected]. I'll really appreciate it if you could send me a copy.

from pqkmeans.

matsui528 avatar matsui528 commented on June 18, 2024

Oh I had completely forgotten about this issue 😂 Python implemention of OPQ is available here https://github.com/matsui528/nanopq

from pqkmeans.

Related Issues (16)

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.