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

[BUG] Cagra To hnsw, the search api not use search param ef #2363

Closed
Presburger opened this issue Jun 14, 2024 · 3 comments · Fixed by #2367
Closed

[BUG] Cagra To hnsw, the search api not use search param ef #2363

Presburger opened this issue Jun 14, 2024 · 3 comments · Fixed by #2367
Labels
bug Something isn't working

Comments

@Presburger
Copy link

We recently tried to convert CAGRA to HNSW using RAFT's built-in API. We found that the ef parameter was not passed to hnswlib. Moreover, even when using setEf to set the ef parameter, there are concurrency issues.

const search_params& params,

@Presburger Presburger added the bug Something isn't working label Jun 14, 2024
@divyegala
Copy link
Member

@Presburger thank you for bringing this up, I'll look into this.

Could you please describe the concurrency issues?

@Presburger
Copy link
Author

@divyegala

std::string filepath = "/tmp/cagra_index.bin"; \

The hardcoded file name here might not be concurrency-friendly?

@divyegala
Copy link
Member

@Presburger thanks for pointing that out. I'll also add a random number to that file name so it is more concurrency friendly.

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

Successfully merging a pull request may close this issue.

2 participants