Skip to content

kemingy/mosec_emb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mosec_emb

Embedding service with mosec that is compatible with OpenAI embedding API.

Usage

EMB_MODEL=thenlper/gte-base python main.py

You can find more embedding models from the HuggingFace Embedding LeaderBoard.

Dev

envd up

Images

You can use the prebuilt image from DockerHub: kemingy/mosec-emb-cpu.

docker run --rm -p 8000:8000 kemingy/mosec-emb-cpu:latest

Or build your own image:

# docker
docker build .
# envd
envd build :serving

Test

python client.py

About

Embedding service with mosec that is compatible with OpenAI API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published