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

Allow arbitrary "document" types #1

Open
janheinrichmerker opened this issue Mar 14, 2024 · 0 comments
Open

Allow arbitrary "document" types #1

janheinrichmerker opened this issue Mar 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@janheinrichmerker
Copy link

Just a quick thought: Why restrict the basic re-ranking interface to just strings?
For example, one might want to re-rank images and there might be models that support that.
I believe, the two main model classes of this library, Result and RankedResults, can pretty easily be relaxed to support generic document types (i.e., by extending Generic[T] and swapping str for T).

@bclavie bclavie added the enhancement New feature or request label Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants