metadata
title: Generate Embeddings Api
emoji: π»
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
license: mit
Generate Embeddings API
Overview
This API provides a simple interface to generate sentence embeddings using Sentence Transformers models. The service exposes endpoints where you can send sentences and receive their respective embeddings in a JSON response.
π Features
Generate sentence embeddings using two different pre-trained models:
- all-MiniLM-L6-v2
- intfloat/e5-large-v2
JSON response with embeddings for each sentence.
FastAPI backend with easy-to-use endpoints.
π§ Requirements
- Python 3.7+
- FastAPI
- SentenceTransformers
- Uvicorn (for running the app)
Install dependencies
To install all the required dependencies, run the following:
pip install -r requirements.txt