File size: 874 Bytes
93f8c9a
 
 
 
 
 
 
ab94916
93f8c9a
 
ab94916
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
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:

```bash
pip install -r requirements.txt