Skip to content

arjan/embeddings-server-ref

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reference embedding server

Flask server to calculate embeddings (feature vectors) for given input sentences. Uses the SentenceTransformers library. Returns the vectors as raw float-32-encoded bytes in the response body.

Installation

Install the pipenv program to manage the Python packages. Then run pipenv install.

To run the server, run:

pipenv run flask run

Now visit http://localhost:5000/encode?q=hello+world to encode sentences.

About

Example implementation of an embeddings server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published