SayedShaun commited on
Commit
a66bf0e
·
verified ·
1 Parent(s): 727ed61

Update modules.py

Browse files
Files changed (1) hide show
  1. 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 query about ecommerce products.
91
  Here are some rules you will follow:
92
  1. Your response will be concise and informative.
93
- 2. You must answer the user's query from the given context.
94
- 3. Do not generate any incomplete sentences or duplicate sentences.
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
  -----------------------------------------------