mirror of
https://github.com/DCC-BS/bentoml-embeddings.git
synced 2026-08-26 10:14:28 +00:00
Read-only mirror of https://github.com/DCC-BS/bentoml-embeddings — Basel-Stadt. Issues & pull requests at the source.
- Python 96.9%
- Dockerfile 3.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .vscode | ||
| tests | ||
| .dockerignore | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| compose.yaml | ||
| Dockerfile | ||
| LICENSE | ||
| pyproject.toml | ||
| pytest.ini | ||
| README.md | ||
| renovate.json | ||
| service.py | ||
| uv.lock | ||
Servinge Embeddings and Rankers with BentoML
BentoML API for Jina v3 multilingual embeddings and cross encoder reranker using the reranker wrapper.
Preprequisites
Run the BentoML Service locally
uv run bento serve service:Embeddings
This will run the BentoML API with a Swagger Documentation up and running.
Run as docker container
docker compose up --build
Push docker image to quay.io
docker push quay.io/ktbs/fd-itbs-dms/embeddings
Change the embedding or reranker model
In the service.py file:
For the embedding model, change EMBEDDING_MODEL_ID to your hugging face sentence transformer compatible embedding model.
For the reranker change RANKER_TYPE and LANGUAGE according to the docs of the rerankers library.
Run tests
uv run pytest