blob: 31f2181f0fe3d8ab7e57d49cc944c5185676e6e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# NAI
---
Néo AI, a personnal assistant using LLM.
A TUI interface for local llama.cpp LLM, in the future more functionnality will
be added to this AI.
> [!CAUTION]
> This project is designed to help me understand modern techniques around AI and
> LLM. Other projects like [txtchat](https://github.com/neuml/txtchat) and
> [LangRoid](https://langroid.github.io/langroid/) are more advanced and better for real use.
## Usage
### Dependencies
This project is written in Rust, so you will need `rustc` and `cargo`.
Moreover, you will need a LLM API, currently only works with local
[ollama](https://github.com/ollama/ollama) API.
### Building & Running
To build and run this project you will need to install all the dependencies used:
```bash
cargo install
```
Once that is done, just
```bash
cargo run
```
and there you go !
## Screenshots

## Feature
- Conversation are saved inside files in JSON in this folder `conv/`, and can be reused on others LLM.
- In normal mode, conversation can be resumed by the LLM into bullet point list.
- LLM can be configured thanks to configuration files in `config/`
- Requests are routed thanks to the LLM to other expert LLM. Code questions are send to a code expert, wikipedia questions are send to a module which use a kiwix API to provide data from Wikipedia.
## TODO
- Color change if it's an user or the LLM (dunno how to do it in this code base)
- Connect & try LLM / tools
## Inspiration and reason
Why in Rust ?
Because I wanted to learn Rust, and the language is fast and powerful.
- [WilmerAI](https://github.com/SomeOddCodeGuy/WilmerAI/) a system where all the inferences are routed to others expert LLM.
|
ArKa projects. All rights to me, and your next child right arm.