nvidia-nat-llama-index 1.3.0a20250909__py3-none-any.whl → 1.3.0a20250917__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.
@@ -28,7 +28,7 @@ async def azure_openai_llama_index(embedder_config: AzureOpenAIEmbedderModelConf
28
28
 
29
29
  from llama_index.embeddings.azure_openai import AzureOpenAIEmbedding
30
30
 
31
- client = AzureOpenAIEmbedding(**embedder_config.model_dump(exclude={"type"}, by_alias=True))
31
+ client = AzureOpenAIEmbedding(**embedder_config.model_dump(exclude={"type"}, by_alias=True, exclude_none=True))
32
32
 
33
33
  if isinstance(embedder_config, RetryMixin):
34
34
  client = patch_with_retry(client,
@@ -40,17 +40,22 @@ async def azure_openai_llama_index(embedder_config: AzureOpenAIEmbedderModelConf
40
40
 
41
41
 
42
42
  @register_embedder_client(config_type=NIMEmbedderModelConfig, wrapper_type=LLMFrameworkEnum.LLAMA_INDEX)
43
- async def nim_llamaindex(embedder_config: NIMEmbedderModelConfig, _builder: Builder):
43
+ async def nim_llama_index(embedder_config: NIMEmbedderModelConfig, _builder: Builder):
44
44
 
45
- from llama_index.embeddings.nvidia import NVIDIAEmbedding
45
+ from llama_index.embeddings.nvidia import NVIDIAEmbedding # pylint: disable=no-name-in-module
46
46
 
47
- config_obj = {
48
- **embedder_config.model_dump(exclude={"type", "model_name"}, by_alias=True),
49
- "model":
50
- embedder_config.model_name,
51
- }
47
+ client = NVIDIAEmbedding(
48
+ **embedder_config.model_dump(exclude={"type", "model_name"}, by_alias=True, exclude_none=True),
49
+ model=embedder_config.model_name,
50
+ )
52
51
 
53
- yield NVIDIAEmbedding(**config_obj)
52
+ if isinstance(embedder_config, RetryMixin):
53
+ client = patch_with_retry(client,
54
+ retries=embedder_config.num_retries,
55
+ retry_codes=embedder_config.retry_on_status_codes,
56
+ retry_on_messages=embedder_config.retry_on_errors)
57
+
58
+ yield client
54
59
 
55
60
 
56
61
  @register_embedder_client(config_type=OpenAIEmbedderModelConfig, wrapper_type=LLMFrameworkEnum.LLAMA_INDEX)
@@ -58,7 +63,7 @@ async def openai_llama_index(embedder_config: OpenAIEmbedderModelConfig, _builde
58
63
 
59
64
  from llama_index.embeddings.openai import OpenAIEmbedding
60
65
 
61
- client = OpenAIEmbedding(**embedder_config.model_dump(exclude={"type"}, by_alias=True))
66
+ client = OpenAIEmbedding(**embedder_config.model_dump(exclude={"type"}, by_alias=True, exclude_none=True))
62
67
 
63
68
  if isinstance(embedder_config, RetryMixin):
64
69
  client = patch_with_retry(client,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nvidia-nat-llama-index
3
- Version: 1.3.0a20250909
3
+ Version: 1.3.0a20250917
4
4
  Summary: Subpackage for Llama-Index integration in NeMo Agent toolkit
5
5
  Keywords: ai,rag,agents
6
6
  Classifier: Programming Language :: Python
@@ -9,7 +9,7 @@ Classifier: Programming Language :: Python :: 3.12
9
9
  Classifier: Programming Language :: Python :: 3.13
10
10
  Requires-Python: <3.14,>=3.11
11
11
  Description-Content-Type: text/markdown
12
- Requires-Dist: nvidia-nat==v1.3.0a20250909
12
+ Requires-Dist: nvidia-nat==v1.3.0a20250917
13
13
  Requires-Dist: llama-index-core~=0.12.21
14
14
  Requires-Dist: llama-index-embeddings-azure-openai~=0.3.9
15
15
  Requires-Dist: llama-index-embeddings-nvidia~=0.3.1
@@ -1,11 +1,11 @@
1
1
  nat/meta/pypi.md,sha256=s9C3pgWB0HLIXTx5QPryNOWN0O2fIRIap0p9_zCHlTs,1112
2
2
  nat/plugins/llama_index/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- nat/plugins/llama_index/embedder.py,sha256=6US_DR4dWwHuhRnf2KlN8TVIV7wk7NHTDFyBwgMyEQc,3093
3
+ nat/plugins/llama_index/embedder.py,sha256=4c4uAa19UArqA_Npe5mwEnUhCaguTbyWcAntBzcPEeQ,3493
4
4
  nat/plugins/llama_index/llm.py,sha256=0M1m1sjGwVMNibiAzkH2_hnAfdC-Ptc6PM9IKDmfSL8,4500
5
5
  nat/plugins/llama_index/register.py,sha256=1x_b8u6cuQwh4Iz_7TcIFWXvLIL9IIKUPE-zR9d6ug8,859
6
6
  nat/plugins/llama_index/tool_wrapper.py,sha256=VFKMIIeLdWqHwW2Ax11E2w-_9w3ow6Iuhra1Hk78RYM,1387
7
- nvidia_nat_llama_index-1.3.0a20250909.dist-info/METADATA,sha256=NXRSSpXO_jAaR3tFUx0Uvt7csSoq3NaO3W5nfEBaBaI,2069
8
- nvidia_nat_llama_index-1.3.0a20250909.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
- nvidia_nat_llama_index-1.3.0a20250909.dist-info/entry_points.txt,sha256=2LqRRju5448P2v8B3y6TSPnk-nOd5T3AmV5JibCnoQc,68
10
- nvidia_nat_llama_index-1.3.0a20250909.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
11
- nvidia_nat_llama_index-1.3.0a20250909.dist-info/RECORD,,
7
+ nvidia_nat_llama_index-1.3.0a20250917.dist-info/METADATA,sha256=OfIK_6TLS0F8Gi-doVK48dBemGGCCauJja3MwRy1heE,2069
8
+ nvidia_nat_llama_index-1.3.0a20250917.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
+ nvidia_nat_llama_index-1.3.0a20250917.dist-info/entry_points.txt,sha256=2LqRRju5448P2v8B3y6TSPnk-nOd5T3AmV5JibCnoQc,68
10
+ nvidia_nat_llama_index-1.3.0a20250917.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
11
+ nvidia_nat_llama_index-1.3.0a20250917.dist-info/RECORD,,