Skip to content

Commit

Permalink
rename to STAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
samos123 committed Oct 28, 2023
1 parent a2cdb0f commit 8def3ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
REGISTRY: ghcr.io
IMAGE_NAME: substratusai/sentence-transformers-api
IMAGE_NAME: substratusai/stapi

# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Sentence Transformers API
# STAPI: Sentence Transformers API

OpenAI compatible embedding API that uses Sentence Transformer for embeddings

Container Image: `ghcr.io/substratusai/sentence-transformers-api`
Container Image: `ghcr.io/substratusai/stapi`

Support the project by adding a star! ❤️
Join us on Discord:
Expand All @@ -11,21 +11,21 @@ Join us on Discord:
</a>

## Install
There are 2 options to install: Docker or local Python install.
There are 2 options to install STAPI: Docker or local Python install.

### Install (Docker)
Run the API locally using Docker:
```bash
docker run -p 8080:8080 -d ghcr.io/substratusai/sentence-transformers-api
docker run -p 8080:8080 -d ghcr.io/substratusai/stapi
```

### Install (Local python)
Install and run the API server locally using Python. Only supports python 3.9, 3.10 and 3.11.

Clone the repo:
```bash
git clone https://github.com/substratusai/sentence-transformers-api
cd sentence-transformers-api
git clone https://github.com/substratusai/stapi
cd stapi
```

Install dependencies:
Expand All @@ -39,7 +39,7 @@ uvicorn main:app --port 8080 --reload
```

## Usage
After you've installed sentence-transformers-api,
After you've installed STAPI,
you can visit the API docs on [http://localhost:8080/docs](http://localhost:8080/docs)

You can also use CURL to get embeddings:
Expand All @@ -64,7 +64,7 @@ print(embedding)

## Supported Models
Any model that's supported by Sentence Transformers should also work as-is
with Sentence Transformers API.
with STAPI.
Here is a list of [pre-trained models](https://www.sbert.net/docs/pretrained_models.html) available with Sentence Transformers.

By default the `all-MiniLM-L6-v2` model is used and preloaded on startup. You
Expand Down

0 comments on commit 8def3ec

Please sign in to comment.