ofermend commited on
Commit
b5867ab
·
1 Parent(s): c4b0cfc

vectara-agentic version bump

Browse files
Files changed (2) hide show
  1. agent.py +4 -5
  2. requirements.txt +1 -1
agent.py CHANGED
@@ -157,7 +157,7 @@ def create_assistant_tools(cfg):
157
  """,
158
  tool_args_schema = QueryCaselawArgs,
159
  reranker = "multilingual_reranker_v1", rerank_k = 100,
160
- n_sentences_before = 2, n_sentences_after = 2, lambda_val = 0.0,
161
  summary_num_results = 10,
162
  vectara_summarizer = 'vectara-summary-ext-24-05-med-omni',
163
  include_citations = False,
@@ -172,9 +172,7 @@ def create_assistant_tools(cfg):
172
  get_cited_cases,
173
  get_case_name,
174
  validate_url
175
- ]] +
176
- tools_factory.standard_tools() +
177
- tools_factory.legal_tools()
178
  )
179
 
180
  def get_agent_config() -> OmegaConf:
@@ -205,7 +203,8 @@ def initialize_agent(_cfg, update_func=None):
205
  - If two cases have conflicting rulings, assume that the case with the more current ruling date is correct.
206
  - 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,
207
  since some case opinions may no longer apply in law.
208
- - To summarize the case, use the get_opinion_text with summarize set to True.
 
209
  - If a user wants to learn more about a case, you can call the get_case_document_pdf tool with the citation to get a valid URL.
210
  If this is unsuccessful, call the get_case_document_page tool instead.
211
  The text displayed with this URL should be the name_abbreviation of the case (DON'T just say the info can be found here).
 
157
  """,
158
  tool_args_schema = QueryCaselawArgs,
159
  reranker = "multilingual_reranker_v1", rerank_k = 100,
160
+ n_sentences_before = 2, n_sentences_after = 2, lambda_val = 0.005,
161
  summary_num_results = 10,
162
  vectara_summarizer = 'vectara-summary-ext-24-05-med-omni',
163
  include_citations = False,
 
172
  get_cited_cases,
173
  get_case_name,
174
  validate_url
175
+ ]]
 
 
176
  )
177
 
178
  def get_agent_config() -> OmegaConf:
 
203
  - If two cases have conflicting rulings, assume that the case with the more current ruling date is correct.
204
  - 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,
205
  since some case opinions may no longer apply in law.
206
+ - To summarize the case, use the get_opinion_text with summarize=True.
207
+ - Use get_opinion_text with summarize=False only when full text is needed. Consider summarizing the text when possible to make things run faster.
208
  - If a user wants to learn more about a case, you can call the get_case_document_pdf tool with the citation to get a valid URL.
209
  If this is unsuccessful, call the get_case_document_page tool instead.
210
  The text displayed with this URL should be the name_abbreviation of the case (DON'T just say the info can be found here).
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.8
 
6
  uuid==1.30
7
  langdetect==1.0.9
8
  langcodes==3.4.0
9
+ vectara-agentic==0.1.13