1 unstable release
1.0.0 |
|
---|---|
0.3.0 | Dec 30, 2024 |
#385 in Database interfaces
207 downloads per month
12KB
ragx
Introduction
ragx is the ai rag of flowx written in Rust.
Prerequisites
- Rust >= 1.83.0
Run
./ragx --config-file="config.yml" --listen-port=":8080" --repo-path="git:path/to/repo"
Usage
Usage: ragx --config-file <FILE> --listen-port <PORT> --repo-path <PATH>
Options:
-c, --config-file <FILE> Config file [default: config.yml]
-l, --listen-port <PORT> Listen port [default: :8080]
-r, --repo-path <PATH> Repo path (upstream:path/to/repo, upstream:gerrit|git|github|gitlab) [default: git:.]
-h, --help Print help
-V, --version Print version
Settings
ragx parameters can be set in the directory config.
An example of configuration in config.yml:
Architecture
collector
: walkdirparser
: tree-sitter (static), tokenizers & rust-bert (llm)optimizer
: moka (cache), tokio (parallel)builder
: tree-sitter-graphstore
: vecxapi
: axum
Indexing
Node
id
: node idname
: node nametype
: node type (class, file, function, variable)filePath
: file pathlanguage
: programming languagefullName
: full namelineNumber
: line numberdescription
: description generated by llm
Edge
contain
: hierarchical relationshipsextend
: inheritance or interface implementationdepend
: file/function/module/type dependencycall
: function calling
License
Project License can be found here.
Reference
Framework
LangChain
Memory
RAG
Toolchains
Vector
Dependencies
~17–51MB
~839K SLoC