Spaces:
Sleeping
Sleeping
Update modules.py
Browse files- modules.py +3 -5
modules.py
CHANGED
|
@@ -87,13 +87,11 @@ def select_llm(model:str, api_key:str=None, temperature: float=0.5)->Union[Ollam
|
|
| 87 |
|
| 88 |
|
| 89 |
def get_prompt(context:str, query:str)->str:
|
| 90 |
-
prompt = f"""You are a chatbot named Mira. You answer user's
|
| 91 |
Here are some rules you will follow:
|
| 92 |
1. Your response will be concise and informative.
|
| 93 |
-
2.
|
| 94 |
-
3.
|
| 95 |
-
4. If you give a list of product do not list more than 5 product at once.
|
| 96 |
-
|
| 97 |
-----------------------------------------------
|
| 98 |
Context: '''{context}'''
|
| 99 |
-----------------------------------------------
|
|
|
|
| 87 |
|
| 88 |
|
| 89 |
def get_prompt(context:str, query:str)->str:
|
| 90 |
+
prompt = f"""You are a chatbot named Mira. You answer user's queries about e-commerce products.
|
| 91 |
Here are some rules you will follow:
|
| 92 |
1. Your response will be concise and informative.
|
| 93 |
+
2. Do not generate any incomplete sentences or duplicate sentences.
|
| 94 |
+
3. If you give a list of products, do not list more than 5 products at once.
|
|
|
|
|
|
|
| 95 |
-----------------------------------------------
|
| 96 |
Context: '''{context}'''
|
| 97 |
-----------------------------------------------
|