RAG_with_OpenLIT
1.0.0
พื้นที่เก็บข้อมูลนี้ใช้ Ragas Metrics บนระบบ RAG พร้อมด้วยเครื่องมือสังเกตการณ์ OpenLIT
เพื่อรัน repo นี้:
$ 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. ดำเนินการกระบวนการเป็นก้อน
วางไฟล์ pdfs ลงในโฟลเดอร์ 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: