vellum-ai 0.14.88__py3-none-any.whl → 0.14.89__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.
- vellum/client/README.md +33 -10
- vellum/client/__init__.py +141 -40
- vellum/client/core/client_wrapper.py +18 -5
- vellum/client/reference.md +241 -318
- vellum/client/resources/ad_hoc/client.py +76 -24
- vellum/client/resources/container_images/client.py +14 -6
- vellum/client/resources/deployments/client.py +28 -4
- vellum/client/resources/document_indexes/client.py +30 -38
- vellum/client/resources/documents/client.py +8 -30
- vellum/client/resources/folder_entities/client.py +4 -0
- vellum/client/resources/metric_definitions/client.py +16 -4
- vellum/client/resources/ml_models/client.py +2 -0
- vellum/client/resources/organizations/client.py +2 -0
- vellum/client/resources/prompts/client.py +26 -6
- vellum/client/resources/release_reviews/client.py +2 -0
- vellum/client/resources/sandboxes/client.py +10 -10
- vellum/client/resources/test_suite_runs/client.py +6 -0
- vellum/client/resources/test_suites/client.py +96 -58
- vellum/client/resources/workflow_deployments/client.py +16 -0
- vellum/client/resources/workflow_sandboxes/client.py +4 -0
- vellum/client/resources/workflows/client.py +0 -30
- vellum/client/resources/workspace_secrets/client.py +4 -0
- vellum/client/resources/workspaces/client.py +2 -0
- vellum/workflows/nodes/displayable/tool_calling_node/node.py +1 -5
- vellum/workflows/nodes/displayable/tool_calling_node/state.py +9 -0
- vellum/workflows/nodes/displayable/tool_calling_node/utils.py +50 -41
- {vellum_ai-0.14.88.dist-info → vellum_ai-0.14.89.dist-info}/METADATA +1 -1
- {vellum_ai-0.14.88.dist-info → vellum_ai-0.14.89.dist-info}/RECORD +31 -30
- {vellum_ai-0.14.88.dist-info → vellum_ai-0.14.89.dist-info}/LICENSE +0 -0
- {vellum_ai-0.14.88.dist-info → vellum_ai-0.14.89.dist-info}/WHEEL +0 -0
- {vellum_ai-0.14.88.dist-info → vellum_ai-0.14.89.dist-info}/entry_points.txt +0 -0
@@ -80,28 +80,41 @@ class AdHocClient:
|
|
80
80
|
)
|
81
81
|
|
82
82
|
client = Vellum(
|
83
|
+
api_version="YOUR_API_VERSION",
|
83
84
|
api_key="YOUR_API_KEY",
|
84
85
|
)
|
85
86
|
client.ad_hoc.adhoc_execute_prompt(
|
86
|
-
ml_model="
|
87
|
+
ml_model="x",
|
87
88
|
input_values=[
|
88
89
|
PromptRequestStringInput(
|
89
|
-
key="
|
90
|
+
key="x",
|
90
91
|
value="value",
|
91
|
-
)
|
92
|
+
),
|
93
|
+
PromptRequestStringInput(
|
94
|
+
key="x",
|
95
|
+
value="value",
|
96
|
+
),
|
92
97
|
],
|
93
98
|
input_variables=[
|
94
99
|
VellumVariable(
|
95
|
-
id="
|
100
|
+
id="x",
|
96
101
|
key="key",
|
97
102
|
type="STRING",
|
98
|
-
)
|
103
|
+
),
|
104
|
+
VellumVariable(
|
105
|
+
id="x",
|
106
|
+
key="key",
|
107
|
+
type="STRING",
|
108
|
+
),
|
99
109
|
],
|
100
110
|
parameters=PromptParameters(),
|
101
111
|
blocks=[
|
102
112
|
JinjaPromptBlock(
|
103
113
|
template="template",
|
104
|
-
)
|
114
|
+
),
|
115
|
+
JinjaPromptBlock(
|
116
|
+
template="template",
|
117
|
+
),
|
105
118
|
],
|
106
119
|
)
|
107
120
|
"""
|
@@ -236,28 +249,41 @@ class AdHocClient:
|
|
236
249
|
)
|
237
250
|
|
238
251
|
client = Vellum(
|
252
|
+
api_version="YOUR_API_VERSION",
|
239
253
|
api_key="YOUR_API_KEY",
|
240
254
|
)
|
241
255
|
response = client.ad_hoc.adhoc_execute_prompt_stream(
|
242
|
-
ml_model="
|
256
|
+
ml_model="x",
|
243
257
|
input_values=[
|
244
258
|
PromptRequestStringInput(
|
245
|
-
key="
|
259
|
+
key="x",
|
246
260
|
value="value",
|
247
|
-
)
|
261
|
+
),
|
262
|
+
PromptRequestStringInput(
|
263
|
+
key="x",
|
264
|
+
value="value",
|
265
|
+
),
|
248
266
|
],
|
249
267
|
input_variables=[
|
250
268
|
VellumVariable(
|
251
|
-
id="
|
269
|
+
id="x",
|
252
270
|
key="key",
|
253
271
|
type="STRING",
|
254
|
-
)
|
272
|
+
),
|
273
|
+
VellumVariable(
|
274
|
+
id="x",
|
275
|
+
key="key",
|
276
|
+
type="STRING",
|
277
|
+
),
|
255
278
|
],
|
256
279
|
parameters=PromptParameters(),
|
257
280
|
blocks=[
|
258
281
|
JinjaPromptBlock(
|
259
282
|
template="template",
|
260
|
-
)
|
283
|
+
),
|
284
|
+
JinjaPromptBlock(
|
285
|
+
template="template",
|
286
|
+
),
|
261
287
|
],
|
262
288
|
)
|
263
289
|
for chunk in response:
|
@@ -409,31 +435,44 @@ class AsyncAdHocClient:
|
|
409
435
|
)
|
410
436
|
|
411
437
|
client = AsyncVellum(
|
438
|
+
api_version="YOUR_API_VERSION",
|
412
439
|
api_key="YOUR_API_KEY",
|
413
440
|
)
|
414
441
|
|
415
442
|
|
416
443
|
async def main() -> None:
|
417
444
|
await client.ad_hoc.adhoc_execute_prompt(
|
418
|
-
ml_model="
|
445
|
+
ml_model="x",
|
419
446
|
input_values=[
|
420
447
|
PromptRequestStringInput(
|
421
|
-
key="
|
448
|
+
key="x",
|
422
449
|
value="value",
|
423
|
-
)
|
450
|
+
),
|
451
|
+
PromptRequestStringInput(
|
452
|
+
key="x",
|
453
|
+
value="value",
|
454
|
+
),
|
424
455
|
],
|
425
456
|
input_variables=[
|
426
457
|
VellumVariable(
|
427
|
-
id="
|
458
|
+
id="x",
|
428
459
|
key="key",
|
429
460
|
type="STRING",
|
430
|
-
)
|
461
|
+
),
|
462
|
+
VellumVariable(
|
463
|
+
id="x",
|
464
|
+
key="key",
|
465
|
+
type="STRING",
|
466
|
+
),
|
431
467
|
],
|
432
468
|
parameters=PromptParameters(),
|
433
469
|
blocks=[
|
434
470
|
JinjaPromptBlock(
|
435
471
|
template="template",
|
436
|
-
)
|
472
|
+
),
|
473
|
+
JinjaPromptBlock(
|
474
|
+
template="template",
|
475
|
+
),
|
437
476
|
],
|
438
477
|
)
|
439
478
|
|
@@ -573,31 +612,44 @@ class AsyncAdHocClient:
|
|
573
612
|
)
|
574
613
|
|
575
614
|
client = AsyncVellum(
|
615
|
+
api_version="YOUR_API_VERSION",
|
576
616
|
api_key="YOUR_API_KEY",
|
577
617
|
)
|
578
618
|
|
579
619
|
|
580
620
|
async def main() -> None:
|
581
621
|
response = await client.ad_hoc.adhoc_execute_prompt_stream(
|
582
|
-
ml_model="
|
622
|
+
ml_model="x",
|
583
623
|
input_values=[
|
584
624
|
PromptRequestStringInput(
|
585
|
-
key="
|
625
|
+
key="x",
|
586
626
|
value="value",
|
587
|
-
)
|
627
|
+
),
|
628
|
+
PromptRequestStringInput(
|
629
|
+
key="x",
|
630
|
+
value="value",
|
631
|
+
),
|
588
632
|
],
|
589
633
|
input_variables=[
|
590
634
|
VellumVariable(
|
591
|
-
id="
|
635
|
+
id="x",
|
592
636
|
key="key",
|
593
637
|
type="STRING",
|
594
|
-
)
|
638
|
+
),
|
639
|
+
VellumVariable(
|
640
|
+
id="x",
|
641
|
+
key="key",
|
642
|
+
type="STRING",
|
643
|
+
),
|
595
644
|
],
|
596
645
|
parameters=PromptParameters(),
|
597
646
|
blocks=[
|
598
647
|
JinjaPromptBlock(
|
599
648
|
template="template",
|
600
|
-
)
|
649
|
+
),
|
650
|
+
JinjaPromptBlock(
|
651
|
+
template="template",
|
652
|
+
),
|
601
653
|
],
|
602
654
|
)
|
603
655
|
async for chunk in response:
|
@@ -55,6 +55,7 @@ class ContainerImagesClient:
|
|
55
55
|
from vellum import Vellum
|
56
56
|
|
57
57
|
client = Vellum(
|
58
|
+
api_version="YOUR_API_VERSION",
|
58
59
|
api_key="YOUR_API_KEY",
|
59
60
|
)
|
60
61
|
client.container_images.list()
|
@@ -106,6 +107,7 @@ class ContainerImagesClient:
|
|
106
107
|
from vellum import Vellum
|
107
108
|
|
108
109
|
client = Vellum(
|
110
|
+
api_version="YOUR_API_VERSION",
|
109
111
|
api_key="YOUR_API_KEY",
|
110
112
|
)
|
111
113
|
client.container_images.retrieve(
|
@@ -149,6 +151,7 @@ class ContainerImagesClient:
|
|
149
151
|
from vellum import Vellum
|
150
152
|
|
151
153
|
client = Vellum(
|
154
|
+
api_version="YOUR_API_VERSION",
|
152
155
|
api_key="YOUR_API_KEY",
|
153
156
|
)
|
154
157
|
client.container_images.docker_service_token()
|
@@ -203,12 +206,13 @@ class ContainerImagesClient:
|
|
203
206
|
from vellum import Vellum
|
204
207
|
|
205
208
|
client = Vellum(
|
209
|
+
api_version="YOUR_API_VERSION",
|
206
210
|
api_key="YOUR_API_KEY",
|
207
211
|
)
|
208
212
|
client.container_images.push_container_image(
|
209
|
-
name="
|
210
|
-
sha="
|
211
|
-
tags=["tags"],
|
213
|
+
name="x",
|
214
|
+
sha="x",
|
215
|
+
tags=["tags", "tags"],
|
212
216
|
)
|
213
217
|
"""
|
214
218
|
_response = self._client_wrapper.httpx_client.request(
|
@@ -282,6 +286,7 @@ class AsyncContainerImagesClient:
|
|
282
286
|
from vellum import AsyncVellum
|
283
287
|
|
284
288
|
client = AsyncVellum(
|
289
|
+
api_version="YOUR_API_VERSION",
|
285
290
|
api_key="YOUR_API_KEY",
|
286
291
|
)
|
287
292
|
|
@@ -341,6 +346,7 @@ class AsyncContainerImagesClient:
|
|
341
346
|
from vellum import AsyncVellum
|
342
347
|
|
343
348
|
client = AsyncVellum(
|
349
|
+
api_version="YOUR_API_VERSION",
|
344
350
|
api_key="YOUR_API_KEY",
|
345
351
|
)
|
346
352
|
|
@@ -394,6 +400,7 @@ class AsyncContainerImagesClient:
|
|
394
400
|
from vellum import AsyncVellum
|
395
401
|
|
396
402
|
client = AsyncVellum(
|
403
|
+
api_version="YOUR_API_VERSION",
|
397
404
|
api_key="YOUR_API_KEY",
|
398
405
|
)
|
399
406
|
|
@@ -456,15 +463,16 @@ class AsyncContainerImagesClient:
|
|
456
463
|
from vellum import AsyncVellum
|
457
464
|
|
458
465
|
client = AsyncVellum(
|
466
|
+
api_version="YOUR_API_VERSION",
|
459
467
|
api_key="YOUR_API_KEY",
|
460
468
|
)
|
461
469
|
|
462
470
|
|
463
471
|
async def main() -> None:
|
464
472
|
await client.container_images.push_container_image(
|
465
|
-
name="
|
466
|
-
sha="
|
467
|
-
tags=["tags"],
|
473
|
+
name="x",
|
474
|
+
sha="x",
|
475
|
+
tags=["tags", "tags"],
|
468
476
|
)
|
469
477
|
|
470
478
|
|
@@ -72,6 +72,7 @@ class DeploymentsClient:
|
|
72
72
|
from vellum import Vellum
|
73
73
|
|
74
74
|
client = Vellum(
|
75
|
+
api_version="YOUR_API_VERSION",
|
75
76
|
api_key="YOUR_API_KEY",
|
76
77
|
)
|
77
78
|
client.deployments.list()
|
@@ -124,6 +125,7 @@ class DeploymentsClient:
|
|
124
125
|
from vellum import Vellum
|
125
126
|
|
126
127
|
client = Vellum(
|
128
|
+
api_version="YOUR_API_VERSION",
|
127
129
|
api_key="YOUR_API_KEY",
|
128
130
|
)
|
129
131
|
client.deployments.retrieve(
|
@@ -178,6 +180,7 @@ class DeploymentsClient:
|
|
178
180
|
from vellum import Vellum
|
179
181
|
|
180
182
|
client = Vellum(
|
183
|
+
api_version="YOUR_API_VERSION",
|
181
184
|
api_key="YOUR_API_KEY",
|
182
185
|
)
|
183
186
|
client.deployments.deployment_history_item_retrieve(
|
@@ -247,6 +250,7 @@ class DeploymentsClient:
|
|
247
250
|
from vellum import Vellum
|
248
251
|
|
249
252
|
client = Vellum(
|
253
|
+
api_version="YOUR_API_VERSION",
|
250
254
|
api_key="YOUR_API_KEY",
|
251
255
|
)
|
252
256
|
client.deployments.list_deployment_release_tags(
|
@@ -306,6 +310,7 @@ class DeploymentsClient:
|
|
306
310
|
from vellum import Vellum
|
307
311
|
|
308
312
|
client = Vellum(
|
313
|
+
api_version="YOUR_API_VERSION",
|
309
314
|
api_key="YOUR_API_KEY",
|
310
315
|
)
|
311
316
|
client.deployments.retrieve_deployment_release_tag(
|
@@ -368,6 +373,7 @@ class DeploymentsClient:
|
|
368
373
|
from vellum import Vellum
|
369
374
|
|
370
375
|
client = Vellum(
|
376
|
+
api_version="YOUR_API_VERSION",
|
371
377
|
api_key="YOUR_API_KEY",
|
372
378
|
)
|
373
379
|
client.deployments.update_deployment_release_tag(
|
@@ -429,6 +435,7 @@ class DeploymentsClient:
|
|
429
435
|
from vellum import Vellum
|
430
436
|
|
431
437
|
client = Vellum(
|
438
|
+
api_version="YOUR_API_VERSION",
|
432
439
|
api_key="YOUR_API_KEY",
|
433
440
|
)
|
434
441
|
client.deployments.retrieve_prompt_deployment_release(
|
@@ -507,14 +514,19 @@ class DeploymentsClient:
|
|
507
514
|
from vellum import StringInputRequest, Vellum
|
508
515
|
|
509
516
|
client = Vellum(
|
517
|
+
api_version="YOUR_API_VERSION",
|
510
518
|
api_key="YOUR_API_KEY",
|
511
519
|
)
|
512
520
|
client.deployments.retrieve_provider_payload(
|
513
521
|
inputs=[
|
514
522
|
StringInputRequest(
|
515
|
-
name="
|
523
|
+
name="x",
|
516
524
|
value="value",
|
517
|
-
)
|
525
|
+
),
|
526
|
+
StringInputRequest(
|
527
|
+
name="x",
|
528
|
+
value="value",
|
529
|
+
),
|
518
530
|
],
|
519
531
|
)
|
520
532
|
"""
|
@@ -641,6 +653,7 @@ class AsyncDeploymentsClient:
|
|
641
653
|
from vellum import AsyncVellum
|
642
654
|
|
643
655
|
client = AsyncVellum(
|
656
|
+
api_version="YOUR_API_VERSION",
|
644
657
|
api_key="YOUR_API_KEY",
|
645
658
|
)
|
646
659
|
|
@@ -701,6 +714,7 @@ class AsyncDeploymentsClient:
|
|
701
714
|
from vellum import AsyncVellum
|
702
715
|
|
703
716
|
client = AsyncVellum(
|
717
|
+
api_version="YOUR_API_VERSION",
|
704
718
|
api_key="YOUR_API_KEY",
|
705
719
|
)
|
706
720
|
|
@@ -763,6 +777,7 @@ class AsyncDeploymentsClient:
|
|
763
777
|
from vellum import AsyncVellum
|
764
778
|
|
765
779
|
client = AsyncVellum(
|
780
|
+
api_version="YOUR_API_VERSION",
|
766
781
|
api_key="YOUR_API_KEY",
|
767
782
|
)
|
768
783
|
|
@@ -840,6 +855,7 @@ class AsyncDeploymentsClient:
|
|
840
855
|
from vellum import AsyncVellum
|
841
856
|
|
842
857
|
client = AsyncVellum(
|
858
|
+
api_version="YOUR_API_VERSION",
|
843
859
|
api_key="YOUR_API_KEY",
|
844
860
|
)
|
845
861
|
|
@@ -907,6 +923,7 @@ class AsyncDeploymentsClient:
|
|
907
923
|
from vellum import AsyncVellum
|
908
924
|
|
909
925
|
client = AsyncVellum(
|
926
|
+
api_version="YOUR_API_VERSION",
|
910
927
|
api_key="YOUR_API_KEY",
|
911
928
|
)
|
912
929
|
|
@@ -977,6 +994,7 @@ class AsyncDeploymentsClient:
|
|
977
994
|
from vellum import AsyncVellum
|
978
995
|
|
979
996
|
client = AsyncVellum(
|
997
|
+
api_version="YOUR_API_VERSION",
|
980
998
|
api_key="YOUR_API_KEY",
|
981
999
|
)
|
982
1000
|
|
@@ -1046,6 +1064,7 @@ class AsyncDeploymentsClient:
|
|
1046
1064
|
from vellum import AsyncVellum
|
1047
1065
|
|
1048
1066
|
client = AsyncVellum(
|
1067
|
+
api_version="YOUR_API_VERSION",
|
1049
1068
|
api_key="YOUR_API_KEY",
|
1050
1069
|
)
|
1051
1070
|
|
@@ -1132,6 +1151,7 @@ class AsyncDeploymentsClient:
|
|
1132
1151
|
from vellum import AsyncVellum, StringInputRequest
|
1133
1152
|
|
1134
1153
|
client = AsyncVellum(
|
1154
|
+
api_version="YOUR_API_VERSION",
|
1135
1155
|
api_key="YOUR_API_KEY",
|
1136
1156
|
)
|
1137
1157
|
|
@@ -1140,9 +1160,13 @@ class AsyncDeploymentsClient:
|
|
1140
1160
|
await client.deployments.retrieve_provider_payload(
|
1141
1161
|
inputs=[
|
1142
1162
|
StringInputRequest(
|
1143
|
-
name="
|
1163
|
+
name="x",
|
1144
1164
|
value="value",
|
1145
|
-
)
|
1165
|
+
),
|
1166
|
+
StringInputRequest(
|
1167
|
+
name="x",
|
1168
|
+
value="value",
|
1169
|
+
),
|
1146
1170
|
],
|
1147
1171
|
)
|
1148
1172
|
|
@@ -69,6 +69,7 @@ class DocumentIndexesClient:
|
|
69
69
|
from vellum import Vellum
|
70
70
|
|
71
71
|
client = Vellum(
|
72
|
+
api_version="YOUR_API_VERSION",
|
72
73
|
api_key="YOUR_API_KEY",
|
73
74
|
)
|
74
75
|
client.document_indexes.list()
|
@@ -144,32 +145,21 @@ class DocumentIndexesClient:
|
|
144
145
|
--------
|
145
146
|
from vellum import (
|
146
147
|
DocumentIndexIndexingConfigRequest,
|
147
|
-
|
148
|
-
|
149
|
-
SentenceChunkerConfigRequest,
|
150
|
-
SentenceChunkingRequest,
|
148
|
+
OpenAiVectorizerConfigRequest,
|
149
|
+
OpenAiVectorizerTextEmbedding3SmallRequest,
|
151
150
|
Vellum,
|
152
151
|
)
|
153
152
|
|
154
153
|
client = Vellum(
|
154
|
+
api_version="YOUR_API_VERSION",
|
155
155
|
api_key="YOUR_API_KEY",
|
156
156
|
)
|
157
157
|
client.document_indexes.create(
|
158
|
-
label="
|
159
|
-
name="
|
158
|
+
label="x",
|
159
|
+
name="x",
|
160
160
|
indexing_config=DocumentIndexIndexingConfigRequest(
|
161
|
-
vectorizer=
|
162
|
-
config=
|
163
|
-
instruction_domain="",
|
164
|
-
instruction_query_text_type="plain_text",
|
165
|
-
instruction_document_text_type="plain_text",
|
166
|
-
),
|
167
|
-
),
|
168
|
-
chunking=SentenceChunkingRequest(
|
169
|
-
chunker_config=SentenceChunkerConfigRequest(
|
170
|
-
character_limit=1000,
|
171
|
-
min_overlap_ratio=0.5,
|
172
|
-
),
|
161
|
+
vectorizer=OpenAiVectorizerTextEmbedding3SmallRequest(
|
162
|
+
config=OpenAiVectorizerConfigRequest(),
|
173
163
|
),
|
174
164
|
),
|
175
165
|
)
|
@@ -229,6 +219,7 @@ class DocumentIndexesClient:
|
|
229
219
|
from vellum import Vellum
|
230
220
|
|
231
221
|
client = Vellum(
|
222
|
+
api_version="YOUR_API_VERSION",
|
232
223
|
api_key="YOUR_API_KEY",
|
233
224
|
)
|
234
225
|
client.document_indexes.retrieve(
|
@@ -293,11 +284,12 @@ class DocumentIndexesClient:
|
|
293
284
|
from vellum import Vellum
|
294
285
|
|
295
286
|
client = Vellum(
|
287
|
+
api_version="YOUR_API_VERSION",
|
296
288
|
api_key="YOUR_API_KEY",
|
297
289
|
)
|
298
290
|
client.document_indexes.update(
|
299
291
|
id="id",
|
300
|
-
label="
|
292
|
+
label="x",
|
301
293
|
)
|
302
294
|
"""
|
303
295
|
_response = self._client_wrapper.httpx_client.request(
|
@@ -349,6 +341,7 @@ class DocumentIndexesClient:
|
|
349
341
|
from vellum import Vellum
|
350
342
|
|
351
343
|
client = Vellum(
|
344
|
+
api_version="YOUR_API_VERSION",
|
352
345
|
api_key="YOUR_API_KEY",
|
353
346
|
)
|
354
347
|
client.document_indexes.destroy(
|
@@ -407,6 +400,7 @@ class DocumentIndexesClient:
|
|
407
400
|
from vellum import Vellum
|
408
401
|
|
409
402
|
client = Vellum(
|
403
|
+
api_version="YOUR_API_VERSION",
|
410
404
|
api_key="YOUR_API_KEY",
|
411
405
|
)
|
412
406
|
client.document_indexes.partial_update(
|
@@ -467,6 +461,7 @@ class DocumentIndexesClient:
|
|
467
461
|
from vellum import Vellum
|
468
462
|
|
469
463
|
client = Vellum(
|
464
|
+
api_version="YOUR_API_VERSION",
|
470
465
|
api_key="YOUR_API_KEY",
|
471
466
|
)
|
472
467
|
client.document_indexes.add_document(
|
@@ -514,6 +509,7 @@ class DocumentIndexesClient:
|
|
514
509
|
from vellum import Vellum
|
515
510
|
|
516
511
|
client = Vellum(
|
512
|
+
api_version="YOUR_API_VERSION",
|
517
513
|
api_key="YOUR_API_KEY",
|
518
514
|
)
|
519
515
|
client.document_indexes.remove_document(
|
@@ -588,6 +584,7 @@ class AsyncDocumentIndexesClient:
|
|
588
584
|
from vellum import AsyncVellum
|
589
585
|
|
590
586
|
client = AsyncVellum(
|
587
|
+
api_version="YOUR_API_VERSION",
|
591
588
|
api_key="YOUR_API_KEY",
|
592
589
|
)
|
593
590
|
|
@@ -672,34 +669,23 @@ class AsyncDocumentIndexesClient:
|
|
672
669
|
from vellum import (
|
673
670
|
AsyncVellum,
|
674
671
|
DocumentIndexIndexingConfigRequest,
|
675
|
-
|
676
|
-
|
677
|
-
SentenceChunkerConfigRequest,
|
678
|
-
SentenceChunkingRequest,
|
672
|
+
OpenAiVectorizerConfigRequest,
|
673
|
+
OpenAiVectorizerTextEmbedding3SmallRequest,
|
679
674
|
)
|
680
675
|
|
681
676
|
client = AsyncVellum(
|
677
|
+
api_version="YOUR_API_VERSION",
|
682
678
|
api_key="YOUR_API_KEY",
|
683
679
|
)
|
684
680
|
|
685
681
|
|
686
682
|
async def main() -> None:
|
687
683
|
await client.document_indexes.create(
|
688
|
-
label="
|
689
|
-
name="
|
684
|
+
label="x",
|
685
|
+
name="x",
|
690
686
|
indexing_config=DocumentIndexIndexingConfigRequest(
|
691
|
-
vectorizer=
|
692
|
-
config=
|
693
|
-
instruction_domain="",
|
694
|
-
instruction_query_text_type="plain_text",
|
695
|
-
instruction_document_text_type="plain_text",
|
696
|
-
),
|
697
|
-
),
|
698
|
-
chunking=SentenceChunkingRequest(
|
699
|
-
chunker_config=SentenceChunkerConfigRequest(
|
700
|
-
character_limit=1000,
|
701
|
-
min_overlap_ratio=0.5,
|
702
|
-
),
|
687
|
+
vectorizer=OpenAiVectorizerTextEmbedding3SmallRequest(
|
688
|
+
config=OpenAiVectorizerConfigRequest(),
|
703
689
|
),
|
704
690
|
),
|
705
691
|
)
|
@@ -764,6 +750,7 @@ class AsyncDocumentIndexesClient:
|
|
764
750
|
from vellum import AsyncVellum
|
765
751
|
|
766
752
|
client = AsyncVellum(
|
753
|
+
api_version="YOUR_API_VERSION",
|
767
754
|
api_key="YOUR_API_KEY",
|
768
755
|
)
|
769
756
|
|
@@ -836,6 +823,7 @@ class AsyncDocumentIndexesClient:
|
|
836
823
|
from vellum import AsyncVellum
|
837
824
|
|
838
825
|
client = AsyncVellum(
|
826
|
+
api_version="YOUR_API_VERSION",
|
839
827
|
api_key="YOUR_API_KEY",
|
840
828
|
)
|
841
829
|
|
@@ -843,7 +831,7 @@ class AsyncDocumentIndexesClient:
|
|
843
831
|
async def main() -> None:
|
844
832
|
await client.document_indexes.update(
|
845
833
|
id="id",
|
846
|
-
label="
|
834
|
+
label="x",
|
847
835
|
)
|
848
836
|
|
849
837
|
|
@@ -900,6 +888,7 @@ class AsyncDocumentIndexesClient:
|
|
900
888
|
from vellum import AsyncVellum
|
901
889
|
|
902
890
|
client = AsyncVellum(
|
891
|
+
api_version="YOUR_API_VERSION",
|
903
892
|
api_key="YOUR_API_KEY",
|
904
893
|
)
|
905
894
|
|
@@ -966,6 +955,7 @@ class AsyncDocumentIndexesClient:
|
|
966
955
|
from vellum import AsyncVellum
|
967
956
|
|
968
957
|
client = AsyncVellum(
|
958
|
+
api_version="YOUR_API_VERSION",
|
969
959
|
api_key="YOUR_API_KEY",
|
970
960
|
)
|
971
961
|
|
@@ -1034,6 +1024,7 @@ class AsyncDocumentIndexesClient:
|
|
1034
1024
|
from vellum import AsyncVellum
|
1035
1025
|
|
1036
1026
|
client = AsyncVellum(
|
1027
|
+
api_version="YOUR_API_VERSION",
|
1037
1028
|
api_key="YOUR_API_KEY",
|
1038
1029
|
)
|
1039
1030
|
|
@@ -1089,6 +1080,7 @@ class AsyncDocumentIndexesClient:
|
|
1089
1080
|
from vellum import AsyncVellum
|
1090
1081
|
|
1091
1082
|
client = AsyncVellum(
|
1083
|
+
api_version="YOUR_API_VERSION",
|
1092
1084
|
api_key="YOUR_API_KEY",
|
1093
1085
|
)
|
1094
1086
|
|