A dockerized RAG FastAPI service with vector store handling.

Usage

Use as package from cli

$ python -m venv venv
$ source venv/bin/activate
(venv)$ pip install fRAGme
# set OPENAI_API_KEY in .env to "YOUR_OPENAI_API_KEY"
(venv)$ uvicorn src.fRAGme.app:app --host 0.0.0.0 --port 8080

Screenshot of active webservice.

Docker

From dockerhub

docker pull krauhen/fragme
docker run -d \
          --name fragme \
          --hostname fragme \
          --restart always \
          -p 8080:8080 \
          -e PORT=8080 \
          -e HOST=0.0.0.0 \
          -e OPENAI_API_KEY="" \
          -e DATA_PATH="./data" \
          krauhen/fragme:latest

Screenshot of active docker webservice.

From source

git clone git@github.com:krauhen/fRAGme.git
cd fRAGme
docker-compose build
# set OPENAI_API_KEY in .env to "YOUR_OPENAI_API_KEY"
docker-compose up

OpenApiSpec(OAS)

OpenAPISpec(OAS).

ReDoc

ReDoc.