vectara-agentic 0.1.0__tar.gz → 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of vectara-agentic might be problematic. Click here for more details.
- {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/PKG-INFO +21 -1
- {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/setup.py +1 -1
- {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic/agent.py +1 -1
- {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic/tools.py +48 -33
- {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic.egg-info/PKG-INFO +22 -2
- {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/LICENSE +0 -0
- {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/MANIFEST.in +0 -0
- {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/README.md +0 -0
- {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/requirements.txt +0 -0
- {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/setup.cfg +0 -0
- {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/tests/test_agent.py +0 -0
- {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/tests/test_tools.py +0 -0
- {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic/__init__.py +0 -0
- {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic/_callback.py +0 -0
- {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic/_prompts.py +0 -0
- {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic/tools_catalog.py +0 -0
- {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic/types.py +0 -0
- {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic/utils.py +0 -0
- {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic.egg-info/SOURCES.txt +0 -0
- {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic.egg-info/dependency_links.txt +0 -0
- {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic.egg-info/requires.txt +0 -0
- {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: vectara_agentic
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: A Python package for creating AI Assistants and AI Agents with Vectara
|
|
5
5
|
Home-page: https://github.com/vectara/py-vectara-agentic
|
|
6
6
|
Author: Ofer Mendelevitch
|
|
@@ -11,6 +11,26 @@ Classifier: Operating System :: OS Independent
|
|
|
11
11
|
Requires-Python: >=3.10
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
License-File: LICENSE
|
|
14
|
+
Requires-Dist: llama-index==0.10.64
|
|
15
|
+
Requires-Dist: llama-index-indices-managed-vectara==0.1.7
|
|
16
|
+
Requires-Dist: llama-index-agent-llm-compiler==0.1.0
|
|
17
|
+
Requires-Dist: llama-index-agent-openai==0.2.9
|
|
18
|
+
Requires-Dist: llama-index-llms-openai==0.1.29
|
|
19
|
+
Requires-Dist: llama-index-llms-anthropic==0.1.17
|
|
20
|
+
Requires-Dist: llama-index-llms-together==0.1.3
|
|
21
|
+
Requires-Dist: llama-index-llms-groq==0.1.4
|
|
22
|
+
Requires-Dist: llama-index-tools-yahoo-finance==0.1.1
|
|
23
|
+
Requires-Dist: llama-index-tools-arxiv==0.1.3
|
|
24
|
+
Requires-Dist: llama-index-tools-database==0.1.3
|
|
25
|
+
Requires-Dist: llama-index-tools-google==0.1.6
|
|
26
|
+
Requires-Dist: llama-index-tools-tavily_research==0.1.3
|
|
27
|
+
Requires-Dist: llama-index-llms-fireworks==0.1.8
|
|
28
|
+
Requires-Dist: pydantic==1.10.17
|
|
29
|
+
Requires-Dist: retrying==1.3.4
|
|
30
|
+
Requires-Dist: mypy==1.11.0
|
|
31
|
+
Requires-Dist: pylint==3.2.6
|
|
32
|
+
Requires-Dist: flake8==7.1.0
|
|
33
|
+
Requires-Dist: pymongo==4.6.1
|
|
14
34
|
|
|
15
35
|
# vectara-agentic
|
|
16
36
|
|
|
@@ -99,21 +99,25 @@ class VectaraToolFactory:
|
|
|
99
99
|
"""
|
|
100
100
|
Creates a RAG (Retrieve and Generate) tool.
|
|
101
101
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
102
|
+
Args:
|
|
103
|
+
|
|
104
|
+
tool_name (str): The name of the tool.
|
|
105
|
+
tool_description (str): The description of the tool.
|
|
106
|
+
tool_args_schema (BaseModel): The schema for the tool arguments.
|
|
107
|
+
vectara_summarizer (str): The Vectara summarizer to use.
|
|
108
|
+
summary_num_results (int): The number of summary results.
|
|
109
|
+
summary_response_lang (str): The response language for the summary.
|
|
110
|
+
n_sentences_before (int): Number of sentences before the summary.
|
|
111
|
+
n_sentences_after (int): Number of sentences after the summary.
|
|
112
|
+
lambda_val (float): Lambda value for the Vectara query.
|
|
113
|
+
reranker (str): The reranker mode.
|
|
114
|
+
rerank_k (int): Number of top-k documents for reranking.
|
|
115
|
+
mmr_diversity_bias (float): MMR diversity bias.
|
|
116
|
+
include_citations (bool): Whether to include citations in the response.
|
|
117
|
+
If True, uses MARKDOWN vectara citations that requires the Vectara scale plan.
|
|
118
|
+
|
|
119
|
+
Returns:
|
|
120
|
+
VectaraTool: A VectaraTool object.
|
|
117
121
|
"""
|
|
118
122
|
vectara = VectaraIndex(
|
|
119
123
|
vectara_api_key=self.vectara_api_key,
|
|
@@ -258,9 +262,12 @@ class ToolsFactory:
|
|
|
258
262
|
"""
|
|
259
263
|
Create a tool from a function.
|
|
260
264
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
265
|
+
Args:
|
|
266
|
+
function (Callable): a function to convert into a tool.
|
|
267
|
+
tool_type (ToolType): the type of tool.
|
|
268
|
+
|
|
269
|
+
Returns:
|
|
270
|
+
list[FunctionTool]: a list of FunctionTool objects.
|
|
264
271
|
"""
|
|
265
272
|
return VectaraTool(FunctionTool.from_defaults(function), tool_type)
|
|
266
273
|
|
|
@@ -275,10 +282,13 @@ class ToolsFactory:
|
|
|
275
282
|
Get a tool from the llama_index hub.
|
|
276
283
|
|
|
277
284
|
Parameters:
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
285
|
+
tool_package_name (str): The name of the tool package.
|
|
286
|
+
tool_spec_name (str): The name of the tool spec.
|
|
287
|
+
tool_name_prefix (str): The prefix to add to the tool names (added to every tool in the spec).
|
|
288
|
+
kwargs (dict): The keyword arguments to pass to the tool constructor (see Hub for tool specific details).
|
|
289
|
+
|
|
290
|
+
Returns:
|
|
291
|
+
list[FunctionTool]: a list of FunctionTool objects
|
|
282
292
|
"""
|
|
283
293
|
# Dynamically install and import the module
|
|
284
294
|
if tool_package_name not in LI_packages.keys():
|
|
@@ -369,18 +379,23 @@ class ToolsFactory:
|
|
|
369
379
|
dbname: str = "postgres",
|
|
370
380
|
) -> List[FunctionTool]:
|
|
371
381
|
"""
|
|
372
|
-
|
|
382
|
+
Returns a list of database tools.
|
|
383
|
+
|
|
373
384
|
Args:
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
385
|
+
|
|
386
|
+
tool_name_prefix (str, optional): The prefix to add to the tool names. Defaults to "".
|
|
387
|
+
content_description (str, optional): The content description for the database. Defaults to None.
|
|
388
|
+
sql_database (SQLDatabase, optional): The SQLDatabase object. Defaults to None.
|
|
389
|
+
scheme (str, optional): The database scheme. Defaults to None.
|
|
390
|
+
host (str, optional): The database host. Defaults to "localhost".
|
|
391
|
+
port (str, optional): The database port. Defaults to "5432".
|
|
392
|
+
user (str, optional): The database user. Defaults to "postgres".
|
|
393
|
+
password (str, optional): The database password. Defaults to "Password".
|
|
394
|
+
dbname (str, optional): The database name. Defaults to "postgres".
|
|
395
|
+
You must specify either the sql_database object or the scheme, host, port, user, password, and dbname.
|
|
396
|
+
|
|
397
|
+
Returns:
|
|
398
|
+
List[FunctionTool]: A list of FunctionTool objects
|
|
384
399
|
"""
|
|
385
400
|
if sql_database:
|
|
386
401
|
tools = self.get_llama_index_tools(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name:
|
|
3
|
-
Version: 0.1.
|
|
2
|
+
Name: vectara_agentic
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: A Python package for creating AI Assistants and AI Agents with Vectara
|
|
5
5
|
Home-page: https://github.com/vectara/py-vectara-agentic
|
|
6
6
|
Author: Ofer Mendelevitch
|
|
@@ -11,6 +11,26 @@ Classifier: Operating System :: OS Independent
|
|
|
11
11
|
Requires-Python: >=3.10
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
License-File: LICENSE
|
|
14
|
+
Requires-Dist: llama-index==0.10.64
|
|
15
|
+
Requires-Dist: llama-index-indices-managed-vectara==0.1.7
|
|
16
|
+
Requires-Dist: llama-index-agent-llm-compiler==0.1.0
|
|
17
|
+
Requires-Dist: llama-index-agent-openai==0.2.9
|
|
18
|
+
Requires-Dist: llama-index-llms-openai==0.1.29
|
|
19
|
+
Requires-Dist: llama-index-llms-anthropic==0.1.17
|
|
20
|
+
Requires-Dist: llama-index-llms-together==0.1.3
|
|
21
|
+
Requires-Dist: llama-index-llms-groq==0.1.4
|
|
22
|
+
Requires-Dist: llama-index-tools-yahoo-finance==0.1.1
|
|
23
|
+
Requires-Dist: llama-index-tools-arxiv==0.1.3
|
|
24
|
+
Requires-Dist: llama-index-tools-database==0.1.3
|
|
25
|
+
Requires-Dist: llama-index-tools-google==0.1.6
|
|
26
|
+
Requires-Dist: llama-index-tools-tavily_research==0.1.3
|
|
27
|
+
Requires-Dist: llama-index-llms-fireworks==0.1.8
|
|
28
|
+
Requires-Dist: pydantic==1.10.17
|
|
29
|
+
Requires-Dist: retrying==1.3.4
|
|
30
|
+
Requires-Dist: mypy==1.11.0
|
|
31
|
+
Requires-Dist: pylint==3.2.6
|
|
32
|
+
Requires-Dist: flake8==7.1.0
|
|
33
|
+
Requires-Dist: pymongo==4.6.1
|
|
14
34
|
|
|
15
35
|
# vectara-agentic
|
|
16
36
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|