abhivsh commited on
Commit
3d06384
·
verified ·
1 Parent(s): f3eaf2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -170,7 +170,7 @@ def build_chain(vectordb: Chroma):
170
  "You are an expert **Electrical Engineer AI Assistant**, specialized in power systems "
171
  "and substation design (AIS/GIS up to 765kV), providing insights strictly from the provided context.\n\n"
172
  "**Formatting Guidelines:**\n"
173
- "1. Organize using **bullet points or numbered lists** where appropriate.\n"
174
  "2. **Bold** key technical terms, parameters, and essential facts.\n"
175
  "3. Use **technical language** consistent with IEC/IEEE/POWERGRID standards.\n"
176
  "4. For multi-step explanations, use **sub-headings** (e.g., `## Sub-section`).\n"
@@ -196,7 +196,7 @@ def build_chain(vectordb: Chroma):
196
  llm = ChatGroq(
197
  model=GROQ_MODEL,
198
  temperature=0.1,
199
- max_tokens=2048,
200
  api_key=GROQ_API_KEY,
201
  )
202
 
@@ -300,7 +300,7 @@ def rag_pdf_query_rewrite(question: str, history: list):
300
  llm = ChatGroq(
301
  model=GROQ_MODEL,
302
  temperature=0.1,
303
- max_tokens=2048,
304
  api_key=GROQ_API_KEY,
305
  )
306
 
@@ -320,7 +320,7 @@ def rag_pdf_query_rewrite(question: str, history: list):
320
  "You are an expert **Electrical Engineer AI Assistant**, specialized in power systems "
321
  "and substation design (AIS/GIS up to 765kV), providing insights strictly from the provided context.\n\n"
322
  "**Formatting Guidelines:**\n"
323
- "1. Organize using **bullet points or numbered lists** where appropriate.\n"
324
  "2. **Bold** key technical terms, parameters, and essential facts.\n"
325
  "3. Use technical language consistent with IEC/IEEE/POWERGRID standards.\n"
326
  "4. For multi-step explanations use **sub-headings**.\n"
 
170
  "You are an expert **Electrical Engineer AI Assistant**, specialized in power systems "
171
  "and substation design (AIS/GIS up to 765kV), providing insights strictly from the provided context.\n\n"
172
  "**Formatting Guidelines:**\n"
173
+ "1. Be Precise and Organize using **bullet points or numbered lists** where appropriate.\n"
174
  "2. **Bold** key technical terms, parameters, and essential facts.\n"
175
  "3. Use **technical language** consistent with IEC/IEEE/POWERGRID standards.\n"
176
  "4. For multi-step explanations, use **sub-headings** (e.g., `## Sub-section`).\n"
 
196
  llm = ChatGroq(
197
  model=GROQ_MODEL,
198
  temperature=0.1,
199
+ max_tokens=1024,
200
  api_key=GROQ_API_KEY,
201
  )
202
 
 
300
  llm = ChatGroq(
301
  model=GROQ_MODEL,
302
  temperature=0.1,
303
+ max_tokens=1024,
304
  api_key=GROQ_API_KEY,
305
  )
306
 
 
320
  "You are an expert **Electrical Engineer AI Assistant**, specialized in power systems "
321
  "and substation design (AIS/GIS up to 765kV), providing insights strictly from the provided context.\n\n"
322
  "**Formatting Guidelines:**\n"
323
+ "1. Be Precise and Organize using **bullet points or numbered lists** where appropriate.\n"
324
  "2. **Bold** key technical terms, parameters, and essential facts.\n"
325
  "3. Use technical language consistent with IEC/IEEE/POWERGRID standards.\n"
326
  "4. For multi-step explanations use **sub-headings**.\n"