RAG_with_OpenLIT
1.0.0
Repositori ini mengimplementasikan Metrik Ragas pada sistem RAG dengan alat observasi OpenLIT.
Untuk menjalankan repo ini:
$ git clone https : // github . com / paulomuraroferreira / Self_correcting_coding_agent . git
$ cd Self_correcting_coding_agent
$ pip install - e .
Buat file .env dan isi variabel lingkungan berikut:
OPENAI_API_KEY = your_openai_api_key
OTEL_EXPORTER_OTLP_ENDPOINT = http : // 127.0 . 0.1 : 4318
Jalankan Aplikasi:
4.1. Jalankan proses pemotongan
Letakkan file pdf di folder app/data/pdfs
Berlari
$ python app / chunking . py
4.2. Jalankan fastapi
$ cd app
$ uvicorn app:app --reload
4.3 Jalankan OpenLit
$ git clone [email protected]:openlit/openlit.git
$ cd openlit
$ docker compose up -d
4.4 Masuk ke dasbor OpenLit dengan kredensial berikut:
Email: [email protected]
Password: openlituser
4.5. Kirim permintaan pada file request.http
Contoh:
### 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 Periksa metrik di dasbor OpenLit: