You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/api-documentation/src/yml/swagger.yml
+56
Original file line number
Diff line number
Diff line change
@@ -679,6 +679,11 @@ paths:
679
679
type: string
680
680
format: binary
681
681
description: Files to be uploaded
682
+
docId:
683
+
type: string
684
+
nullable: true
685
+
example: '603a7b51-ae7c-4b0a-8865-e454ed2f6766'
686
+
description: Document ID to use existing configuration
682
687
loader:
683
688
type: string
684
689
nullable: true
@@ -704,6 +709,32 @@ paths:
704
709
nullable: true
705
710
example: '{"name":"postgresRecordManager"}'
706
711
description: Record Manager configurations
712
+
metadata:
713
+
type: object
714
+
nullable: true
715
+
description: Metadata associated with the document
716
+
example: { 'foo': 'bar' }
717
+
replaceExisting:
718
+
type: boolean
719
+
nullable: true
720
+
description: Whether to replace existing document loader with the new upserted chunks. However this does not delete the existing embeddings in the vector store
721
+
createNewDocStore:
722
+
type: boolean
723
+
nullable: true
724
+
description: Whether to create a new document store
725
+
docStore:
726
+
type: object
727
+
nullable: true
728
+
description: Only when createNewDocStore is true, pass in the new document store configuration
729
+
properties:
730
+
name:
731
+
type: string
732
+
example: plainText
733
+
description: Name of the new document store to be created
734
+
description:
735
+
type: string
736
+
example: plainText
737
+
description: Description of the new document store to be created
707
738
required:
708
739
- files
709
740
required: true
@@ -2350,16 +2381,37 @@ components:
2350
2381
docId:
2351
2382
type: string
2352
2383
format: uuid
2384
+
nullable: true
2353
2385
description: Document ID within the store. If provided, existing configuration from the document will be used for the new document
2354
2386
metadata:
2355
2387
type: object
2388
+
nullable: true
2356
2389
description: Metadata associated with the document
2357
2390
example: { 'foo': 'bar' }
2358
2391
replaceExisting:
2359
2392
type: boolean
2393
+
nullable: true
2360
2394
description: Whether to replace existing document loader with the new upserted chunks. However this does not delete the existing embeddings in the vector store
2395
+
createNewDocStore:
2396
+
type: boolean
2397
+
nullable: true
2398
+
description: Whether to create a new document store
2399
+
docStore:
2400
+
type: object
2401
+
nullable: true
2402
+
description: Only when createNewDocStore is true, pass in the new document store configuration
2403
+
properties:
2404
+
name:
2405
+
type: string
2406
+
example: plainText
2407
+
description: Name of the new document store to be created
2408
+
description:
2409
+
type: string
2410
+
example: plainText
2411
+
description: Description of the new document store to be created
2361
2412
loader:
2362
2413
type: object
2414
+
nullable: true
2363
2415
properties:
2364
2416
name:
2365
2417
type: string
@@ -2370,6 +2422,7 @@ components:
2370
2422
description: Configuration for the loader
2371
2423
splitter:
2372
2424
type: object
2425
+
nullable: true
2373
2426
properties:
2374
2427
name:
2375
2428
type: string
@@ -2380,6 +2433,7 @@ components:
2380
2433
description: Configuration for the text splitter
2381
2434
embedding:
2382
2435
type: object
2436
+
nullable: true
2383
2437
properties:
2384
2438
name:
2385
2439
type: string
@@ -2390,6 +2444,7 @@ components:
2390
2444
description: Configuration for the embedding generator
0 commit comments