Spaces:
Sleeping
Sleeping
Ajaykanth Maddi commited on
Commit ·
3f6609d
1
Parent(s): 6f860a5
Code Changes - Advanced Options
Browse files
app.py
CHANGED
|
@@ -211,6 +211,15 @@ def run_rag_pipeline_multiple_questions(subset, chunking, embed_model, retriever
|
|
| 211 |
reranking, evaluator):
|
| 212 |
allQuestions = advanced_analysis.get(subset, {}).get('questions', [])
|
| 213 |
print(f"Running RAG Pipeline for {noOfQuestions} questions in subset: {subset}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 214 |
for item in range(noOfQuestions):
|
| 215 |
print(f"Processing question {item+1}/{noOfQuestions}, question: {allQuestions[item]['question']}")
|
| 216 |
|
|
|
|
| 211 |
reranking, evaluator):
|
| 212 |
allQuestions = advanced_analysis.get(subset, {}).get('questions', [])
|
| 213 |
print(f"Running RAG Pipeline for {noOfQuestions} questions in subset: {subset}")
|
| 214 |
+
|
| 215 |
+
try:
|
| 216 |
+
with open(DATA_PATH) as f:
|
| 217 |
+
advanced_analysis = json.load(f)
|
| 218 |
+
logger.info(f"Loaded data with {len(ragbench_details)} subsets")
|
| 219 |
+
except Exception as e:
|
| 220 |
+
logger.error(f"Failed to load data: {e}")
|
| 221 |
+
return None
|
| 222 |
+
|
| 223 |
for item in range(noOfQuestions):
|
| 224 |
print(f"Processing question {item+1}/{noOfQuestions}, question: {allQuestions[item]['question']}")
|
| 225 |
|