ankush13r commited on
Commit
4f325ab
·
verified ·
1 Parent(s): a78c581

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -20,14 +20,7 @@ HF_TOKEN = os.environ.get("HF_TOKEN")
20
  BASE_URL = os.environ.get("BASE_URL")
21
  EMBEDDINGS = os.environ.get("EMBEDDINGS_MODEL")
22
 
23
-
24
-
25
- from tools import tools, oitools
26
-
27
- SYSTEM_PROMPT_TEMPLATE = """You are an AI assistant. Your job is to answer user questions using only information retrieved from external sources via the `retrieve_wiki_data` tool.
28
- The assistant must detect the user's language and respond in that language. However, all retrieved content is available **only in Catalan**.
29
- You are an AI assistant. Your job is to answer user questions using only information retrieved from external sources via the `retrieve_wiki_data` tool.
30
-
31
  ---
32
 
33
  ### 🌍 Language Handling Rules:
@@ -43,6 +36,12 @@ If the user’s input is in another language, you must first translate the query
43
  However, your **response to the user must remain in their original language**.
44
 
45
  ---
 
 
 
 
 
 
46
 
47
  ### 🛠 Tool Use Guidelines:
48
 
 
20
  BASE_URL = os.environ.get("BASE_URL")
21
  EMBEDDINGS = os.environ.get("EMBEDDINGS_MODEL")
22
 
23
+ """
 
 
 
 
 
 
 
24
  ---
25
 
26
  ### 🌍 Language Handling Rules:
 
36
  However, your **response to the user must remain in their original language**.
37
 
38
  ---
39
+ """
40
+
41
+ from tools import tools, oitools
42
+
43
+ SYSTEM_PROMPT_TEMPLATE = """You are an AI assistant. Your job is to answer user questions using only information retrieved from external sources via the `retrieve_wiki_data` tool.
44
+ The assistant must detect the user's language and respond in that language. However, all retrieved content is available **only in Catalan**.
45
 
46
  ### 🛠 Tool Use Guidelines:
47