You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Flask API server for generating text embeddings using [OpenAI's embedding model](https://platform.openai.com/docs/guides/embeddings) or the [SentenceTransformers](https://www.sbert.net/) library. SentenceTransformers supports over 500 models via [HuggingFace Hub](https://huggingface.co/sentence-transformers).
2
+
`vector-embedding-api`provides a Flask API server and client to generate text embeddings using either [OpenAI's embedding model](https://platform.openai.com/docs/guides/embeddings) or the [SentenceTransformers](https://www.sbert.net/) library. The API server also offers an in-memory cache for embeddings and returns results from the cache when available.
3
+
4
+
SentenceTransformers supports over 500 models via [HuggingFace Hub](https://huggingface.co/sentence-transformers).
3
5
4
6
## Features 🎯
5
-
* POST endpoint to create text embedding models
7
+
* POST endpoint to create text embeddings
6
8
* sentence_transformers
7
-
* OpenAI text-embedding-ada-002
9
+
* OpenAI text-embedding-ada-002
10
+
* In-memory cache for embeddings
8
11
* Easy setup with configuration file
9
12
* Simple integration with other applications
10
13
* Python client utility for submitting text
@@ -15,12 +18,12 @@ To run this server locally, follow the steps below:
Before running the server, make sure you have obtained an API key from OpenAI to use their model. You also need to set the SentenceTransformers model you want to use in the [server.conf](/server.conf) file.
36
+
Modify the [server.conf](/server.conf) file to specify a SentenceTransformers model, your OpenAI API key, or both.
0 commit comments