Skip to content

Repository files navigation

TLDR

Self-hosted Embeddings API for "Fullstack Vectors" course

How to run the FastAPI

  • pip install -r requirements.txt
  • uvicorn src.main:app --host 0.0.0.0 --port 7000 --proxy-headers --reload

How to save versions of top-level packages

  • pip install pipreqs
  • pipreqs . --force

Example cURL POST command for testing embeddings generation

curl -X POST http://localhost:7000/huggingface/embedding \
     -H "Content-Type: application/json" \
     -d '{"input": "hello world"}'

Hugging Face reference links

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages