ragx

Crates.ioragx
lib.rsragx
version0.3.0
created_at2024-12-29 04:55:30.983084+00
updated_at2024-12-30 16:12:24.053447+00
descriptionAI RAG
homepagehttps://github.com/ai-flowx/ragx
repositoryhttps://github.com/ai-flowx/ragx
max_upload_size
id1497983
size41,502
Jia (craftslab)

documentation

https://github.com/ai-flowx/ragx

README

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

Commit count: 12

cargo fmt