cd docker
docker build -t cerit.io/cerit/embedbase:v0.6 .
docker push cerit.io/cerit/embedbase:v0.6
- Deploy all manifests, if needed, provide OPENAI API KEY secret, set
OPENAI_URL
andOPENAI_MODEL
envs. - Postgress database is needed, manifests assume cloudnativepg operator is deployed
Run utils/embed.py
to embed documents into db. Export env EMBEDURL
to point to embedbase URL. It expect fumadocs format of documents.
curl -X POST https://embedbase.dyn.cloud.e-infra.cz/v1/muni-documentation/search -H "Content-Type: application/json" -d '{"query": "Kdy byl schválen nový Studijní a zkušební řád Masarykovy univerzity Akademickým senátem MU?", "top_k": "5"}'
Replace the POST URL with your URL.