MossaabDev commited on
Commit
b799d15
·
verified ·
1 Parent(s): 95b66fe

Update app/rag.py

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