RAG_with_OpenLIT
1.0.0
يقوم هذا المستودع بتطبيق Ragas Metrics على نظام RAG باستخدام أداة إمكانية المراقبة OpenLIT.
لتشغيل هذا الريبو:
$ 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. قم بتشغيل فاستابي
$ 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: