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

Server app currently does not support dense retrieval indexes #2688

Open
lintool opened this issue Jan 19, 2025 · 0 comments
Open

Server app currently does not support dense retrieval indexes #2688

lintool opened this issue Jan 19, 2025 · 0 comments

Comments

@lintool
Copy link
Member

lintool commented Jan 19, 2025

The current webapp/REST API https://github.com/castorini/anserini/blob/master/docs/rest-api.md does not support dense HNSW indexes.

For example, this works, on msmarco-v1-passage:

curl -X GET "http://localhost:8081/api/v1.0/indexes/msmarco-v1-passage/search?query=How%20does%20the%20process%20of%20digestion%20and%20metabolism%20of%20carbohydrates%20start" 

But this doesn't:

curl -X GET "http://localhost:8081/api/v1.0/indexes/msmarco-v1-passage.bge-base-en-v1.5.hnsw/search?query=How%20does%20the%20process%20of%20digestion%20and%20metabolism%20of%20carbohydrates%20start" 

That's because msmarco-v1-passage.bge-base-en-v1.5.hnsw uses an HNSW index, and https://github.com/castorini/anserini/blob/master/src/main/java/io/anserini/server/SearchService.java does not provide bindings to HNSW indexes.

We should start by fixing this.

@vincent-4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant