Spaces:
Sleeping
Sleeping
reverting to old prompt template
Browse files- appStore/rag.py +2 -2
appStore/rag.py
CHANGED
@@ -49,11 +49,11 @@ def run_query(context, label, model_sel_name):
|
|
49 |
chatbot_role = """You are an analyst specializing in climate change impact assessments and producing insights from policy documents."""
|
50 |
|
51 |
### adding new template which doesnt need 'system' role [Further investigation needed if its applicable to all mmodels or not]
|
52 |
-
messages = [{"role": "user", "content": chatbot_role + get_prompt(context, label)}]
|
53 |
|
54 |
|
55 |
## old template
|
56 |
-
|
57 |
|
58 |
# Initialize the client, pointing it to one of the available models
|
59 |
client = InferenceClient(model_sel_name, token=hf_token)
|
|
|
49 |
chatbot_role = """You are an analyst specializing in climate change impact assessments and producing insights from policy documents."""
|
50 |
|
51 |
### adding new template which doesnt need 'system' role [Further investigation needed if its applicable to all mmodels or not]
|
52 |
+
#messages = [{"role": "user", "content": chatbot_role + get_prompt(context, label)}]
|
53 |
|
54 |
|
55 |
## old template
|
56 |
+
messages = [{"role": "system", "content": chatbot_role},{"role": "user", "content": get_prompt(context, label)}]
|
57 |
|
58 |
# Initialize the client, pointing it to one of the available models
|
59 |
client = InferenceClient(model_sel_name, token=hf_token)
|