1 unstable release

1.0.0 Dec 29, 2024
0.3.0 Dec 30, 2024

#385 in Database interfaces

Download history 207/week @ 2024-12-29

207 downloads per month

MIT license

12KB

ragx

Actions Status License Tag

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

arch

Indexing

Node

  • id: node id
  • name: node name
  • type: node type (class, file, function, variable)
  • filePath: file path
  • language: programming language
  • fullName: full name
  • lineNumber: line number
  • description: description generated by llm

Edge

  • contain: hierarchical relationships
  • extend: inheritance or interface implementation
  • depend: file/function/module/type dependency
  • call: function calling

License

Project License can be found here.

Reference

Framework

LangChain

Memory

RAG

Toolchains

Vector

Dependencies

~17–51MB
~839K SLoC