Skip to content

Altinn/digdir-rag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clj chatbot ui

This is a clone of chatbot-ui built in electric and datahike.

I have made some minor modifications to the UI and UX and will do a full redesign once all the base issues are resolved.

Run the application

npm install to install Tailwind and other javasscript dependencies

npm run build:tailwind:dev to build the css watch and build

Entities are collected from config.edn Add this as a file to get started.

{:all-entities-image "bot.svg"
 :entities [{:name "Chatbot"
             :image "bot.svg"
             :prompt ""}]}

Dev build:

Prod build:

clj -X:build:prod build-client
clj -M:prod -m prod

Deployment env variables required:

ENTITY_CONFIG_FILE ADH_POSTGRES_PWD ADH_POSTGRES_USER ADH_POSTGRES_TABLE # remember, lowercase and underscores only

TYPESENSE_API_HOST TYPESENSE_API_KEY

COLBERT_API_URL

USE_AZURE_OPENAI AZURE_OPENAI_ENDPOINT AZURE_OPENAI_DEPLOYMENT_NAME AZURE_OPENAI_API_KEY

OPENAI_API_URL OPENAI_API_MODEL_NAME OPENAI_API_API_KEY

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages