Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/groundedsage/clj-chatbot-ui

An open source Clojure chat UI for interacting with LLM's
https://github.com/groundedsage/clj-chatbot-ui

ai chatbot clojure clojurescript datahike electric gpt llm

Last synced: 2 months ago
JSON representation

An open source Clojure chat UI for interacting with LLM's

Awesome Lists containing this project

README

        

# clj chatbot ui

This is a clone of [chatbot-ui](https://github.com/mckaywrigley/chatbot-ui) built in [electric](https://github.com/hyperfiddle/electric) and [datahike](https://github.com/replikativ/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.

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

Dev build:

* Shell: `clj -A:dev -X dev/-main`, or repl: `(dev/-main)`
* http://localhost:8080
* Electric root function: [src/electric_starter_app/main.cljc](src/electric_starter_app/main.cljc)
* Hot code reloading works: edit -> save -> see app reload in browser

Prod build:

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