Spaces:
Sleeping
Sleeping
Ajaykanth Maddi commited on
Commit ·
5415f14
1
Parent(s): 8e93a1a
Code Changes - Advanced Options
Browse files
app.py
CHANGED
|
@@ -66,6 +66,7 @@ DATA_PATH = 'data/ragbench_summary_questions_chunking.json'
|
|
| 66 |
try:
|
| 67 |
with open(DATA_PATH) as f:
|
| 68 |
ragbench_details = json.load(f)
|
|
|
|
| 69 |
logger.info(f"Loaded data with {len(ragbench_details)} subsets")
|
| 70 |
except Exception as e:
|
| 71 |
logger.error(f"Failed to load data: {e}")
|
|
@@ -210,8 +211,8 @@ def run_rag_pipeline_multiple_questions(subset, chunking, embed_model, retriever
|
|
| 210 |
reranking, evaluator):
|
| 211 |
allQuestions = advanced_analysis.get(subset, {}).get('questions', [])
|
| 212 |
print(f"Running RAG Pipeline for {noOfQuestions} questions in subset: {subset}")
|
| 213 |
-
|
| 214 |
-
|
| 215 |
|
| 216 |
return None
|
| 217 |
|
|
|
|
| 66 |
try:
|
| 67 |
with open(DATA_PATH) as f:
|
| 68 |
ragbench_details = json.load(f)
|
| 69 |
+
advanced_analysis = json.load(f)
|
| 70 |
logger.info(f"Loaded data with {len(ragbench_details)} subsets")
|
| 71 |
except Exception as e:
|
| 72 |
logger.error(f"Failed to load data: {e}")
|
|
|
|
| 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 |
|
| 217 |
return None
|
| 218 |
|