Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drewxs/chatbot
https://github.com/drewxs/chatbot
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/drewxs/chatbot
- Owner: drewxs
- License: mit
- Created: 2023-08-29T13:07:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-30T06:17:26.000Z (over 1 year ago)
- Last Synced: 2023-08-30T14:07:49.785Z (over 1 year ago)
- Language: Rust
- Size: 36.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chatbot
An AI chatbot built using Leptos, Actix, and Rustformers w/ Llama 2.
## Requirements
- Nightly Rust toolchain
- `wasm32-unknown-unknown` target
- Trunk and cargo-leptos tools```sh
rustup toolchain install nightly
rustup target add wasm32-unknown-unknown
cargo install trunk cargo-leptos
```## Setup
### Model
A downloaded model in GGML format supported by [Rustformers/llm](https://github.com/rustformers/llm).
Find one [here](https://huggingface.co/models?search=ggml).
Copy env template:
```sh
cp .env.example .env
```Update `MODEL_PATH` with the full path to the downloaded model.
## Development
Launch development server:
```sh
cargo leptos watch
```