Spaces:
Running
Running
vectara-agentic version bump
Browse files- agent.py +3 -4
- requirements.txt +1 -1
agent.py
CHANGED
@@ -25,8 +25,7 @@ def create_assistant_tools(cfg):
|
|
25 |
tool_name = "ask_vehicles",
|
26 |
tool_description = """
|
27 |
Given a user query,
|
28 |
-
returns a response
|
29 |
-
You can ask this tool any question about electric cars, including the different types of EVs, how they work, the pros and cons of different models, the environmental impact, and more.
|
30 |
""",
|
31 |
tool_args_schema = QueryElectricCars,
|
32 |
reranker = "multilingual_reranker_v1", rerank_k = 100,
|
@@ -55,14 +54,14 @@ def create_assistant_tools(cfg):
|
|
55 |
tool_name = "ask_policies",
|
56 |
tool_description = """
|
57 |
Given a user query,
|
58 |
-
returns a response
|
59 |
You can ask this tool any question about laws passed by states or the federal government related to electric vehicles.
|
60 |
""",
|
61 |
tool_args_schema = QueryEVLaws,
|
62 |
reranker = "multilingual_reranker_v1", rerank_k = 100,
|
63 |
n_sentences_before = 2, n_sentences_after = 2, lambda_val = 0.005,
|
64 |
summary_num_results = 10,
|
65 |
-
vectara_summarizer = 'vectara-summary-ext-24-05-
|
66 |
include_citations = False,
|
67 |
)
|
68 |
|
|
|
25 |
tool_name = "ask_vehicles",
|
26 |
tool_description = """
|
27 |
Given a user query,
|
28 |
+
returns a response to a user question about electric vehicles.
|
|
|
29 |
""",
|
30 |
tool_args_schema = QueryElectricCars,
|
31 |
reranker = "multilingual_reranker_v1", rerank_k = 100,
|
|
|
54 |
tool_name = "ask_policies",
|
55 |
tool_description = """
|
56 |
Given a user query,
|
57 |
+
returns a response to a user question about electric vehicles incentives and regulations, in the United States.
|
58 |
You can ask this tool any question about laws passed by states or the federal government related to electric vehicles.
|
59 |
""",
|
60 |
tool_args_schema = QueryEVLaws,
|
61 |
reranker = "multilingual_reranker_v1", rerank_k = 100,
|
62 |
n_sentences_before = 2, n_sentences_after = 2, lambda_val = 0.005,
|
63 |
summary_num_results = 10,
|
64 |
+
vectara_summarizer = 'vectara-summary-ext-24-05-med-omni',
|
65 |
include_citations = False,
|
66 |
)
|
67 |
|
requirements.txt
CHANGED
@@ -7,4 +7,4 @@ langdetect==1.0.9
|
|
7 |
langcodes==3.4.0
|
8 |
datasets==2.14.7
|
9 |
uuid==1.30
|
10 |
-
vectara-agentic==0.1.
|
|
|
7 |
langcodes==3.4.0
|
8 |
datasets==2.14.7
|
9 |
uuid==1.30
|
10 |
+
vectara-agentic==0.1.13
|