Javier Vera
commited on
Update rag_hf.py
Browse files
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 **
|
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.
|