Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HNSW cannot index more than one vector per relation #80

Closed
chuanqisun opened this issue Apr 29, 2023 · 1 comment
Closed

HNSW cannot index more than one vector per relation #80

chuanqisun opened this issue Apr 29, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@chuanqisun
Copy link
Contributor

Repro steps is based on v0.6 release note, with dimension reduced to 1 for demo purpose

:create product {
    id 
    => 
    name, 
    description, 
    price, 
    name_vec: <F32; 1>, 
    description_vec: <F32; 1>
}
::hnsw create product:semantic{
    fields: [name_vec, description_vec], 
    dim: 1, 
    ef: 16, 
    m: 32,
}
?[id, name, description, price, name_vec, description_vec] <- [[1, "name", "description", 100, [1], [1]]]

:put product {id => name, description, price, name_vec, description_vec}

Results

  × when executing against relation 'product'
  ╰─▶ Cannot find tuple [1]

image

I tried removing the description_vec and it works as expected.

:create product {
    id 
    => 
    name, 
    description, 
    price, 
    name_vec: <F32; 1>,
}
::hnsw create product:semantic{
    fields: [name_vec], 
    dim: 1, 
    ef: 16, 
    m: 32,
}
?[id, name, description, price, name_vec] <- [[1, "name", "description", 100, [1]]]

:put product {id => name, description, price, name_vec}

image

@zh217 zh217 added the bug Something isn't working label Apr 30, 2023
zh217 added a commit that referenced this issue Apr 30, 2023
@zh217
Copy link
Contributor

zh217 commented May 2, 2023

This is now fixed

@zh217 zh217 closed this as completed May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants