TheMihirNaik's picture
Update README.md
ab94916 verified
|
raw
history blame
874 Bytes
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