https://github.com/ablil/embedding-models-api
lightweight API that exposes embedding model
https://github.com/ablil/embedding-models-api
Last synced: 12 days ago
JSON representation
lightweight API that exposes embedding model
- Host: GitHub
- URL: https://github.com/ablil/embedding-models-api
- Owner: ablil
- Created: 2025-10-19T18:22:54.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-12-17T20:20:01.000Z (6 months ago)
- Last Synced: 2025-12-21T07:51:55.721Z (6 months ago)
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Text Embedder
Lightweight Flask service that exposes a single endpoint to compute sentence embeddings
using `sentence-transformers` (default model: `sentence-transformers/all-MiniLM-L6-v2`).
The repository includes a `Dockerfile` and `compose.yml` for easy containerized deployment and model caching.
## Get started
```bash
docker compose -f compose.yml up --build
```
A prebuilt image is published to Github container registry on push to **main** branch.
Pull and run the image immediately:
```bash
docker pull ghcr.io/ablil/embedding-models-api:latest
docker run -p 8080:8080 ghcr.io/ablil/embedding-models-api:latest
```
## API
**Embedding**
```shell
curl http://localhost:8080/embed -H 'content-type: application/json' -d '{"texts": ["first", "second"]}'
```
**Health**
```shell
curl http://localhost:8080/health
```