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%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
renovate[bot] 6bd5411fd5
Update ghcr.io/astral-sh/uv Docker tag to v0.8.0 (#44)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-17 23:11:05 +00:00
.vscode Fix docker build 2024-12-17 08:43:29 +01:00
tests Fix tests and input checks 2024-12-16 16:18:04 +01:00
.dockerignore Deployment (#1) 2025-01-31 17:10:52 +01:00
.editorconfig Update compose 2024-12-18 15:59:49 +01:00
.gitattributes Initial commit 2024-12-17 17:32:24 +01:00
.gitignore Merge branch 'main' of github.com:DCC-BS/bento-embeddings 2025-03-28 11:48:35 +01:00
compose.yaml Add env variables 2025-01-07 15:56:54 +01:00
Dockerfile Update ghcr.io/astral-sh/uv Docker tag to v0.8.0 (#44) 2025-07-17 23:11:05 +00:00
LICENSE Initial commit 2024-12-17 17:32:24 +01:00
pyproject.toml Update dependency flash-attn to v2.8.1 (#41) 2025-07-10 13:27:47 +00:00
pytest.ini Fix tests and input checks 2024-12-16 16:18:04 +01:00
README.md Initial commit 2024-12-17 17:32:24 +01:00
renovate.json dont update python 2025-04-04 09:18:58 +02:00
service.py Update dependencies, improve docker fix issue with reranker 2025-05-20 13:08:32 +02:00
uv.lock Update dependency flash-attn to v2.8.1 (#41) 2025-07-10 13:27:47 +00:00

Servinge Embeddings and Rankers with BentoML

BentoML API for Jina v3 multilingual embeddings and cross encoder reranker using the reranker wrapper.

Preprequisites

Install astral uv.

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