Spaces:
Build error
Build error
π§ Arabic RAG System with DSPy + Gradio
This is a full Hugging Face Space project that allows:
- Uploading Arabic PDF documents.
- Storing and indexing chunks using ChromaDB.
- Asking questions and generating answers using DSPy with context retrieval.
- Improving answer accuracy using MIPROv2 optimization based on train/val sets.
π Usage
- Upload one or more Arabic PDFs.
- Ask a question in Arabic.
- Optionally upload
trainset.jsonl
andvalset.jsonl
to fine-tune the DSPy RAG module.
π Files
app.py
β Main coderequirements.txt
β Dependenciestrainset.jsonl
/valset.jsonl
β Example training and validation sets