groundx 2.0.29__py3-none-any.whl → 2.1.0__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.
- groundx/buckets/client.py +0 -20
- groundx/core/client_wrapper.py +1 -1
- groundx/documents/client.py +10 -42
- groundx/groups/client.py +0 -28
- groundx/ingest.py +1 -3
- groundx/search/client.py +4 -16
- {groundx-2.0.29.dist-info → groundx-2.1.0.dist-info}/METADATA +1 -1
- {groundx-2.0.29.dist-info → groundx-2.1.0.dist-info}/RECORD +10 -10
- {groundx-2.0.29.dist-info → groundx-2.1.0.dist-info}/LICENSE +0 -0
- {groundx-2.0.29.dist-info → groundx-2.1.0.dist-info}/WHEEL +0 -0
groundx/buckets/client.py
CHANGED
@@ -33,8 +33,6 @@ class BucketsClient:
|
|
33
33
|
"""
|
34
34
|
List all buckets within your GroundX account
|
35
35
|
|
36
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
37
|
-
|
38
36
|
Parameters
|
39
37
|
----------
|
40
38
|
n : typing.Optional[int]
|
@@ -87,8 +85,6 @@ class BucketsClient:
|
|
87
85
|
"""
|
88
86
|
Create a new bucket.
|
89
87
|
|
90
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
91
|
-
|
92
88
|
Parameters
|
93
89
|
----------
|
94
90
|
name : str
|
@@ -152,8 +148,6 @@ class BucketsClient:
|
|
152
148
|
"""
|
153
149
|
Look up a specific bucket by its bucketId.
|
154
150
|
|
155
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
156
|
-
|
157
151
|
Parameters
|
158
152
|
----------
|
159
153
|
bucket_id : int
|
@@ -223,8 +217,6 @@ class BucketsClient:
|
|
223
217
|
"""
|
224
218
|
Rename a bucket.
|
225
219
|
|
226
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
227
|
-
|
228
220
|
Parameters
|
229
221
|
----------
|
230
222
|
bucket_id : int
|
@@ -303,8 +295,6 @@ class BucketsClient:
|
|
303
295
|
"""
|
304
296
|
Delete a bucket.
|
305
297
|
|
306
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
307
|
-
|
308
298
|
Parameters
|
309
299
|
----------
|
310
300
|
bucket_id : int
|
@@ -383,8 +373,6 @@ class AsyncBucketsClient:
|
|
383
373
|
"""
|
384
374
|
List all buckets within your GroundX account
|
385
375
|
|
386
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
387
|
-
|
388
376
|
Parameters
|
389
377
|
----------
|
390
378
|
n : typing.Optional[int]
|
@@ -445,8 +433,6 @@ class AsyncBucketsClient:
|
|
445
433
|
"""
|
446
434
|
Create a new bucket.
|
447
435
|
|
448
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
449
|
-
|
450
436
|
Parameters
|
451
437
|
----------
|
452
438
|
name : str
|
@@ -518,8 +504,6 @@ class AsyncBucketsClient:
|
|
518
504
|
"""
|
519
505
|
Look up a specific bucket by its bucketId.
|
520
506
|
|
521
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
522
|
-
|
523
507
|
Parameters
|
524
508
|
----------
|
525
509
|
bucket_id : int
|
@@ -597,8 +581,6 @@ class AsyncBucketsClient:
|
|
597
581
|
"""
|
598
582
|
Rename a bucket.
|
599
583
|
|
600
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
601
|
-
|
602
584
|
Parameters
|
603
585
|
----------
|
604
586
|
bucket_id : int
|
@@ -687,8 +669,6 @@ class AsyncBucketsClient:
|
|
687
669
|
"""
|
688
670
|
Delete a bucket.
|
689
671
|
|
690
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
691
|
-
|
692
672
|
Parameters
|
693
673
|
----------
|
694
674
|
bucket_id : int
|
groundx/core/client_wrapper.py
CHANGED
groundx/documents/client.py
CHANGED
@@ -40,8 +40,6 @@ class DocumentsClient:
|
|
40
40
|
"""
|
41
41
|
Ingest documents hosted on public URLs into a GroundX bucket.
|
42
42
|
|
43
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
44
|
-
|
45
43
|
Parameters
|
46
44
|
----------
|
47
45
|
documents : typing.Sequence[IngestRemoteDocument]
|
@@ -126,8 +124,6 @@ class DocumentsClient:
|
|
126
124
|
"""
|
127
125
|
Upload documents hosted on a local file system into a GroundX bucket.
|
128
126
|
|
129
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
130
|
-
|
131
127
|
Parameters
|
132
128
|
----------
|
133
129
|
request : DocumentLocalIngestRequest
|
@@ -209,8 +205,6 @@ class DocumentsClient:
|
|
209
205
|
"""
|
210
206
|
Upload the content of a publicly accessible website for ingestion into a GroundX bucket. This is done by following links within a specified URL, recursively, up to a specified depth or number of pages.
|
211
207
|
|
212
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
213
|
-
|
214
208
|
Parameters
|
215
209
|
----------
|
216
210
|
websites : typing.Sequence[WebsiteSource]
|
@@ -234,8 +228,8 @@ class DocumentsClient:
|
|
234
228
|
websites=[
|
235
229
|
WebsiteSource(
|
236
230
|
bucket_id=1234,
|
237
|
-
cap=
|
238
|
-
depth=
|
231
|
+
cap=10,
|
232
|
+
depth=2,
|
239
233
|
search_data={"key": "value"},
|
240
234
|
source_url="https://my.website.com",
|
241
235
|
)
|
@@ -304,8 +298,6 @@ class DocumentsClient:
|
|
304
298
|
"""
|
305
299
|
lookup all documents across all resources which are currently on GroundX
|
306
300
|
|
307
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
308
|
-
|
309
301
|
Parameters
|
310
302
|
----------
|
311
303
|
n : typing.Optional[int]
|
@@ -379,8 +371,6 @@ class DocumentsClient:
|
|
379
371
|
"""
|
380
372
|
Delete multiple documents hosted on GroundX
|
381
373
|
|
382
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
383
|
-
|
384
374
|
Parameters
|
385
375
|
----------
|
386
376
|
document_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
@@ -401,7 +391,9 @@ class DocumentsClient:
|
|
401
391
|
client = GroundX(
|
402
392
|
api_key="YOUR_API_KEY",
|
403
393
|
)
|
404
|
-
client.documents.delete(
|
394
|
+
client.documents.delete(
|
395
|
+
document_ids="123e4567-e89b-12d3-a456-426614174000,9f7c11a6-24b8-4d52-a9f3-90a7e70a9e49",
|
396
|
+
)
|
405
397
|
"""
|
406
398
|
_response = self._client_wrapper.httpx_client.request(
|
407
399
|
"v1/ingest/documents",
|
@@ -451,8 +443,6 @@ class DocumentsClient:
|
|
451
443
|
"""
|
452
444
|
Get the current status of an ingest, initiated with documents.ingest_remote, documents.ingest_local, or documents.crawl_website, by specifying the processId (the processId is included in the response of the documents.ingest functions).
|
453
445
|
|
454
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
455
|
-
|
456
446
|
Parameters
|
457
447
|
----------
|
458
448
|
process_id : str
|
@@ -531,8 +521,6 @@ class DocumentsClient:
|
|
531
521
|
"""
|
532
522
|
lookup the document(s) associated with a processId, bucketId, groupId, or projectId.
|
533
523
|
|
534
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
535
|
-
|
536
524
|
Parameters
|
537
525
|
----------
|
538
526
|
id : int
|
@@ -626,8 +614,6 @@ class DocumentsClient:
|
|
626
614
|
"""
|
627
615
|
Look up an existing document by documentId.
|
628
616
|
|
629
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
630
|
-
|
631
617
|
Parameters
|
632
618
|
----------
|
633
619
|
document_id : str
|
@@ -697,8 +683,6 @@ class DocumentsClient:
|
|
697
683
|
"""
|
698
684
|
Delete a single document hosted on GroundX
|
699
685
|
|
700
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
701
|
-
|
702
686
|
Parameters
|
703
687
|
----------
|
704
688
|
document_id : str
|
@@ -776,8 +760,6 @@ class AsyncDocumentsClient:
|
|
776
760
|
"""
|
777
761
|
Ingest documents hosted on public URLs into a GroundX bucket.
|
778
762
|
|
779
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
780
|
-
|
781
763
|
Parameters
|
782
764
|
----------
|
783
765
|
documents : typing.Sequence[IngestRemoteDocument]
|
@@ -870,8 +852,6 @@ class AsyncDocumentsClient:
|
|
870
852
|
"""
|
871
853
|
Upload documents hosted on a local file system into a GroundX bucket.
|
872
854
|
|
873
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
874
|
-
|
875
855
|
Parameters
|
876
856
|
----------
|
877
857
|
request : DocumentLocalIngestRequest
|
@@ -965,8 +945,6 @@ class AsyncDocumentsClient:
|
|
965
945
|
"""
|
966
946
|
Upload the content of a publicly accessible website for ingestion into a GroundX bucket. This is done by following links within a specified URL, recursively, up to a specified depth or number of pages.
|
967
947
|
|
968
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
969
|
-
|
970
948
|
Parameters
|
971
949
|
----------
|
972
950
|
websites : typing.Sequence[WebsiteSource]
|
@@ -995,8 +973,8 @@ class AsyncDocumentsClient:
|
|
995
973
|
websites=[
|
996
974
|
WebsiteSource(
|
997
975
|
bucket_id=1234,
|
998
|
-
cap=
|
999
|
-
depth=
|
976
|
+
cap=10,
|
977
|
+
depth=2,
|
1000
978
|
search_data={"key": "value"},
|
1001
979
|
source_url="https://my.website.com",
|
1002
980
|
)
|
@@ -1068,8 +1046,6 @@ class AsyncDocumentsClient:
|
|
1068
1046
|
"""
|
1069
1047
|
lookup all documents across all resources which are currently on GroundX
|
1070
1048
|
|
1071
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
1072
|
-
|
1073
1049
|
Parameters
|
1074
1050
|
----------
|
1075
1051
|
n : typing.Optional[int]
|
@@ -1151,8 +1127,6 @@ class AsyncDocumentsClient:
|
|
1151
1127
|
"""
|
1152
1128
|
Delete multiple documents hosted on GroundX
|
1153
1129
|
|
1154
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
1155
|
-
|
1156
1130
|
Parameters
|
1157
1131
|
----------
|
1158
1132
|
document_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
@@ -1178,7 +1152,9 @@ class AsyncDocumentsClient:
|
|
1178
1152
|
|
1179
1153
|
|
1180
1154
|
async def main() -> None:
|
1181
|
-
await client.documents.delete(
|
1155
|
+
await client.documents.delete(
|
1156
|
+
document_ids="123e4567-e89b-12d3-a456-426614174000,9f7c11a6-24b8-4d52-a9f3-90a7e70a9e49",
|
1157
|
+
)
|
1182
1158
|
|
1183
1159
|
|
1184
1160
|
asyncio.run(main())
|
@@ -1231,8 +1207,6 @@ class AsyncDocumentsClient:
|
|
1231
1207
|
"""
|
1232
1208
|
Get the current status of an ingest, initiated with documents.ingest_remote, documents.ingest_local, or documents.crawl_website, by specifying the processId (the processId is included in the response of the documents.ingest functions).
|
1233
1209
|
|
1234
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
1235
|
-
|
1236
1210
|
Parameters
|
1237
1211
|
----------
|
1238
1212
|
process_id : str
|
@@ -1319,8 +1293,6 @@ class AsyncDocumentsClient:
|
|
1319
1293
|
"""
|
1320
1294
|
lookup the document(s) associated with a processId, bucketId, groupId, or projectId.
|
1321
1295
|
|
1322
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
1323
|
-
|
1324
1296
|
Parameters
|
1325
1297
|
----------
|
1326
1298
|
id : int
|
@@ -1424,8 +1396,6 @@ class AsyncDocumentsClient:
|
|
1424
1396
|
"""
|
1425
1397
|
Look up an existing document by documentId.
|
1426
1398
|
|
1427
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
1428
|
-
|
1429
1399
|
Parameters
|
1430
1400
|
----------
|
1431
1401
|
document_id : str
|
@@ -1503,8 +1473,6 @@ class AsyncDocumentsClient:
|
|
1503
1473
|
"""
|
1504
1474
|
Delete a single document hosted on GroundX
|
1505
1475
|
|
1506
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
1507
|
-
|
1508
1476
|
Parameters
|
1509
1477
|
----------
|
1510
1478
|
document_id : str
|
groundx/groups/client.py
CHANGED
@@ -32,8 +32,6 @@ class GroupsClient:
|
|
32
32
|
"""
|
33
33
|
list all groups within your GroundX account.
|
34
34
|
|
35
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
36
|
-
|
37
35
|
Parameters
|
38
36
|
----------
|
39
37
|
n : typing.Optional[int]
|
@@ -92,8 +90,6 @@ class GroupsClient:
|
|
92
90
|
"""
|
93
91
|
create a new group, a group being a collection of buckets which can be searched.
|
94
92
|
|
95
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
96
|
-
|
97
93
|
Parameters
|
98
94
|
----------
|
99
95
|
name : str
|
@@ -162,8 +158,6 @@ class GroupsClient:
|
|
162
158
|
"""
|
163
159
|
look up a specific group by its groupId.
|
164
160
|
|
165
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
166
|
-
|
167
161
|
Parameters
|
168
162
|
----------
|
169
163
|
group_id : int
|
@@ -233,8 +227,6 @@ class GroupsClient:
|
|
233
227
|
"""
|
234
228
|
Rename a group
|
235
229
|
|
236
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
237
|
-
|
238
230
|
Parameters
|
239
231
|
----------
|
240
232
|
group_id : int
|
@@ -313,8 +305,6 @@ class GroupsClient:
|
|
313
305
|
"""
|
314
306
|
Delete a group.
|
315
307
|
|
316
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
317
|
-
|
318
308
|
Parameters
|
319
309
|
----------
|
320
310
|
group_id : int
|
@@ -384,8 +374,6 @@ class GroupsClient:
|
|
384
374
|
"""
|
385
375
|
Add an existing bucket to an existing group. Buckets and groups can be associated many to many.
|
386
376
|
|
387
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
388
|
-
|
389
377
|
Parameters
|
390
378
|
----------
|
391
379
|
group_id : int
|
@@ -459,8 +447,6 @@ class GroupsClient:
|
|
459
447
|
"""
|
460
448
|
remove a bucket from a group. Buckets and groups can be associated many to many, this removes one bucket to group association without disturbing others.
|
461
449
|
|
462
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
463
|
-
|
464
450
|
Parameters
|
465
451
|
----------
|
466
452
|
group_id : int
|
@@ -543,8 +529,6 @@ class AsyncGroupsClient:
|
|
543
529
|
"""
|
544
530
|
list all groups within your GroundX account.
|
545
531
|
|
546
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
547
|
-
|
548
532
|
Parameters
|
549
533
|
----------
|
550
534
|
n : typing.Optional[int]
|
@@ -611,8 +595,6 @@ class AsyncGroupsClient:
|
|
611
595
|
"""
|
612
596
|
create a new group, a group being a collection of buckets which can be searched.
|
613
597
|
|
614
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
615
|
-
|
616
598
|
Parameters
|
617
599
|
----------
|
618
600
|
name : str
|
@@ -689,8 +671,6 @@ class AsyncGroupsClient:
|
|
689
671
|
"""
|
690
672
|
look up a specific group by its groupId.
|
691
673
|
|
692
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
693
|
-
|
694
674
|
Parameters
|
695
675
|
----------
|
696
676
|
group_id : int
|
@@ -768,8 +748,6 @@ class AsyncGroupsClient:
|
|
768
748
|
"""
|
769
749
|
Rename a group
|
770
750
|
|
771
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
772
|
-
|
773
751
|
Parameters
|
774
752
|
----------
|
775
753
|
group_id : int
|
@@ -858,8 +836,6 @@ class AsyncGroupsClient:
|
|
858
836
|
"""
|
859
837
|
Delete a group.
|
860
838
|
|
861
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
862
|
-
|
863
839
|
Parameters
|
864
840
|
----------
|
865
841
|
group_id : int
|
@@ -937,8 +913,6 @@ class AsyncGroupsClient:
|
|
937
913
|
"""
|
938
914
|
Add an existing bucket to an existing group. Buckets and groups can be associated many to many.
|
939
915
|
|
940
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
941
|
-
|
942
916
|
Parameters
|
943
917
|
----------
|
944
918
|
group_id : int
|
@@ -1020,8 +994,6 @@ class AsyncGroupsClient:
|
|
1020
994
|
"""
|
1021
995
|
remove a bucket from a group. Buckets and groups can be associated many to many, this removes one bucket to group association without disturbing others.
|
1022
996
|
|
1023
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
1024
|
-
|
1025
997
|
Parameters
|
1026
998
|
----------
|
1027
999
|
group_id : int
|
groundx/ingest.py
CHANGED
@@ -58,11 +58,10 @@ def prep_documents(
|
|
58
58
|
except ValueError:
|
59
59
|
return False
|
60
60
|
|
61
|
-
idx = 0
|
62
|
-
remote_documents: typing.List[IngestRemoteDocument] = []
|
63
61
|
local_documents: typing.List[
|
64
62
|
typing.Tuple[str, typing.Tuple[typing.Union[str, None], typing.BinaryIO, str]]
|
65
63
|
] = []
|
64
|
+
remote_documents: typing.List[IngestRemoteDocument] = []
|
66
65
|
|
67
66
|
for document in documents:
|
68
67
|
if not hasattr(document, "file_path"):
|
@@ -123,7 +122,6 @@ def prep_documents(
|
|
123
122
|
),
|
124
123
|
)
|
125
124
|
)
|
126
|
-
idx += 1
|
127
125
|
else:
|
128
126
|
raise ValueError(f"Invalid file path: {document.file_path}")
|
129
127
|
|
groundx/search/client.py
CHANGED
@@ -34,10 +34,7 @@ class SearchClient:
|
|
34
34
|
) -> SearchResponse:
|
35
35
|
"""
|
36
36
|
Search documents on GroundX for the most relevant information to a given query.
|
37
|
-
|
38
|
-
The result of this query is typically used in one of two ways; result['search']['text'] can be used to provide context to a language model, facilitating RAG, or result['search']['results'] can be used to observe chunks of text which are relevant to the query, facilitating citation.
|
39
|
-
|
40
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
37
|
+
The result of this query is typically used in one of two ways; `result.search.text` can be used to provide context to a language model, facilitating RAG, or `result.search.results` can be used to observe chunks of text which are relevant to the query, facilitating citation.
|
41
38
|
|
42
39
|
Parameters
|
43
40
|
----------
|
@@ -145,10 +142,7 @@ class SearchClient:
|
|
145
142
|
) -> SearchResponse:
|
146
143
|
"""
|
147
144
|
Search documents on GroundX for the most relevant information to a given query by documentId(s).
|
148
|
-
|
149
|
-
The result of this query is typically used in one of two ways; result['search']['text'] can be used to provide context to a language model, facilitating RAG, or result['search']['results'] can be used to observe chunks of text which are relevant to the query, facilitating citation.
|
150
|
-
|
151
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
145
|
+
The result of this query is typically used in one of two ways; `result.search.text` can be used to provide context to a language model, facilitating RAG, or `result.search.results` can be used to observe chunks of text which are relevant to the query, facilitating citation.
|
152
146
|
|
153
147
|
Parameters
|
154
148
|
----------
|
@@ -262,10 +256,7 @@ class AsyncSearchClient:
|
|
262
256
|
) -> SearchResponse:
|
263
257
|
"""
|
264
258
|
Search documents on GroundX for the most relevant information to a given query.
|
265
|
-
|
266
|
-
The result of this query is typically used in one of two ways; result['search']['text'] can be used to provide context to a language model, facilitating RAG, or result['search']['results'] can be used to observe chunks of text which are relevant to the query, facilitating citation.
|
267
|
-
|
268
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
259
|
+
The result of this query is typically used in one of two ways; `result.search.text` can be used to provide context to a language model, facilitating RAG, or `result.search.results` can be used to observe chunks of text which are relevant to the query, facilitating citation.
|
269
260
|
|
270
261
|
Parameters
|
271
262
|
----------
|
@@ -381,10 +372,7 @@ class AsyncSearchClient:
|
|
381
372
|
) -> SearchResponse:
|
382
373
|
"""
|
383
374
|
Search documents on GroundX for the most relevant information to a given query by documentId(s).
|
384
|
-
|
385
|
-
The result of this query is typically used in one of two ways; result['search']['text'] can be used to provide context to a language model, facilitating RAG, or result['search']['results'] can be used to observe chunks of text which are relevant to the query, facilitating citation.
|
386
|
-
|
387
|
-
Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
|
375
|
+
The result of this query is typically used in one of two ways; `result.search.text` can be used to provide context to a language model, facilitating RAG, or `result.search.results` can be used to observe chunks of text which are relevant to the query, facilitating citation.
|
388
376
|
|
389
377
|
Parameters
|
390
378
|
----------
|
@@ -1,10 +1,10 @@
|
|
1
1
|
groundx/__init__.py,sha256=hl6bFr_FJ0R5Ux_bQErYlWDZQcOF10rkda_r3pah3NQ,3005
|
2
2
|
groundx/buckets/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
3
|
-
groundx/buckets/client.py,sha256=
|
3
|
+
groundx/buckets/client.py,sha256=4jlc9vfIult1mMJ4FZW4_KFJybZPStZt1FUplIgrxbU,23947
|
4
4
|
groundx/client.py,sha256=dIW9OyrMyfC1N7HSxRrHh0w_8rJ8osNUOPdYD6ueQ6g,6515
|
5
5
|
groundx/core/__init__.py,sha256=SQ85PF84B9MuKnBwHNHWemSGuy-g_515gFYNFhvEE0I,1438
|
6
6
|
groundx/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
7
|
-
groundx/core/client_wrapper.py,sha256=
|
7
|
+
groundx/core/client_wrapper.py,sha256=y8onqbSUErX8E-86o2ZOvLGnwI4mzGnG87L-FUdLWHo,1802
|
8
8
|
groundx/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
9
9
|
groundx/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
10
10
|
groundx/core/http_client.py,sha256=siUQ6UV0ARZALlxubqWSSAAPC9B4VW8y6MGlHStfaeo,19552
|
@@ -17,19 +17,19 @@ groundx/core/serialization.py,sha256=D9h_t-RQON3-CHWs1C4ESY9B-Yd5d-l5lnTLb_X896g
|
|
17
17
|
groundx/customer/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
18
18
|
groundx/customer/client.py,sha256=C_JANeDewRD1Kg-q7LPxdiOSWbYSTOiYlBYZLRYPI44,3467
|
19
19
|
groundx/documents/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
20
|
-
groundx/documents/client.py,sha256=
|
20
|
+
groundx/documents/client.py,sha256=Jz8Kc7Z7fPjAAaiXfNhjo0GhvcwXyjGoCH2Jldd4ycM,54419
|
21
21
|
groundx/environment.py,sha256=CInm1_DKtZ1mrxutmKb1qqv82P33r_S87hZD3Hc1VB0,159
|
22
22
|
groundx/errors/__init__.py,sha256=-prNYsFd8xxM4va0vR1raZjcd10tllOJKyEWjX_pwdU,214
|
23
23
|
groundx/errors/bad_request_error.py,sha256=_EbO8mWqN9kFZPvIap8qa1lL_EWkRcsZe1HKV9GDWJY,264
|
24
24
|
groundx/errors/unauthorized_error.py,sha256=1ewNCqSG1P-uogB5yCNwreq4Bf3VRor0woSOXS4NjPU,266
|
25
25
|
groundx/groups/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
26
|
-
groundx/groups/client.py,sha256=
|
26
|
+
groundx/groups/client.py,sha256=bytQRh9m7e4vIuYHb7dD1kCTQZvyBxedCqGnmmLqrsI,35237
|
27
27
|
groundx/health/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
28
28
|
groundx/health/client.py,sha256=fcTa21RWPyBuT77PQ0EncC6rBaW_DrYlRvudy9-0H58,7545
|
29
|
-
groundx/ingest.py,sha256=
|
29
|
+
groundx/ingest.py,sha256=5uTL3iSp3HQYSAbzUkZ6_RM0KbKuqdkPZ8_bLxMpvDM,11377
|
30
30
|
groundx/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
31
31
|
groundx/search/__init__.py,sha256=RagVzjShP33mDg9o4N3kGzV0egL1RYNjCpXPE8VzMYE,145
|
32
|
-
groundx/search/client.py,sha256=
|
32
|
+
groundx/search/client.py,sha256=zrrqFy0HowDUYPsMU4nfvDV2RgmkEQ4E8WYNktu3xcs,18684
|
33
33
|
groundx/search/types/__init__.py,sha256=fNFXQloPa1PHHO8VZim6KQNMA9N5EZtfSkissdxtY_c,165
|
34
34
|
groundx/search/types/search_content_request_id.py,sha256=us7mYdzR0qPur_wR5I9BhHaLEzC5nLBRna6-xq4M1ec,128
|
35
35
|
groundx/types/__init__.py,sha256=GO3it8Adm7ZaxMnc8ZP_9CNZkKpZX7X36hUKi1NgYWA,3809
|
@@ -79,7 +79,7 @@ groundx/types/subscription_detail.py,sha256=WNfUw2EMVECIvNYcV2s51zZ6T3Utc4zYXw63
|
|
79
79
|
groundx/types/subscription_detail_meters.py,sha256=lBa8-1QlMVHjr5RLGqhiTKnD1KMM0AAHTWvz9TVtG8w,830
|
80
80
|
groundx/types/website_source.py,sha256=3WeRCiilNKKBTfhwgjo3jbcVI3vLTeM-KxI6dVzpg9o,1578
|
81
81
|
groundx/version.py,sha256=1yVogKaq260fQfckM2RYN2144SEw0QROsZW8ICtkG4U,74
|
82
|
-
groundx-2.0.
|
83
|
-
groundx-2.0.
|
84
|
-
groundx-2.0.
|
85
|
-
groundx-2.0.
|
82
|
+
groundx-2.1.0.dist-info/LICENSE,sha256=8dMPYAFBTA7O4DUxhrEKEks8CL2waCMYM6dHohW4xrI,1065
|
83
|
+
groundx-2.1.0.dist-info/METADATA,sha256=pGPjHDleNTPidtKmZBOR6bVoJivWzbdLn5fhhlQPTVo,5051
|
84
|
+
groundx-2.1.0.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
85
|
+
groundx-2.1.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|