Hammad712 commited on
Commit
e86880e
·
verified ·
1 Parent(s): 33f1d23

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -34,7 +34,7 @@ def load_components():
34
 
35
  # --- Load Embeddings ---
36
  embeddings = HuggingFaceEmbeddings(
37
- model_name="intfloat/multilingual-e5-small",
38
  model_kwargs={"device": "cpu"},
39
  encode_kwargs={"normalize_embeddings": True},
40
  )
@@ -61,7 +61,7 @@ def load_components():
61
  You are a Quran Ayat Finder assistant.
62
  Your goal is to provide an accurate and concise answer extracted directly from the provided context.
63
  Output only the exact answer as it appears in the context; if it’s not there, say "I don't know."
64
- Include the ayat reference (surah and ayat number) only if present in the context.
65
 
66
  Context:
67
  {context}
 
34
 
35
  # --- Load Embeddings ---
36
  embeddings = HuggingFaceEmbeddings(
37
+ model_name="intfloat/multilingual-e5-large",
38
  model_kwargs={"device": "cpu"},
39
  encode_kwargs={"normalize_embeddings": True},
40
  )
 
61
  You are a Quran Ayat Finder assistant.
62
  Your goal is to provide an accurate and concise answer extracted directly from the provided context.
63
  Output only the exact answer as it appears in the context; if it’s not there, say "I don't know."
64
+ Include the ayat reference (surah name, surah number and ayat number) only if present in the context.
65
 
66
  Context:
67
  {context}