Skip to content

CERIT-SC/embedbase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Build docker

cd docker
docker build -t cerit.io/cerit/embedbase:v0.6 .
docker push cerit.io/cerit/embedbase:v0.6

Run embed base

  • Deploy all manifests, if needed, provide OPENAI API KEY secret, set OPENAI_URL and OPENAI_MODEL envs.
  • Postgress database is needed, manifests assume cloudnativepg operator is deployed

Insert Documents

Run utils/embed.py to embed documents into db. Export env EMBEDURL to point to embedbase URL. It expect fumadocs format of documents.

Test embedding

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published