nvidia-nat-llama-index 1.2.0a20250813__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.
nat/meta/pypi.md CHANGED
@@ -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
@@ -21,3 +21,4 @@
21
21
 
22
22
  from . import llm
23
23
  from . import tool_wrapper
24
+ from . import embedder
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nvidia-nat-llama-index
3
- Version: 1.2.0a20250813
3
+ Version: 1.2.0rc6
4
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==v1.2.0a20250813
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,,
@@ -1,10 +0,0 @@
1
- nat/meta/pypi.md,sha256=7X4IiHrJQTL9Y0L6MHdKQnW3MAx1R7SxolOdPGtSWKY,1123
2
- nat/plugins/llama_index/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- nat/plugins/llama_index/llm.py,sha256=VyuIqks2G9Zcs9a0X7jJyASzSUdtL0Pns0v4_rFEsJE,3220
4
- nat/plugins/llama_index/register.py,sha256=da1IYMrYe4MUtlwzBGIiukPazf7WU40j5X3n2KCjNts,868
5
- nat/plugins/llama_index/tool_wrapper.py,sha256=VFKMIIeLdWqHwW2Ax11E2w-_9w3ow6Iuhra1Hk78RYM,1387
6
- nvidia_nat_llama_index-1.2.0a20250813.dist-info/METADATA,sha256=MWR0BCy8SS_RdMoPloawAtIILSzeybRAxpaC-iQx350,1718
7
- nvidia_nat_llama_index-1.2.0a20250813.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
- nvidia_nat_llama_index-1.2.0a20250813.dist-info/entry_points.txt,sha256=2LqRRju5448P2v8B3y6TSPnk-nOd5T3AmV5JibCnoQc,68
9
- nvidia_nat_llama_index-1.2.0a20250813.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
10
- nvidia_nat_llama_index-1.2.0a20250813.dist-info/RECORD,,