Skinny Dug API built with Fast API.
Made specifically to be efficent as a kubneretes pod so it is ran as single worker process only allowing the cluster level to handle replication and load balancing.
Configure the correct environment variables for your setup with ElasticSearch in the .env
. In production the pod service name is elasticsearch
.
Run docker compose up -d
and view the test output at localhost:5551/docs
From the root /dug-semantic-search-api
directory.
python3 -m venv ~/.environments/dug-api
source ~/.environments/dug-api/bin/activate
pip install -r requirements.txt
- Configure the correct environment variables for your setup with ElasticSearch in the
.env
sh setup.sh
gunicorn -k uvicorn.workers.UvicornWorker app.server:APP
- Test the API by opening your browser at http://127.0.0.1:8000/docs