ragit 0.4.5

git-like rag pipeline
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
from utils import (
    cargo_run,
    goto_root,
    mk_and_cd_tmp_dir,
    write_string,
)

def ragit_api(test_model: str):
    goto_root()
    mk_and_cd_tmp_dir()
    write_string("hello_world.pdl", "\n<|user|>\n\nWhat's your name?\n")
    cargo_run(["init"])
    cargo_run(["pdl", "hello_world.pdl", "--model", test_model])