nvidia-nat-llama-index 1.2.0rc5__py3-none-any.whl → 1.2.0rc6__py3-none-any.whl

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.
@@ -15,7 +15,7 @@ See the License for the specific language governing permissions and
15
15
  limitations under the License.
16
16
  -->
17
17
 
18
- ![NVIDIA NeMo Agent Toolkit](https://media.githubusercontent.com/media/NVIDIA/NeMo-Agent-Toolkit/refs/heads/main/docs/source/_static/aiqtoolkit_banner.png "NeMo Agent toolkit banner image")
18
+ ![NVIDIA NeMo Agent Toolkit](https://media.githubusercontent.com/media/NVIDIA/NeMo-Agent-Toolkit/refs/heads/main/docs/source/_static/banner.png "NeMo Agent toolkit banner image")
19
19
 
20
20
  # NVIDIA NeMo Agent Toolkit Subpackage
21
21
  This is a subpackage for Llama-Index integration in NeMo Agent toolkit.
@@ -0,0 +1,44 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ # pylint: disable=unused-argument
16
+
17
+ from nat.builder.builder import Builder
18
+ from nat.builder.framework_enum import LLMFrameworkEnum
19
+ from nat.cli.register_workflow import register_embedder_client
20
+ from nat.data_models.retry_mixin import RetryMixin
21
+ from nat.embedder.nim_embedder import NIMEmbedderModelConfig
22
+ from nat.utils.exception_handlers.automatic_retries import patch_with_retry
23
+
24
+
25
+ @register_embedder_client(config_type=NIMEmbedderModelConfig, wrapper_type=LLMFrameworkEnum.LLAMA_INDEX)
26
+ async def nim_llamaindex(embedder_config: NIMEmbedderModelConfig, builder: Builder):
27
+
28
+ from llama_index.embeddings.nvidia import NVIDIAEmbedding # pylint: disable=no-name-in-module
29
+
30
+ config_obj = {
31
+ **embedder_config.model_dump(exclude={"type", "model_name"}, by_alias=True),
32
+ "model":
33
+ embedder_config.model_name,
34
+ }
35
+
36
+ client = NVIDIAEmbedding(**config_obj)
37
+
38
+ if isinstance(embedder_config, RetryMixin):
39
+ client = patch_with_retry(client,
40
+ retries=embedder_config.num_retries,
41
+ retry_codes=embedder_config.retry_on_status_codes,
42
+ retry_on_messages=embedder_config.retry_on_errors)
43
+
44
+ yield client
@@ -13,14 +13,14 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
 
16
- from aiq.builder.builder import Builder
17
- from aiq.builder.framework_enum import LLMFrameworkEnum
18
- from aiq.cli.register_workflow import register_llm_client
19
- from aiq.data_models.retry_mixin import RetryMixin
20
- from aiq.llm.aws_bedrock_llm import AWSBedrockModelConfig
21
- from aiq.llm.nim_llm import NIMModelConfig
22
- from aiq.llm.openai_llm import OpenAIModelConfig
23
- from aiq.utils.exception_handlers.automatic_retries import patch_with_retry
16
+ from nat.builder.builder import Builder
17
+ from nat.builder.framework_enum import LLMFrameworkEnum
18
+ from nat.cli.register_workflow import register_llm_client
19
+ from nat.data_models.retry_mixin import RetryMixin
20
+ from nat.llm.aws_bedrock_llm import AWSBedrockModelConfig
21
+ from nat.llm.nim_llm import NIMModelConfig
22
+ from nat.llm.openai_llm import OpenAIModelConfig
23
+ from nat.utils.exception_handlers.automatic_retries import patch_with_retry
24
24
 
25
25
 
26
26
  @register_llm_client(config_type=NIMModelConfig, wrapper_type=LLMFrameworkEnum.LLAMA_INDEX)
@@ -21,3 +21,4 @@
21
21
 
22
22
  from . import llm
23
23
  from . import tool_wrapper
24
+ from . import embedder
@@ -13,10 +13,10 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
 
16
- from aiq.builder.builder import Builder
17
- from aiq.builder.framework_enum import LLMFrameworkEnum
18
- from aiq.builder.function import Function
19
- from aiq.cli.register_workflow import register_tool_wrapper
16
+ from nat.builder.builder import Builder
17
+ from nat.builder.framework_enum import LLMFrameworkEnum
18
+ from nat.builder.function import Function
19
+ from nat.cli.register_workflow import register_tool_wrapper
20
20
 
21
21
 
22
22
  @register_tool_wrapper(wrapper_type=LLMFrameworkEnum.LLAMA_INDEX)
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nvidia-nat-llama-index
3
- Version: 1.2.0rc5
4
- Summary: Subpackage for Llama-Index integration in AIQtoolkit
3
+ Version: 1.2.0rc6
4
+ Summary: Subpackage for Llama-Index integration in NeMo Agent toolkit
5
5
  Keywords: ai,rag,agents
6
6
  Classifier: Programming Language :: Python
7
7
  Requires-Python: <3.13,>=3.11
8
8
  Description-Content-Type: text/markdown
9
- Requires-Dist: nvidia-nat~=1.2
9
+ Requires-Dist: nvidia-nat==v1.2.0-rc6
10
10
  Requires-Dist: llama-index-core==0.12.21
11
11
  Requires-Dist: llama-index-embeddings-nvidia==0.3.1
12
12
  Requires-Dist: llama-index-llms-bedrock==0.3.8
@@ -31,7 +31,7 @@ See the License for the specific language governing permissions and
31
31
  limitations under the License.
32
32
  -->
33
33
 
34
- ![NVIDIA NeMo Agent Toolkit](https://media.githubusercontent.com/media/NVIDIA/NeMo-Agent-Toolkit/refs/heads/main/docs/source/_static/aiqtoolkit_banner.png "NeMo Agent toolkit banner image")
34
+ ![NVIDIA NeMo Agent Toolkit](https://media.githubusercontent.com/media/NVIDIA/NeMo-Agent-Toolkit/refs/heads/main/docs/source/_static/banner.png "NeMo Agent toolkit banner image")
35
35
 
36
36
  # NVIDIA NeMo Agent Toolkit Subpackage
37
37
  This is a subpackage for Llama-Index integration in NeMo Agent toolkit.
@@ -0,0 +1,11 @@
1
+ nat/meta/pypi.md,sha256=s9C3pgWB0HLIXTx5QPryNOWN0O2fIRIap0p9_zCHlTs,1112
2
+ nat/plugins/llama_index/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ nat/plugins/llama_index/embedder.py,sha256=L7Wx9QJH2Sh0y6kmgisjtTZfDC9YcuuusKl0Tn_7JgA,1921
4
+ nat/plugins/llama_index/llm.py,sha256=VyuIqks2G9Zcs9a0X7jJyASzSUdtL0Pns0v4_rFEsJE,3220
5
+ nat/plugins/llama_index/register.py,sha256=DelI6uth8dO8h_7czPW4Akfr_ajXDBwhEa1dJzRf5u4,891
6
+ nat/plugins/llama_index/tool_wrapper.py,sha256=VFKMIIeLdWqHwW2Ax11E2w-_9w3ow6Iuhra1Hk78RYM,1387
7
+ nvidia_nat_llama_index-1.2.0rc6.dist-info/METADATA,sha256=1kWO_fRVsEHhFSqa_US5JB42J6puinSJ4dxZVFIyDBI,1696
8
+ nvidia_nat_llama_index-1.2.0rc6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
+ nvidia_nat_llama_index-1.2.0rc6.dist-info/entry_points.txt,sha256=2LqRRju5448P2v8B3y6TSPnk-nOd5T3AmV5JibCnoQc,68
10
+ nvidia_nat_llama_index-1.2.0rc6.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
11
+ nvidia_nat_llama_index-1.2.0rc6.dist-info/RECORD,,
@@ -0,0 +1,2 @@
1
+ [nat.components]
2
+ nat_llama_index = nat.plugins.llama_index.register
@@ -1,10 +0,0 @@
1
- aiq/meta/pypi.md,sha256=7X4IiHrJQTL9Y0L6MHdKQnW3MAx1R7SxolOdPGtSWKY,1123
2
- aiq/plugins/llama_index/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- aiq/plugins/llama_index/llm.py,sha256=kxoorizIF5jM9-mAup57c2tmV5zp4t3eDuaGhDG9EiI,3220
4
- aiq/plugins/llama_index/register.py,sha256=da1IYMrYe4MUtlwzBGIiukPazf7WU40j5X3n2KCjNts,868
5
- aiq/plugins/llama_index/tool_wrapper.py,sha256=n7E6uzVtcyFXSWtkYG8yrtqRCsXVHdEU38eTrWLSlrU,1387
6
- nvidia_nat_llama_index-1.2.0rc5.dist-info/METADATA,sha256=j6LnyLp0kLBGt9J1bxLiDSSqnyiLi6B03wsZHuZAiHw,1692
7
- nvidia_nat_llama_index-1.2.0rc5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
- nvidia_nat_llama_index-1.2.0rc5.dist-info/entry_points.txt,sha256=2_FES--T1uOL8QdHJWWhuFipXoSK8uo0DR8olysK2Ck,68
9
- nvidia_nat_llama_index-1.2.0rc5.dist-info/top_level.txt,sha256=fo7AzYcNhZ_tRWrhGumtxwnxMew4xrT1iwouDy_f0Kc,4
10
- nvidia_nat_llama_index-1.2.0rc5.dist-info/RECORD,,
@@ -1,2 +0,0 @@
1
- [aiq.components]
2
- aiq_llama_index = aiq.plugins.llama_index.register
File without changes