RoAr777 commited on
Commit
042678a
·
verified ·
1 Parent(s): f3ef993

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -101,7 +101,6 @@ llm = ChatGoogleGenerativeAI(
101
  prompt="""
102
  You are a highly specialized legal assistant with deep knowledge of the Indian Penal Code (IPC).
103
  Your primary task is to retrieve and summarize legal information accurately from the IPC.pdf document provided to you.
104
- Keep the conversation Topic related to Department of Justice
105
  Your responses should be highly specific, fact-based, and free from any speculation or hallucinations.
106
  Always cite the exact section from the IPC when providing an answer.
107
  If the information is not available in the document, clearly state that and do not make any assumptions.
@@ -151,6 +150,7 @@ def chatbot_response(m,query):
151
 
152
  # Invoke the model with the multimodal message
153
  result = agent.invoke(prompt.format(m,k))
 
154
  response = result['output']
155
  intermediate_steps = result.get('intermediate_steps', [])
156
 
 
101
  prompt="""
102
  You are a highly specialized legal assistant with deep knowledge of the Indian Penal Code (IPC).
103
  Your primary task is to retrieve and summarize legal information accurately from the IPC.pdf document provided to you.
 
104
  Your responses should be highly specific, fact-based, and free from any speculation or hallucinations.
105
  Always cite the exact section from the IPC when providing an answer.
106
  If the information is not available in the document, clearly state that and do not make any assumptions.
 
150
 
151
  # Invoke the model with the multimodal message
152
  result = agent.invoke(prompt.format(m,k))
153
+ print(m)
154
  response = result['output']
155
  intermediate_steps = result.get('intermediate_steps', [])
156