ragit 0.4.5

git-like rag pipeline
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Evaluate RAG

## logs

The most straight-forward way is to see the logs. First, run `rag config --set dump_log true` to enable logs.

Any command that uses LLM will write a log file. The log files are found in `.ragit/logs`. You can run `rag gc --logs` to remove the logs.

## token usage

By running `rag config --set dump_api_usage true`, you can enable api usage logs. It records the token counts. You can use `rag audit` command to see how much you spent using LLMs.

## manual tfidf

With `rag tfidf` command, you can test its tfidf engine.