GithubHelp home page GithubHelp logo

Comments (5)

alexklibisz avatar alexklibisz commented on August 26, 2024 1

I added a test to make sure it's working in #178 . The test creates a mapping like the one above, indexes 100 docs with this mapping, runs a count request to count the number of fields with each field, makes sure the result for each request is 100, then runs a query targeting each of the vector fields and makes sure it returns some neighbors. It's possible there's still some edge case that I hadn't thought of.

from elastiknn.

alexklibisz avatar alexklibisz commented on August 26, 2024

@zeppelinen Coincidentally I also ran into a closely related issue when updating to es 7.9.2. I'll keep you posted. I should have some to look into it more this weekend and early next week.

from elastiknn.

alexklibisz avatar alexklibisz commented on August 26, 2024

@zeppelinen Which version are you using? I was trying to reproduce the issue but was actually able to make an index with the following mapping:

{
  "issue-176" : {
    "mappings" : {
      "properties" : {
        "df0" : {
          "type" : "elastiknn_dense_float_vector",
          "similarity" : "boolean",
          "elastiknn" : {
            "dims" : 10
          }
        },
        "df1" : {
          "type" : "elastiknn_dense_float_vector",
          "similarity" : "boolean",
          "elastiknn" : {
            "model" : "lsh",
            "similarity" : "angular",
            "dims" : 10,
            "L" : 10,
            "k" : 1
          }
        },
        "df2" : {
          "type" : "elastiknn_dense_float_vector",
          "similarity" : "boolean",
          "elastiknn" : {
            "model" : "lsh",
            "similarity" : "angular",
            "dims" : 10,
            "L" : 10,
            "k" : 1
          }
        },
        "df3" : {
          "type" : "elastiknn_dense_float_vector",
          "similarity" : "boolean",
          "elastiknn" : {
            "model" : "lsh",
            "similarity" : "l2",
            "dims" : 10,
            "L" : 21,
            "k" : 2,
            "w" : 3
          }
        },
        "df4" : {
          "type" : "elastiknn_dense_float_vector",
          "similarity" : "boolean",
          "elastiknn" : {
            "model" : "permutation_lsh",
            "dims" : 10,
            "k" : 22,
            "repeating" : false
          }
        },
        "id" : {
          "type" : "keyword",
          "store" : true
        },
        "sb0" : {
          "type" : "elastiknn_sparse_bool_vector",
          "similarity" : "boolean",
          "elastiknn" : {
            "dims" : 10
          }
        },
        "sb1" : {
          "type" : "elastiknn_sparse_bool_vector",
          "similarity" : "boolean",
          "elastiknn" : {
            "model" : "sparse_indexed",
            "dims" : 10
          }
        },
        "sb2" : {
          "type" : "elastiknn_sparse_bool_vector",
          "similarity" : "boolean",
          "elastiknn" : {
            "model" : "lsh",
            "similarity" : "jaccard",
            "dims" : 10,
            "L" : 10,
            "k" : 2
          }
        },
        "sb3" : {
          "type" : "elastiknn_sparse_bool_vector",
          "similarity" : "boolean",
          "elastiknn" : {
            "model" : "lsh",
            "similarity" : "jaccard",
            "dims" : 10,
            "L" : 10,
            "k" : 2
          }
        },
        "sb4" : {
          "type" : "elastiknn_sparse_bool_vector",
          "similarity" : "boolean",
          "elastiknn" : {
            "model" : "lsh",
            "similarity" : "hamming",
            "dims" : 10,
            "L" : 10,
            "k" : 3
          }
        }
      }
    }
  }
}

from elastiknn.

zeppelinen avatar zeppelinen commented on August 26, 2024

from elastiknn.

zeppelinen avatar zeppelinen commented on August 26, 2024

I tested same configuration again using plugin from official project releases page and it works just fine.
Looks like my environment is broken. I'd blame adoptopenjdk docker container used for build.
Thank you @alexklibisz for your great work. I continue testing, hope will be back with more useful feedback.

from elastiknn.

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.