Javier Vera commited on
Commit
9f87bf2
·
verified ·
1 Parent(s): f047de4

Update rag_hf.py

Browse files
Files changed (1) hide show
  1. rag_hf.py +1 -1
rag_hf.py CHANGED
@@ -154,7 +154,7 @@ def generate_response(matrix, id_map, G, rdf, user_question, k, embedder):
154
  rdf_facts.extend([f"{p}: {v}" for p, v in query_rdf(rdf, i)])
155
  prompt = f"""<s>[INST]
156
  You are an expert in South American indigenous languages.
157
- Use strictly and only the information below to answer the user question in **Spanish**.
158
  - Do not infer or assume facts that are not explicitly stated.
159
  - If the answer is unknown or insufficient, say \"I cannot answer with the available data.\"
160
  - Limit your answer to 100 words.
 
154
  rdf_facts.extend([f"{p}: {v}" for p, v in query_rdf(rdf, i)])
155
  prompt = f"""<s>[INST]
156
  You are an expert in South American indigenous languages.
157
+ Use strictly and only the information below to answer the user question in **English**.
158
  - Do not infer or assume facts that are not explicitly stated.
159
  - If the answer is unknown or insufficient, say \"I cannot answer with the available data.\"
160
  - Limit your answer to 100 words.