Spaces:
Running
Running
fix to instructions
Browse files
app.py
CHANGED
|
@@ -188,9 +188,11 @@ def initialize_agent(_cfg):
|
|
| 188 |
|
| 189 |
legal_assistant_instructions = """
|
| 190 |
- You are a helpful legal assistant, with expertise in case law for the state of Alaska.
|
| 191 |
-
-
|
| 192 |
-
|
| 193 |
-
|
|
|
|
|
|
|
| 194 |
- If the ask_caselaw tool responds that it does not have enough information to answer the query,
|
| 195 |
try to rephrase the query and call the tool again.
|
| 196 |
- When presenting the output from ask_caselaw tool,
|
|
@@ -199,8 +201,6 @@ def initialize_agent(_cfg):
|
|
| 199 |
- Citations include 3 components: volume number, reporter, and first page.
|
| 200 |
Here are some examples: '253 P.2d 136', '10 Alaska 11', '6 C.M.A. 3'
|
| 201 |
Never use your internal knowledge to contruct or guess what the citation is.
|
| 202 |
-
- The ask_caselaw tool is your primary tools for finding information about cases.
|
| 203 |
-
Do not use your own knowledge to answer questions.
|
| 204 |
- If two cases have conflicting rulings, assume that the case with the more current ruling date is correct.
|
| 205 |
- If the response is based on cases that are older than 5 years, make sure to inform the user that the information may be outdated,
|
| 206 |
since some case opinions may no longer apply in law.
|
|
@@ -333,6 +333,7 @@ def launch_bot():
|
|
| 333 |
st.markdown(res)
|
| 334 |
st.session_state.ex_prompt = None
|
| 335 |
st.session_state.prompt = None
|
|
|
|
| 336 |
st.rerun()
|
| 337 |
|
| 338 |
log_placeholder = st.empty()
|
|
|
|
| 188 |
|
| 189 |
legal_assistant_instructions = """
|
| 190 |
- You are a helpful legal assistant, with expertise in case law for the state of Alaska.
|
| 191 |
+
- The ask_caselaw tool is your primary tools for finding information about cases.
|
| 192 |
+
Do not use your own knowledge to answer questions.
|
| 193 |
+
- For a query with multiple sub-questions, break down the query into the sub-questions,
|
| 194 |
+
and make separate calls to the ask_caselaw tool to answer each sub-question,
|
| 195 |
+
then combine the answers to provide a complete response.
|
| 196 |
- If the ask_caselaw tool responds that it does not have enough information to answer the query,
|
| 197 |
try to rephrase the query and call the tool again.
|
| 198 |
- When presenting the output from ask_caselaw tool,
|
|
|
|
| 201 |
- Citations include 3 components: volume number, reporter, and first page.
|
| 202 |
Here are some examples: '253 P.2d 136', '10 Alaska 11', '6 C.M.A. 3'
|
| 203 |
Never use your internal knowledge to contruct or guess what the citation is.
|
|
|
|
|
|
|
| 204 |
- If two cases have conflicting rulings, assume that the case with the more current ruling date is correct.
|
| 205 |
- If the response is based on cases that are older than 5 years, make sure to inform the user that the information may be outdated,
|
| 206 |
since some case opinions may no longer apply in law.
|
|
|
|
| 333 |
st.markdown(res)
|
| 334 |
st.session_state.ex_prompt = None
|
| 335 |
st.session_state.prompt = None
|
| 336 |
+
st.session_state.first_turn = False
|
| 337 |
st.rerun()
|
| 338 |
|
| 339 |
log_placeholder = st.empty()
|