Sign inSign up

c3n7/sentence-transformers-api

By c3n7

•Updated over 1 year ago

A REST API for getting embeddings through sentence transformers.

Image
Machine learning & AI
0

259

c3n7/sentence-transformers-api repository overview

⁠Sentence Transformers API

Tests Deploy
A REST API for getting embeddings through sentence transformers.

⁠Installation

You can install and run the api using either of the options below:

  1. Docker compose
  2. Manual installation
⁠Docker Compose

Prerequisites:

  • You need to have installed docker

Steps:

  1. Clone the repository:
    git clone https://github.com/tefabi/sentence-transformers-api
    
  2. Create a .env and add a token:
    echo "TOKEN=mySecretToken"
    
  3. Start the service:
    docker compose up -d
    
⁠Manual Installation

Prerequisites:

  • You need to have installed python. Steps:
  1. Clone the repository:
    git clone https://github.com/tefabi/sentence-transformers-api
    
  2. Create a .env and add a token:
    echo "TOKEN=mySecretToken"
    
  3. Start a virtual environment, activate it and install the requirements:
    python -m venv venv
    source venv/bin/activate
    pip install -r requirements.txt
    
  4. Start the api server
    fastapi dev
    

Tag summary

Content type

Image

Digest

sha256:a44880a34…

Size

3.4 GB

Last updated

over 1 year ago

docker pull c3n7/sentence-transformers-api:v0.0.1