MossaabDev commited on
Commit
022e20f
·
verified ·
1 Parent(s): 04ce96d

Update app/rag.py

Browse files
Files changed (1) hide show
  1. app/rag.py +1 -1
app/rag.py CHANGED
@@ -24,7 +24,7 @@ def find_top_5_ayahs_qdrant(question: str):
24
 
25
  # Try to find the Arabic equivalent by matching the English verse
26
  print(f"{english_ayah.strip}")
27
- match = ayat_arabic[ayat_arabic['english'].str.strip() == english_ayah.strip()]
28
  arabic_ayah = match.iloc[0]['arabic'] if not match.empty else "❌ Not found"
29
 
30
  results.append({
 
24
 
25
  # Try to find the Arabic equivalent by matching the English verse
26
  print(f"{english_ayah.strip}")
27
+ match = ayat_arabic[ayat_arabic['answers'].str.strip() == english_ayah.strip()]
28
  arabic_ayah = match.iloc[0]['arabic'] if not match.empty else "❌ Not found"
29
 
30
  results.append({