RAG_with_OpenLIT
1.0.0
このリポジトリは、OpenLIT 可観測性ツールを使用して RAG システムに Ragas メトリクスを実装します。
このリポジトリを実行するには:
$ git clone https : // github . com / paulomuraroferreira / Self_correcting_coding_agent . git
$ cd Self_correcting_coding_agent
$ pip install - e .
.env ファイルを作成し、次の環境変数を入力します。
OPENAI_API_KEY = your_openai_api_key
OTEL_EXPORTER_OTLP_ENDPOINT = http : // 127.0 . 0.1 : 4318
アプリケーションを実行します。
4.1.チャンク処理を実行する
PDF ファイルをapp/data/pdfs
フォルダーに置きます
走る
$ python app / chunking . py
4.2. fastapi を実行する
$ cd app
$ uvicorn app:app --reload
4.3 OpenLit の実行
$ git clone [email protected]:openlit/openlit.git
$ cd openlit
$ docker compose up -d
4.4 次の認証情報を使用して OpenLit ダッシュボードに入ります。
Email: [email protected]
Password: openlituser
4.5.ファイル request.http でリクエストを送信します。
例:
### POST Request to FastAPI
POST http://127.0.0.1:8000/query
Accept: application/json
Content-Type: application/json
{
"question": "What is QLora?"
}
4.6 OpenLit ダッシュボードでメトリクスを確認します。