Spaces:
Running
Running
bump vectara-agentic to 0.1.7
Browse files- Dockerfile +3 -0
- agent.py +2 -7
- requirements.txt +1 -1
Dockerfile
CHANGED
@@ -5,6 +5,9 @@ WORKDIR /app
|
|
5 |
COPY ./requirements.txt /app/requirements.txt
|
6 |
|
7 |
RUN pip3 install --no-cache-dir -r /app/requirements.txt
|
|
|
|
|
|
|
8 |
|
9 |
# User
|
10 |
RUN useradd -m -u 1000 user
|
|
|
5 |
COPY ./requirements.txt /app/requirements.txt
|
6 |
|
7 |
RUN pip3 install --no-cache-dir -r /app/requirements.txt
|
8 |
+
RUN pip3 install nltk
|
9 |
+
RUN python3 -m nltk.downloader punkt
|
10 |
+
RUN chmod -R 777 /usr/local/lib/python3.10/site-packages/llama_index/core/_static/nltk_cache/
|
11 |
|
12 |
# User
|
13 |
RUN useradd -m -u 1000 user
|
agent.py
CHANGED
@@ -196,14 +196,10 @@ def initialize_agent(_cfg, update_func=None):
|
|
196 |
- You are a helpful legal assistant, with expertise in case law for the state of Alaska.
|
197 |
- The ask_caselaw tool is your primary tools for finding information about cases.
|
198 |
Do not use your own knowledge to answer questions.
|
199 |
-
- For a query with multiple sub-questions, break down the query into the sub-questions,
|
200 |
-
and make separate calls to the ask_caselaw tool to answer each sub-question,
|
201 |
-
then combine the answers to provide a complete response.
|
202 |
- If the ask_caselaw tool responds that it does not have enough information to answer the query,
|
203 |
try to rephrase the query and call the tool again.
|
204 |
-
- When presenting the output from ask_caselaw tool,
|
205 |
-
|
206 |
-
'On <decision date>, the <court> ruled in <case name> that <judges ruling>. This opinion was authored by <judges>'.
|
207 |
- Citations include 3 components: volume number, reporter, and first page.
|
208 |
Here are some examples: '253 P.2d 136', '10 Alaska 11', '6 C.M.A. 3'
|
209 |
Never use your internal knowledge to contruct or guess what the citation is.
|
@@ -228,5 +224,4 @@ def initialize_agent(_cfg, update_func=None):
|
|
228 |
custom_instructions=legal_assistant_instructions,
|
229 |
update_func=update_func
|
230 |
)
|
231 |
-
|
232 |
return agent
|
|
|
196 |
- You are a helpful legal assistant, with expertise in case law for the state of Alaska.
|
197 |
- The ask_caselaw tool is your primary tools for finding information about cases.
|
198 |
Do not use your own knowledge to answer questions.
|
|
|
|
|
|
|
199 |
- If the ask_caselaw tool responds that it does not have enough information to answer the query,
|
200 |
try to rephrase the query and call the tool again.
|
201 |
+
- When presenting the output from ask_caselaw tool, use the metadata provided in the tool's response (references).
|
202 |
+
For example you can include citations, decision date, or case name.
|
|
|
203 |
- Citations include 3 components: volume number, reporter, and first page.
|
204 |
Here are some examples: '253 P.2d 136', '10 Alaska 11', '6 C.M.A. 3'
|
205 |
Never use your internal knowledge to contruct or guess what the citation is.
|
|
|
224 |
custom_instructions=legal_assistant_instructions,
|
225 |
update_func=update_func
|
226 |
)
|
|
|
227 |
return agent
|
requirements.txt
CHANGED
@@ -6,4 +6,4 @@ streamlit-feedback==0.1.3
|
|
6 |
uuid==1.30
|
7 |
langdetect==1.0.9
|
8 |
langcodes==3.4.0
|
9 |
-
vectara-agentic==0.1.
|
|
|
6 |
uuid==1.30
|
7 |
langdetect==1.0.9
|
8 |
langcodes==3.4.0
|
9 |
+
vectara-agentic==0.1.7
|