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

Closed
lintool opened this issue Jan 19, 2025 · 2 comments
Closed

Server app currently does not support dense retrieval indexes #2688

lintool opened this issue Jan 19, 2025 · 2 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

@lintool
Copy link
Member Author

lintool commented Feb 1, 2025

@vincent-4 should we close this issue or more to do here?

@vincent-4
Copy link
Member

This is good for now, if we have more to work on wrt the interface, it can go in another issue.

@lintool lintool closed this as completed Feb 1, 2025
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

2 participants