@mixedbread/sdk 0.32.0 → 0.33.1
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.
- package/CHANGELOG.md +16 -0
- package/package.json +1 -1
- package/resources/stores/files.d.mts +218 -12
- package/resources/stores/files.d.mts.map +1 -1
- package/resources/stores/files.d.ts +218 -12
- package/resources/stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.d.mts +436 -24
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts +436 -24
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.d.mts +654 -36
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +654 -36
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/src/resources/stores/files.ts +390 -4
- package/src/resources/vector-stores/files.ts +780 -8
- package/src/resources/vector-stores/vector-stores.ts +1193 -35
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -287,7 +287,13 @@ export namespace ScoredVectorStoreFile {
|
|
|
287
287
|
/**
|
|
288
288
|
* metadata of the chunk
|
|
289
289
|
*/
|
|
290
|
-
generated_metadata?:
|
|
290
|
+
generated_metadata?:
|
|
291
|
+
| MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.MarkdownChunkGeneratedMetadata
|
|
292
|
+
| MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.TextChunkGeneratedMetadata
|
|
293
|
+
| MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.PdfChunkGeneratedMetadata
|
|
294
|
+
| MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.CodeChunkGeneratedMetadata
|
|
295
|
+
| MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.AudioChunkGeneratedMetadata
|
|
296
|
+
| null;
|
|
291
297
|
|
|
292
298
|
/**
|
|
293
299
|
* model used for this chunk
|
|
@@ -335,6 +341,98 @@ export namespace ScoredVectorStoreFile {
|
|
|
335
341
|
text: string;
|
|
336
342
|
}
|
|
337
343
|
|
|
344
|
+
export namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk {
|
|
345
|
+
export interface MarkdownChunkGeneratedMetadata {
|
|
346
|
+
type?: 'markdown';
|
|
347
|
+
|
|
348
|
+
file_type?: 'text/markdown';
|
|
349
|
+
|
|
350
|
+
language: string;
|
|
351
|
+
|
|
352
|
+
word_count: number;
|
|
353
|
+
|
|
354
|
+
file_size: number;
|
|
355
|
+
|
|
356
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
357
|
+
|
|
358
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
359
|
+
|
|
360
|
+
[k: string]: unknown;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
export namespace MarkdownChunkGeneratedMetadata {
|
|
364
|
+
export interface ChunkHeading {
|
|
365
|
+
level: number;
|
|
366
|
+
|
|
367
|
+
text: string;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
export interface HeadingContext {
|
|
371
|
+
level: number;
|
|
372
|
+
|
|
373
|
+
text: string;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
export interface TextChunkGeneratedMetadata {
|
|
378
|
+
type?: 'text';
|
|
379
|
+
|
|
380
|
+
file_type?: 'text/plain';
|
|
381
|
+
|
|
382
|
+
language: string;
|
|
383
|
+
|
|
384
|
+
word_count: number;
|
|
385
|
+
|
|
386
|
+
file_size: number;
|
|
387
|
+
|
|
388
|
+
[k: string]: unknown;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
export interface PdfChunkGeneratedMetadata {
|
|
392
|
+
type?: 'pdf';
|
|
393
|
+
|
|
394
|
+
file_type?: 'application/pdf';
|
|
395
|
+
|
|
396
|
+
total_pages: number;
|
|
397
|
+
|
|
398
|
+
total_size: number;
|
|
399
|
+
|
|
400
|
+
[k: string]: unknown;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
export interface CodeChunkGeneratedMetadata {
|
|
404
|
+
type?: 'code';
|
|
405
|
+
|
|
406
|
+
file_type: string;
|
|
407
|
+
|
|
408
|
+
language: string;
|
|
409
|
+
|
|
410
|
+
word_count: number;
|
|
411
|
+
|
|
412
|
+
file_size: number;
|
|
413
|
+
|
|
414
|
+
[k: string]: unknown;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
export interface AudioChunkGeneratedMetadata {
|
|
418
|
+
type?: 'audio';
|
|
419
|
+
|
|
420
|
+
file_type: string;
|
|
421
|
+
|
|
422
|
+
file_size: number;
|
|
423
|
+
|
|
424
|
+
total_duration_seconds: number;
|
|
425
|
+
|
|
426
|
+
sample_rate: number;
|
|
427
|
+
|
|
428
|
+
channels: number;
|
|
429
|
+
|
|
430
|
+
audio_format: number;
|
|
431
|
+
|
|
432
|
+
[k: string]: unknown;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
|
|
338
436
|
/**
|
|
339
437
|
* Scored image chunk for deprecated API.
|
|
340
438
|
*/
|
|
@@ -352,7 +450,13 @@ export namespace ScoredVectorStoreFile {
|
|
|
352
450
|
/**
|
|
353
451
|
* metadata of the chunk
|
|
354
452
|
*/
|
|
355
|
-
generated_metadata?:
|
|
453
|
+
generated_metadata?:
|
|
454
|
+
| MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.MarkdownChunkGeneratedMetadata
|
|
455
|
+
| MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.TextChunkGeneratedMetadata
|
|
456
|
+
| MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.PdfChunkGeneratedMetadata
|
|
457
|
+
| MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.CodeChunkGeneratedMetadata
|
|
458
|
+
| MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.AudioChunkGeneratedMetadata
|
|
459
|
+
| null;
|
|
356
460
|
|
|
357
461
|
/**
|
|
358
462
|
* model used for this chunk
|
|
@@ -406,6 +510,96 @@ export namespace ScoredVectorStoreFile {
|
|
|
406
510
|
}
|
|
407
511
|
|
|
408
512
|
export namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk {
|
|
513
|
+
export interface MarkdownChunkGeneratedMetadata {
|
|
514
|
+
type?: 'markdown';
|
|
515
|
+
|
|
516
|
+
file_type?: 'text/markdown';
|
|
517
|
+
|
|
518
|
+
language: string;
|
|
519
|
+
|
|
520
|
+
word_count: number;
|
|
521
|
+
|
|
522
|
+
file_size: number;
|
|
523
|
+
|
|
524
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
525
|
+
|
|
526
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
527
|
+
|
|
528
|
+
[k: string]: unknown;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
export namespace MarkdownChunkGeneratedMetadata {
|
|
532
|
+
export interface ChunkHeading {
|
|
533
|
+
level: number;
|
|
534
|
+
|
|
535
|
+
text: string;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
export interface HeadingContext {
|
|
539
|
+
level: number;
|
|
540
|
+
|
|
541
|
+
text: string;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
export interface TextChunkGeneratedMetadata {
|
|
546
|
+
type?: 'text';
|
|
547
|
+
|
|
548
|
+
file_type?: 'text/plain';
|
|
549
|
+
|
|
550
|
+
language: string;
|
|
551
|
+
|
|
552
|
+
word_count: number;
|
|
553
|
+
|
|
554
|
+
file_size: number;
|
|
555
|
+
|
|
556
|
+
[k: string]: unknown;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
export interface PdfChunkGeneratedMetadata {
|
|
560
|
+
type?: 'pdf';
|
|
561
|
+
|
|
562
|
+
file_type?: 'application/pdf';
|
|
563
|
+
|
|
564
|
+
total_pages: number;
|
|
565
|
+
|
|
566
|
+
total_size: number;
|
|
567
|
+
|
|
568
|
+
[k: string]: unknown;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
export interface CodeChunkGeneratedMetadata {
|
|
572
|
+
type?: 'code';
|
|
573
|
+
|
|
574
|
+
file_type: string;
|
|
575
|
+
|
|
576
|
+
language: string;
|
|
577
|
+
|
|
578
|
+
word_count: number;
|
|
579
|
+
|
|
580
|
+
file_size: number;
|
|
581
|
+
|
|
582
|
+
[k: string]: unknown;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
export interface AudioChunkGeneratedMetadata {
|
|
586
|
+
type?: 'audio';
|
|
587
|
+
|
|
588
|
+
file_type: string;
|
|
589
|
+
|
|
590
|
+
file_size: number;
|
|
591
|
+
|
|
592
|
+
total_duration_seconds: number;
|
|
593
|
+
|
|
594
|
+
sample_rate: number;
|
|
595
|
+
|
|
596
|
+
channels: number;
|
|
597
|
+
|
|
598
|
+
audio_format: number;
|
|
599
|
+
|
|
600
|
+
[k: string]: unknown;
|
|
601
|
+
}
|
|
602
|
+
|
|
409
603
|
/**
|
|
410
604
|
* The image input specification.
|
|
411
605
|
*/
|
|
@@ -439,7 +633,13 @@ export namespace ScoredVectorStoreFile {
|
|
|
439
633
|
/**
|
|
440
634
|
* metadata of the chunk
|
|
441
635
|
*/
|
|
442
|
-
generated_metadata?:
|
|
636
|
+
generated_metadata?:
|
|
637
|
+
| MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.MarkdownChunkGeneratedMetadata
|
|
638
|
+
| MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.TextChunkGeneratedMetadata
|
|
639
|
+
| MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.PdfChunkGeneratedMetadata
|
|
640
|
+
| MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.CodeChunkGeneratedMetadata
|
|
641
|
+
| MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.AudioChunkGeneratedMetadata
|
|
642
|
+
| null;
|
|
443
643
|
|
|
444
644
|
/**
|
|
445
645
|
* model used for this chunk
|
|
@@ -498,6 +698,96 @@ export namespace ScoredVectorStoreFile {
|
|
|
498
698
|
}
|
|
499
699
|
|
|
500
700
|
export namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk {
|
|
701
|
+
export interface MarkdownChunkGeneratedMetadata {
|
|
702
|
+
type?: 'markdown';
|
|
703
|
+
|
|
704
|
+
file_type?: 'text/markdown';
|
|
705
|
+
|
|
706
|
+
language: string;
|
|
707
|
+
|
|
708
|
+
word_count: number;
|
|
709
|
+
|
|
710
|
+
file_size: number;
|
|
711
|
+
|
|
712
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
713
|
+
|
|
714
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
715
|
+
|
|
716
|
+
[k: string]: unknown;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
export namespace MarkdownChunkGeneratedMetadata {
|
|
720
|
+
export interface ChunkHeading {
|
|
721
|
+
level: number;
|
|
722
|
+
|
|
723
|
+
text: string;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
export interface HeadingContext {
|
|
727
|
+
level: number;
|
|
728
|
+
|
|
729
|
+
text: string;
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
export interface TextChunkGeneratedMetadata {
|
|
734
|
+
type?: 'text';
|
|
735
|
+
|
|
736
|
+
file_type?: 'text/plain';
|
|
737
|
+
|
|
738
|
+
language: string;
|
|
739
|
+
|
|
740
|
+
word_count: number;
|
|
741
|
+
|
|
742
|
+
file_size: number;
|
|
743
|
+
|
|
744
|
+
[k: string]: unknown;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
export interface PdfChunkGeneratedMetadata {
|
|
748
|
+
type?: 'pdf';
|
|
749
|
+
|
|
750
|
+
file_type?: 'application/pdf';
|
|
751
|
+
|
|
752
|
+
total_pages: number;
|
|
753
|
+
|
|
754
|
+
total_size: number;
|
|
755
|
+
|
|
756
|
+
[k: string]: unknown;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
export interface CodeChunkGeneratedMetadata {
|
|
760
|
+
type?: 'code';
|
|
761
|
+
|
|
762
|
+
file_type: string;
|
|
763
|
+
|
|
764
|
+
language: string;
|
|
765
|
+
|
|
766
|
+
word_count: number;
|
|
767
|
+
|
|
768
|
+
file_size: number;
|
|
769
|
+
|
|
770
|
+
[k: string]: unknown;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
export interface AudioChunkGeneratedMetadata {
|
|
774
|
+
type?: 'audio';
|
|
775
|
+
|
|
776
|
+
file_type: string;
|
|
777
|
+
|
|
778
|
+
file_size: number;
|
|
779
|
+
|
|
780
|
+
total_duration_seconds: number;
|
|
781
|
+
|
|
782
|
+
sample_rate: number;
|
|
783
|
+
|
|
784
|
+
channels: number;
|
|
785
|
+
|
|
786
|
+
audio_format: number;
|
|
787
|
+
|
|
788
|
+
[k: string]: unknown;
|
|
789
|
+
}
|
|
790
|
+
|
|
501
791
|
/**
|
|
502
792
|
* The audio input specification.
|
|
503
793
|
*/
|
|
@@ -526,7 +816,13 @@ export namespace ScoredVectorStoreFile {
|
|
|
526
816
|
/**
|
|
527
817
|
* metadata of the chunk
|
|
528
818
|
*/
|
|
529
|
-
generated_metadata?:
|
|
819
|
+
generated_metadata?:
|
|
820
|
+
| MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.MarkdownChunkGeneratedMetadata
|
|
821
|
+
| MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.TextChunkGeneratedMetadata
|
|
822
|
+
| MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.PdfChunkGeneratedMetadata
|
|
823
|
+
| MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.CodeChunkGeneratedMetadata
|
|
824
|
+
| MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.AudioChunkGeneratedMetadata
|
|
825
|
+
| null;
|
|
530
826
|
|
|
531
827
|
/**
|
|
532
828
|
* model used for this chunk
|
|
@@ -580,6 +876,96 @@ export namespace ScoredVectorStoreFile {
|
|
|
580
876
|
}
|
|
581
877
|
|
|
582
878
|
export namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk {
|
|
879
|
+
export interface MarkdownChunkGeneratedMetadata {
|
|
880
|
+
type?: 'markdown';
|
|
881
|
+
|
|
882
|
+
file_type?: 'text/markdown';
|
|
883
|
+
|
|
884
|
+
language: string;
|
|
885
|
+
|
|
886
|
+
word_count: number;
|
|
887
|
+
|
|
888
|
+
file_size: number;
|
|
889
|
+
|
|
890
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
891
|
+
|
|
892
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
893
|
+
|
|
894
|
+
[k: string]: unknown;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
export namespace MarkdownChunkGeneratedMetadata {
|
|
898
|
+
export interface ChunkHeading {
|
|
899
|
+
level: number;
|
|
900
|
+
|
|
901
|
+
text: string;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
export interface HeadingContext {
|
|
905
|
+
level: number;
|
|
906
|
+
|
|
907
|
+
text: string;
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
export interface TextChunkGeneratedMetadata {
|
|
912
|
+
type?: 'text';
|
|
913
|
+
|
|
914
|
+
file_type?: 'text/plain';
|
|
915
|
+
|
|
916
|
+
language: string;
|
|
917
|
+
|
|
918
|
+
word_count: number;
|
|
919
|
+
|
|
920
|
+
file_size: number;
|
|
921
|
+
|
|
922
|
+
[k: string]: unknown;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
export interface PdfChunkGeneratedMetadata {
|
|
926
|
+
type?: 'pdf';
|
|
927
|
+
|
|
928
|
+
file_type?: 'application/pdf';
|
|
929
|
+
|
|
930
|
+
total_pages: number;
|
|
931
|
+
|
|
932
|
+
total_size: number;
|
|
933
|
+
|
|
934
|
+
[k: string]: unknown;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
export interface CodeChunkGeneratedMetadata {
|
|
938
|
+
type?: 'code';
|
|
939
|
+
|
|
940
|
+
file_type: string;
|
|
941
|
+
|
|
942
|
+
language: string;
|
|
943
|
+
|
|
944
|
+
word_count: number;
|
|
945
|
+
|
|
946
|
+
file_size: number;
|
|
947
|
+
|
|
948
|
+
[k: string]: unknown;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
export interface AudioChunkGeneratedMetadata {
|
|
952
|
+
type?: 'audio';
|
|
953
|
+
|
|
954
|
+
file_type: string;
|
|
955
|
+
|
|
956
|
+
file_size: number;
|
|
957
|
+
|
|
958
|
+
total_duration_seconds: number;
|
|
959
|
+
|
|
960
|
+
sample_rate: number;
|
|
961
|
+
|
|
962
|
+
channels: number;
|
|
963
|
+
|
|
964
|
+
audio_format: number;
|
|
965
|
+
|
|
966
|
+
[k: string]: unknown;
|
|
967
|
+
}
|
|
968
|
+
|
|
583
969
|
/**
|
|
584
970
|
* The video input specification.
|
|
585
971
|
*/
|
|
@@ -674,7 +1060,13 @@ export namespace VectorStoreFile {
|
|
|
674
1060
|
/**
|
|
675
1061
|
* metadata of the chunk
|
|
676
1062
|
*/
|
|
677
|
-
generated_metadata?:
|
|
1063
|
+
generated_metadata?:
|
|
1064
|
+
| TextInputChunk.MarkdownChunkGeneratedMetadata
|
|
1065
|
+
| TextInputChunk.TextChunkGeneratedMetadata
|
|
1066
|
+
| TextInputChunk.PdfChunkGeneratedMetadata
|
|
1067
|
+
| TextInputChunk.CodeChunkGeneratedMetadata
|
|
1068
|
+
| TextInputChunk.AudioChunkGeneratedMetadata
|
|
1069
|
+
| null;
|
|
678
1070
|
|
|
679
1071
|
/**
|
|
680
1072
|
* model used for this chunk
|
|
@@ -697,6 +1089,98 @@ export namespace VectorStoreFile {
|
|
|
697
1089
|
text: string;
|
|
698
1090
|
}
|
|
699
1091
|
|
|
1092
|
+
export namespace TextInputChunk {
|
|
1093
|
+
export interface MarkdownChunkGeneratedMetadata {
|
|
1094
|
+
type?: 'markdown';
|
|
1095
|
+
|
|
1096
|
+
file_type?: 'text/markdown';
|
|
1097
|
+
|
|
1098
|
+
language: string;
|
|
1099
|
+
|
|
1100
|
+
word_count: number;
|
|
1101
|
+
|
|
1102
|
+
file_size: number;
|
|
1103
|
+
|
|
1104
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
1105
|
+
|
|
1106
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
1107
|
+
|
|
1108
|
+
[k: string]: unknown;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
export namespace MarkdownChunkGeneratedMetadata {
|
|
1112
|
+
export interface ChunkHeading {
|
|
1113
|
+
level: number;
|
|
1114
|
+
|
|
1115
|
+
text: string;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
export interface HeadingContext {
|
|
1119
|
+
level: number;
|
|
1120
|
+
|
|
1121
|
+
text: string;
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
export interface TextChunkGeneratedMetadata {
|
|
1126
|
+
type?: 'text';
|
|
1127
|
+
|
|
1128
|
+
file_type?: 'text/plain';
|
|
1129
|
+
|
|
1130
|
+
language: string;
|
|
1131
|
+
|
|
1132
|
+
word_count: number;
|
|
1133
|
+
|
|
1134
|
+
file_size: number;
|
|
1135
|
+
|
|
1136
|
+
[k: string]: unknown;
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
export interface PdfChunkGeneratedMetadata {
|
|
1140
|
+
type?: 'pdf';
|
|
1141
|
+
|
|
1142
|
+
file_type?: 'application/pdf';
|
|
1143
|
+
|
|
1144
|
+
total_pages: number;
|
|
1145
|
+
|
|
1146
|
+
total_size: number;
|
|
1147
|
+
|
|
1148
|
+
[k: string]: unknown;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
export interface CodeChunkGeneratedMetadata {
|
|
1152
|
+
type?: 'code';
|
|
1153
|
+
|
|
1154
|
+
file_type: string;
|
|
1155
|
+
|
|
1156
|
+
language: string;
|
|
1157
|
+
|
|
1158
|
+
word_count: number;
|
|
1159
|
+
|
|
1160
|
+
file_size: number;
|
|
1161
|
+
|
|
1162
|
+
[k: string]: unknown;
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
export interface AudioChunkGeneratedMetadata {
|
|
1166
|
+
type?: 'audio';
|
|
1167
|
+
|
|
1168
|
+
file_type: string;
|
|
1169
|
+
|
|
1170
|
+
file_size: number;
|
|
1171
|
+
|
|
1172
|
+
total_duration_seconds: number;
|
|
1173
|
+
|
|
1174
|
+
sample_rate: number;
|
|
1175
|
+
|
|
1176
|
+
channels: number;
|
|
1177
|
+
|
|
1178
|
+
audio_format: number;
|
|
1179
|
+
|
|
1180
|
+
[k: string]: unknown;
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
|
|
700
1184
|
export interface ImageURLInputChunk {
|
|
701
1185
|
/**
|
|
702
1186
|
* position of the chunk in a file
|
|
@@ -711,7 +1195,13 @@ export namespace VectorStoreFile {
|
|
|
711
1195
|
/**
|
|
712
1196
|
* metadata of the chunk
|
|
713
1197
|
*/
|
|
714
|
-
generated_metadata?:
|
|
1198
|
+
generated_metadata?:
|
|
1199
|
+
| ImageURLInputChunk.MarkdownChunkGeneratedMetadata
|
|
1200
|
+
| ImageURLInputChunk.TextChunkGeneratedMetadata
|
|
1201
|
+
| ImageURLInputChunk.PdfChunkGeneratedMetadata
|
|
1202
|
+
| ImageURLInputChunk.CodeChunkGeneratedMetadata
|
|
1203
|
+
| ImageURLInputChunk.AudioChunkGeneratedMetadata
|
|
1204
|
+
| null;
|
|
715
1205
|
|
|
716
1206
|
/**
|
|
717
1207
|
* model used for this chunk
|
|
@@ -740,6 +1230,96 @@ export namespace VectorStoreFile {
|
|
|
740
1230
|
}
|
|
741
1231
|
|
|
742
1232
|
export namespace ImageURLInputChunk {
|
|
1233
|
+
export interface MarkdownChunkGeneratedMetadata {
|
|
1234
|
+
type?: 'markdown';
|
|
1235
|
+
|
|
1236
|
+
file_type?: 'text/markdown';
|
|
1237
|
+
|
|
1238
|
+
language: string;
|
|
1239
|
+
|
|
1240
|
+
word_count: number;
|
|
1241
|
+
|
|
1242
|
+
file_size: number;
|
|
1243
|
+
|
|
1244
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
1245
|
+
|
|
1246
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
1247
|
+
|
|
1248
|
+
[k: string]: unknown;
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
export namespace MarkdownChunkGeneratedMetadata {
|
|
1252
|
+
export interface ChunkHeading {
|
|
1253
|
+
level: number;
|
|
1254
|
+
|
|
1255
|
+
text: string;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
export interface HeadingContext {
|
|
1259
|
+
level: number;
|
|
1260
|
+
|
|
1261
|
+
text: string;
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
export interface TextChunkGeneratedMetadata {
|
|
1266
|
+
type?: 'text';
|
|
1267
|
+
|
|
1268
|
+
file_type?: 'text/plain';
|
|
1269
|
+
|
|
1270
|
+
language: string;
|
|
1271
|
+
|
|
1272
|
+
word_count: number;
|
|
1273
|
+
|
|
1274
|
+
file_size: number;
|
|
1275
|
+
|
|
1276
|
+
[k: string]: unknown;
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
export interface PdfChunkGeneratedMetadata {
|
|
1280
|
+
type?: 'pdf';
|
|
1281
|
+
|
|
1282
|
+
file_type?: 'application/pdf';
|
|
1283
|
+
|
|
1284
|
+
total_pages: number;
|
|
1285
|
+
|
|
1286
|
+
total_size: number;
|
|
1287
|
+
|
|
1288
|
+
[k: string]: unknown;
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
export interface CodeChunkGeneratedMetadata {
|
|
1292
|
+
type?: 'code';
|
|
1293
|
+
|
|
1294
|
+
file_type: string;
|
|
1295
|
+
|
|
1296
|
+
language: string;
|
|
1297
|
+
|
|
1298
|
+
word_count: number;
|
|
1299
|
+
|
|
1300
|
+
file_size: number;
|
|
1301
|
+
|
|
1302
|
+
[k: string]: unknown;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
export interface AudioChunkGeneratedMetadata {
|
|
1306
|
+
type?: 'audio';
|
|
1307
|
+
|
|
1308
|
+
file_type: string;
|
|
1309
|
+
|
|
1310
|
+
file_size: number;
|
|
1311
|
+
|
|
1312
|
+
total_duration_seconds: number;
|
|
1313
|
+
|
|
1314
|
+
sample_rate: number;
|
|
1315
|
+
|
|
1316
|
+
channels: number;
|
|
1317
|
+
|
|
1318
|
+
audio_format: number;
|
|
1319
|
+
|
|
1320
|
+
[k: string]: unknown;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
743
1323
|
/**
|
|
744
1324
|
* The image input specification.
|
|
745
1325
|
*/
|
|
@@ -770,7 +1350,13 @@ export namespace VectorStoreFile {
|
|
|
770
1350
|
/**
|
|
771
1351
|
* metadata of the chunk
|
|
772
1352
|
*/
|
|
773
|
-
generated_metadata?:
|
|
1353
|
+
generated_metadata?:
|
|
1354
|
+
| AudioURLInputChunk.MarkdownChunkGeneratedMetadata
|
|
1355
|
+
| AudioURLInputChunk.TextChunkGeneratedMetadata
|
|
1356
|
+
| AudioURLInputChunk.PdfChunkGeneratedMetadata
|
|
1357
|
+
| AudioURLInputChunk.CodeChunkGeneratedMetadata
|
|
1358
|
+
| AudioURLInputChunk.AudioChunkGeneratedMetadata
|
|
1359
|
+
| null;
|
|
774
1360
|
|
|
775
1361
|
/**
|
|
776
1362
|
* model used for this chunk
|
|
@@ -804,6 +1390,96 @@ export namespace VectorStoreFile {
|
|
|
804
1390
|
}
|
|
805
1391
|
|
|
806
1392
|
export namespace AudioURLInputChunk {
|
|
1393
|
+
export interface MarkdownChunkGeneratedMetadata {
|
|
1394
|
+
type?: 'markdown';
|
|
1395
|
+
|
|
1396
|
+
file_type?: 'text/markdown';
|
|
1397
|
+
|
|
1398
|
+
language: string;
|
|
1399
|
+
|
|
1400
|
+
word_count: number;
|
|
1401
|
+
|
|
1402
|
+
file_size: number;
|
|
1403
|
+
|
|
1404
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
1405
|
+
|
|
1406
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
1407
|
+
|
|
1408
|
+
[k: string]: unknown;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
export namespace MarkdownChunkGeneratedMetadata {
|
|
1412
|
+
export interface ChunkHeading {
|
|
1413
|
+
level: number;
|
|
1414
|
+
|
|
1415
|
+
text: string;
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
export interface HeadingContext {
|
|
1419
|
+
level: number;
|
|
1420
|
+
|
|
1421
|
+
text: string;
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
export interface TextChunkGeneratedMetadata {
|
|
1426
|
+
type?: 'text';
|
|
1427
|
+
|
|
1428
|
+
file_type?: 'text/plain';
|
|
1429
|
+
|
|
1430
|
+
language: string;
|
|
1431
|
+
|
|
1432
|
+
word_count: number;
|
|
1433
|
+
|
|
1434
|
+
file_size: number;
|
|
1435
|
+
|
|
1436
|
+
[k: string]: unknown;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
export interface PdfChunkGeneratedMetadata {
|
|
1440
|
+
type?: 'pdf';
|
|
1441
|
+
|
|
1442
|
+
file_type?: 'application/pdf';
|
|
1443
|
+
|
|
1444
|
+
total_pages: number;
|
|
1445
|
+
|
|
1446
|
+
total_size: number;
|
|
1447
|
+
|
|
1448
|
+
[k: string]: unknown;
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
export interface CodeChunkGeneratedMetadata {
|
|
1452
|
+
type?: 'code';
|
|
1453
|
+
|
|
1454
|
+
file_type: string;
|
|
1455
|
+
|
|
1456
|
+
language: string;
|
|
1457
|
+
|
|
1458
|
+
word_count: number;
|
|
1459
|
+
|
|
1460
|
+
file_size: number;
|
|
1461
|
+
|
|
1462
|
+
[k: string]: unknown;
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
export interface AudioChunkGeneratedMetadata {
|
|
1466
|
+
type?: 'audio';
|
|
1467
|
+
|
|
1468
|
+
file_type: string;
|
|
1469
|
+
|
|
1470
|
+
file_size: number;
|
|
1471
|
+
|
|
1472
|
+
total_duration_seconds: number;
|
|
1473
|
+
|
|
1474
|
+
sample_rate: number;
|
|
1475
|
+
|
|
1476
|
+
channels: number;
|
|
1477
|
+
|
|
1478
|
+
audio_format: number;
|
|
1479
|
+
|
|
1480
|
+
[k: string]: unknown;
|
|
1481
|
+
}
|
|
1482
|
+
|
|
807
1483
|
/**
|
|
808
1484
|
* The audio input specification.
|
|
809
1485
|
*/
|
|
@@ -829,7 +1505,13 @@ export namespace VectorStoreFile {
|
|
|
829
1505
|
/**
|
|
830
1506
|
* metadata of the chunk
|
|
831
1507
|
*/
|
|
832
|
-
generated_metadata?:
|
|
1508
|
+
generated_metadata?:
|
|
1509
|
+
| VideoURLInputChunk.MarkdownChunkGeneratedMetadata
|
|
1510
|
+
| VideoURLInputChunk.TextChunkGeneratedMetadata
|
|
1511
|
+
| VideoURLInputChunk.PdfChunkGeneratedMetadata
|
|
1512
|
+
| VideoURLInputChunk.CodeChunkGeneratedMetadata
|
|
1513
|
+
| VideoURLInputChunk.AudioChunkGeneratedMetadata
|
|
1514
|
+
| null;
|
|
833
1515
|
|
|
834
1516
|
/**
|
|
835
1517
|
* model used for this chunk
|
|
@@ -858,6 +1540,96 @@ export namespace VectorStoreFile {
|
|
|
858
1540
|
}
|
|
859
1541
|
|
|
860
1542
|
export namespace VideoURLInputChunk {
|
|
1543
|
+
export interface MarkdownChunkGeneratedMetadata {
|
|
1544
|
+
type?: 'markdown';
|
|
1545
|
+
|
|
1546
|
+
file_type?: 'text/markdown';
|
|
1547
|
+
|
|
1548
|
+
language: string;
|
|
1549
|
+
|
|
1550
|
+
word_count: number;
|
|
1551
|
+
|
|
1552
|
+
file_size: number;
|
|
1553
|
+
|
|
1554
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
1555
|
+
|
|
1556
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
1557
|
+
|
|
1558
|
+
[k: string]: unknown;
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
export namespace MarkdownChunkGeneratedMetadata {
|
|
1562
|
+
export interface ChunkHeading {
|
|
1563
|
+
level: number;
|
|
1564
|
+
|
|
1565
|
+
text: string;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
export interface HeadingContext {
|
|
1569
|
+
level: number;
|
|
1570
|
+
|
|
1571
|
+
text: string;
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
export interface TextChunkGeneratedMetadata {
|
|
1576
|
+
type?: 'text';
|
|
1577
|
+
|
|
1578
|
+
file_type?: 'text/plain';
|
|
1579
|
+
|
|
1580
|
+
language: string;
|
|
1581
|
+
|
|
1582
|
+
word_count: number;
|
|
1583
|
+
|
|
1584
|
+
file_size: number;
|
|
1585
|
+
|
|
1586
|
+
[k: string]: unknown;
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
export interface PdfChunkGeneratedMetadata {
|
|
1590
|
+
type?: 'pdf';
|
|
1591
|
+
|
|
1592
|
+
file_type?: 'application/pdf';
|
|
1593
|
+
|
|
1594
|
+
total_pages: number;
|
|
1595
|
+
|
|
1596
|
+
total_size: number;
|
|
1597
|
+
|
|
1598
|
+
[k: string]: unknown;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
export interface CodeChunkGeneratedMetadata {
|
|
1602
|
+
type?: 'code';
|
|
1603
|
+
|
|
1604
|
+
file_type: string;
|
|
1605
|
+
|
|
1606
|
+
language: string;
|
|
1607
|
+
|
|
1608
|
+
word_count: number;
|
|
1609
|
+
|
|
1610
|
+
file_size: number;
|
|
1611
|
+
|
|
1612
|
+
[k: string]: unknown;
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
export interface AudioChunkGeneratedMetadata {
|
|
1616
|
+
type?: 'audio';
|
|
1617
|
+
|
|
1618
|
+
file_type: string;
|
|
1619
|
+
|
|
1620
|
+
file_size: number;
|
|
1621
|
+
|
|
1622
|
+
total_duration_seconds: number;
|
|
1623
|
+
|
|
1624
|
+
sample_rate: number;
|
|
1625
|
+
|
|
1626
|
+
channels: number;
|
|
1627
|
+
|
|
1628
|
+
audio_format: number;
|
|
1629
|
+
|
|
1630
|
+
[k: string]: unknown;
|
|
1631
|
+
}
|
|
1632
|
+
|
|
861
1633
|
/**
|
|
862
1634
|
* The video input specification.
|
|
863
1635
|
*/
|