@mixedbread/sdk 0.28.1 → 0.30.0
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 +39 -0
- package/bin/cli +4 -10
- package/package.json +1 -1
- package/resources/data-sources/connectors.d.mts +4 -4
- package/resources/data-sources/connectors.d.mts.map +1 -1
- package/resources/data-sources/connectors.d.ts +4 -4
- package/resources/data-sources/connectors.d.ts.map +1 -1
- package/resources/vector-stores/files.d.mts +301 -46
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts +301 -46
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +10 -35
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +10 -35
- package/resources/vector-stores/files.mjs.map +1 -1
- package/resources/vector-stores/vector-stores.d.mts +581 -57
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +581 -57
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js +15 -41
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +15 -41
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/src/resources/data-sources/connectors.ts +4 -4
- package/src/resources/vector-stores/files.ts +352 -49
- package/src/resources/vector-stores/vector-stores.ts +683 -57
- 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
|
@@ -8,77 +8,51 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
8
8
|
export declare class VectorStores extends APIResource {
|
|
9
9
|
files: FilesAPI.Files;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* DEPRECATED: Use POST /stores instead
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
* description, and metadata.
|
|
15
|
-
*
|
|
16
|
-
* Returns: VectorStore: The response containing the created vector store details.
|
|
13
|
+
* @deprecated
|
|
17
14
|
*/
|
|
18
15
|
create(body: VectorStoreCreateParams, options?: RequestOptions): APIPromise<VectorStore>;
|
|
19
16
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* Args: vector_store_identifier: The ID or name of the vector store to retrieve.
|
|
17
|
+
* DEPRECATED: Use GET /stores/{store_identifier} instead
|
|
23
18
|
*
|
|
24
|
-
*
|
|
19
|
+
* @deprecated
|
|
25
20
|
*/
|
|
26
21
|
retrieve(vectorStoreIdentifier: string, options?: RequestOptions): APIPromise<VectorStore>;
|
|
27
22
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* Args: vector_store_identifier: The ID or name of the vector store to update.
|
|
31
|
-
* vector_store_update: VectorStoreCreate object containing the name, description,
|
|
32
|
-
* and metadata.
|
|
23
|
+
* DEPRECATED: Use PUT /stores/{store_identifier} instead
|
|
33
24
|
*
|
|
34
|
-
*
|
|
25
|
+
* @deprecated
|
|
35
26
|
*/
|
|
36
27
|
update(vectorStoreIdentifier: string, body: VectorStoreUpdateParams, options?: RequestOptions): APIPromise<VectorStore>;
|
|
37
28
|
/**
|
|
38
|
-
*
|
|
29
|
+
* DEPRECATED: Use GET /stores instead
|
|
39
30
|
*
|
|
40
|
-
*
|
|
41
|
-
* vector stores.
|
|
42
|
-
*
|
|
43
|
-
* Returns: VectorStoreListResponse: The list of vector stores.
|
|
31
|
+
* @deprecated
|
|
44
32
|
*/
|
|
45
33
|
list(query?: VectorStoreListParams | null | undefined, options?: RequestOptions): PagePromise<VectorStoresCursor, VectorStore>;
|
|
46
34
|
/**
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* Args: vector_store_identifier: The ID or name of the vector store to delete.
|
|
35
|
+
* DEPRECATED: Use DELETE /stores/{store_identifier} instead
|
|
50
36
|
*
|
|
51
|
-
*
|
|
37
|
+
* @deprecated
|
|
52
38
|
*/
|
|
53
39
|
delete(vectorStoreIdentifier: string, options?: RequestOptions): APIPromise<VectorStoreDeleteResponse>;
|
|
54
40
|
/**
|
|
55
|
-
*
|
|
41
|
+
* DEPRECATED: Use POST /stores/question-answering instead
|
|
42
|
+
*
|
|
43
|
+
* @deprecated
|
|
56
44
|
*/
|
|
57
45
|
questionAnswering(body: VectorStoreQuestionAnsweringParams, options?: RequestOptions): APIPromise<VectorStoreQuestionAnsweringResponse>;
|
|
58
46
|
/**
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* This endpoint searches through vector store chunks using semantic similarity
|
|
62
|
-
* matching. It supports complex search queries with filters and returns
|
|
63
|
-
* relevance-scored results.
|
|
64
|
-
*
|
|
65
|
-
* Args: search_params: Search configuration including: - query text or
|
|
66
|
-
* embeddings - vector_store_ids: List of vector stores to search - file_ids:
|
|
67
|
-
* Optional list of file IDs to filter chunks by (or tuple of list and condition
|
|
68
|
-
* operator) - metadata filters - pagination parameters - sorting preferences
|
|
69
|
-
* \_state: API state dependency \_ctx: Service context dependency
|
|
70
|
-
*
|
|
71
|
-
* Returns: VectorStoreSearchChunkResponse containing: - List of matched chunks
|
|
72
|
-
* with relevance scores - Pagination details including total result count
|
|
47
|
+
* DEPRECATED: Use POST /stores/search instead
|
|
73
48
|
*
|
|
74
|
-
*
|
|
75
|
-
* (404): If no vector stores are found to search
|
|
49
|
+
* @deprecated
|
|
76
50
|
*/
|
|
77
51
|
search(body: VectorStoreSearchParams, options?: RequestOptions): APIPromise<VectorStoreSearchResponse>;
|
|
78
52
|
}
|
|
79
53
|
export type VectorStoresCursor = Cursor<VectorStore>;
|
|
80
54
|
/**
|
|
81
|
-
* Represents an expiration policy for a
|
|
55
|
+
* Represents an expiration policy for a store.
|
|
82
56
|
*/
|
|
83
57
|
export interface ExpiresAfter {
|
|
84
58
|
/**
|
|
@@ -86,7 +60,7 @@ export interface ExpiresAfter {
|
|
|
86
60
|
*/
|
|
87
61
|
anchor?: 'last_active_at';
|
|
88
62
|
/**
|
|
89
|
-
* Number of days after which the
|
|
63
|
+
* Number of days after which the store expires
|
|
90
64
|
*/
|
|
91
65
|
days?: number;
|
|
92
66
|
}
|
|
@@ -122,9 +96,9 @@ export interface ScoredAudioURLInputChunk {
|
|
|
122
96
|
*/
|
|
123
97
|
filename: string;
|
|
124
98
|
/**
|
|
125
|
-
*
|
|
99
|
+
* store id
|
|
126
100
|
*/
|
|
127
|
-
|
|
101
|
+
store_id: string;
|
|
128
102
|
/**
|
|
129
103
|
* file metadata
|
|
130
104
|
*/
|
|
@@ -193,9 +167,9 @@ export interface ScoredImageURLInputChunk {
|
|
|
193
167
|
*/
|
|
194
168
|
filename: string;
|
|
195
169
|
/**
|
|
196
|
-
*
|
|
170
|
+
* store id
|
|
197
171
|
*/
|
|
198
|
-
|
|
172
|
+
store_id: string;
|
|
199
173
|
/**
|
|
200
174
|
* file metadata
|
|
201
175
|
*/
|
|
@@ -264,9 +238,9 @@ export interface ScoredTextInputChunk {
|
|
|
264
238
|
*/
|
|
265
239
|
filename: string;
|
|
266
240
|
/**
|
|
267
|
-
*
|
|
241
|
+
* store id
|
|
268
242
|
*/
|
|
269
|
-
|
|
243
|
+
store_id: string;
|
|
270
244
|
/**
|
|
271
245
|
* file metadata
|
|
272
246
|
*/
|
|
@@ -316,9 +290,9 @@ export interface ScoredVideoURLInputChunk {
|
|
|
316
290
|
*/
|
|
317
291
|
filename: string;
|
|
318
292
|
/**
|
|
319
|
-
*
|
|
293
|
+
* store id
|
|
320
294
|
*/
|
|
321
|
-
|
|
295
|
+
store_id: string;
|
|
322
296
|
/**
|
|
323
297
|
* file metadata
|
|
324
298
|
*/
|
|
@@ -380,7 +354,7 @@ export interface VectorStore {
|
|
|
380
354
|
*/
|
|
381
355
|
file_counts?: VectorStore.FileCounts;
|
|
382
356
|
/**
|
|
383
|
-
* Represents an expiration policy for a
|
|
357
|
+
* Represents an expiration policy for a store.
|
|
384
358
|
*/
|
|
385
359
|
expires_after?: ExpiresAfter | null;
|
|
386
360
|
/**
|
|
@@ -496,7 +470,282 @@ export interface VectorStoreQuestionAnsweringResponse {
|
|
|
496
470
|
/**
|
|
497
471
|
* Source documents used to generate the answer
|
|
498
472
|
*/
|
|
499
|
-
sources?: Array<
|
|
473
|
+
sources?: Array<VectorStoreQuestionAnsweringResponse.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk | VectorStoreQuestionAnsweringResponse.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk | VectorStoreQuestionAnsweringResponse.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk | VectorStoreQuestionAnsweringResponse.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk>;
|
|
474
|
+
}
|
|
475
|
+
export declare namespace VectorStoreQuestionAnsweringResponse {
|
|
476
|
+
/**
|
|
477
|
+
* Scored text chunk for deprecated API.
|
|
478
|
+
*/
|
|
479
|
+
interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk {
|
|
480
|
+
/**
|
|
481
|
+
* position of the chunk in a file
|
|
482
|
+
*/
|
|
483
|
+
chunk_index: number;
|
|
484
|
+
/**
|
|
485
|
+
* mime type of the chunk
|
|
486
|
+
*/
|
|
487
|
+
mime_type?: string;
|
|
488
|
+
/**
|
|
489
|
+
* metadata of the chunk
|
|
490
|
+
*/
|
|
491
|
+
generated_metadata?: {
|
|
492
|
+
[key: string]: unknown;
|
|
493
|
+
} | null;
|
|
494
|
+
/**
|
|
495
|
+
* model used for this chunk
|
|
496
|
+
*/
|
|
497
|
+
model?: string | null;
|
|
498
|
+
/**
|
|
499
|
+
* score of the chunk
|
|
500
|
+
*/
|
|
501
|
+
score: number;
|
|
502
|
+
/**
|
|
503
|
+
* file id
|
|
504
|
+
*/
|
|
505
|
+
file_id: string;
|
|
506
|
+
/**
|
|
507
|
+
* filename
|
|
508
|
+
*/
|
|
509
|
+
filename: string;
|
|
510
|
+
/**
|
|
511
|
+
* store id
|
|
512
|
+
*/
|
|
513
|
+
vector_store_id: string;
|
|
514
|
+
/**
|
|
515
|
+
* file metadata
|
|
516
|
+
*/
|
|
517
|
+
metadata?: unknown;
|
|
518
|
+
/**
|
|
519
|
+
* Input type identifier
|
|
520
|
+
*/
|
|
521
|
+
type?: 'text';
|
|
522
|
+
/**
|
|
523
|
+
* The offset of the text in the file relative to the start of the file.
|
|
524
|
+
*/
|
|
525
|
+
offset?: number;
|
|
526
|
+
/**
|
|
527
|
+
* Text content to process
|
|
528
|
+
*/
|
|
529
|
+
text: string;
|
|
530
|
+
}
|
|
531
|
+
/**
|
|
532
|
+
* Scored image chunk for deprecated API.
|
|
533
|
+
*/
|
|
534
|
+
interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk {
|
|
535
|
+
/**
|
|
536
|
+
* position of the chunk in a file
|
|
537
|
+
*/
|
|
538
|
+
chunk_index: number;
|
|
539
|
+
/**
|
|
540
|
+
* mime type of the chunk
|
|
541
|
+
*/
|
|
542
|
+
mime_type?: string;
|
|
543
|
+
/**
|
|
544
|
+
* metadata of the chunk
|
|
545
|
+
*/
|
|
546
|
+
generated_metadata?: {
|
|
547
|
+
[key: string]: unknown;
|
|
548
|
+
} | null;
|
|
549
|
+
/**
|
|
550
|
+
* model used for this chunk
|
|
551
|
+
*/
|
|
552
|
+
model?: string | null;
|
|
553
|
+
/**
|
|
554
|
+
* score of the chunk
|
|
555
|
+
*/
|
|
556
|
+
score: number;
|
|
557
|
+
/**
|
|
558
|
+
* file id
|
|
559
|
+
*/
|
|
560
|
+
file_id: string;
|
|
561
|
+
/**
|
|
562
|
+
* filename
|
|
563
|
+
*/
|
|
564
|
+
filename: string;
|
|
565
|
+
/**
|
|
566
|
+
* store id
|
|
567
|
+
*/
|
|
568
|
+
vector_store_id: string;
|
|
569
|
+
/**
|
|
570
|
+
* file metadata
|
|
571
|
+
*/
|
|
572
|
+
metadata?: unknown;
|
|
573
|
+
/**
|
|
574
|
+
* Input type identifier
|
|
575
|
+
*/
|
|
576
|
+
type?: 'image_url';
|
|
577
|
+
/**
|
|
578
|
+
* ocr text of the image
|
|
579
|
+
*/
|
|
580
|
+
ocr_text?: string | null;
|
|
581
|
+
/**
|
|
582
|
+
* summary of the image
|
|
583
|
+
*/
|
|
584
|
+
summary?: string | null;
|
|
585
|
+
/**
|
|
586
|
+
* The image input specification.
|
|
587
|
+
*/
|
|
588
|
+
image_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.ImageURL;
|
|
589
|
+
}
|
|
590
|
+
namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk {
|
|
591
|
+
/**
|
|
592
|
+
* The image input specification.
|
|
593
|
+
*/
|
|
594
|
+
interface ImageURL {
|
|
595
|
+
/**
|
|
596
|
+
* The image URL. Can be either a URL or a Data URI.
|
|
597
|
+
*/
|
|
598
|
+
url: string;
|
|
599
|
+
/**
|
|
600
|
+
* The image format/mimetype
|
|
601
|
+
*/
|
|
602
|
+
format?: string;
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
606
|
+
* Scored audio chunk for deprecated API.
|
|
607
|
+
*/
|
|
608
|
+
interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk {
|
|
609
|
+
/**
|
|
610
|
+
* position of the chunk in a file
|
|
611
|
+
*/
|
|
612
|
+
chunk_index: number;
|
|
613
|
+
/**
|
|
614
|
+
* mime type of the chunk
|
|
615
|
+
*/
|
|
616
|
+
mime_type?: string;
|
|
617
|
+
/**
|
|
618
|
+
* metadata of the chunk
|
|
619
|
+
*/
|
|
620
|
+
generated_metadata?: {
|
|
621
|
+
[key: string]: unknown;
|
|
622
|
+
} | null;
|
|
623
|
+
/**
|
|
624
|
+
* model used for this chunk
|
|
625
|
+
*/
|
|
626
|
+
model?: string | null;
|
|
627
|
+
/**
|
|
628
|
+
* score of the chunk
|
|
629
|
+
*/
|
|
630
|
+
score: number;
|
|
631
|
+
/**
|
|
632
|
+
* file id
|
|
633
|
+
*/
|
|
634
|
+
file_id: string;
|
|
635
|
+
/**
|
|
636
|
+
* filename
|
|
637
|
+
*/
|
|
638
|
+
filename: string;
|
|
639
|
+
/**
|
|
640
|
+
* store id
|
|
641
|
+
*/
|
|
642
|
+
vector_store_id: string;
|
|
643
|
+
/**
|
|
644
|
+
* file metadata
|
|
645
|
+
*/
|
|
646
|
+
metadata?: unknown;
|
|
647
|
+
/**
|
|
648
|
+
* Input type identifier
|
|
649
|
+
*/
|
|
650
|
+
type?: 'audio_url';
|
|
651
|
+
/**
|
|
652
|
+
* speech recognition (sr) text of the audio
|
|
653
|
+
*/
|
|
654
|
+
transcription?: string | null;
|
|
655
|
+
/**
|
|
656
|
+
* summary of the audio
|
|
657
|
+
*/
|
|
658
|
+
summary?: string | null;
|
|
659
|
+
/**
|
|
660
|
+
* The audio input specification.
|
|
661
|
+
*/
|
|
662
|
+
audio_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.AudioURL;
|
|
663
|
+
/**
|
|
664
|
+
* The sampling rate of the audio.
|
|
665
|
+
*/
|
|
666
|
+
sampling_rate: number;
|
|
667
|
+
}
|
|
668
|
+
namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk {
|
|
669
|
+
/**
|
|
670
|
+
* The audio input specification.
|
|
671
|
+
*/
|
|
672
|
+
interface AudioURL {
|
|
673
|
+
/**
|
|
674
|
+
* The audio URL. Can be either a URL or a Data URI.
|
|
675
|
+
*/
|
|
676
|
+
url: string;
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
* Scored video chunk for deprecated API.
|
|
681
|
+
*/
|
|
682
|
+
interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk {
|
|
683
|
+
/**
|
|
684
|
+
* position of the chunk in a file
|
|
685
|
+
*/
|
|
686
|
+
chunk_index: number;
|
|
687
|
+
/**
|
|
688
|
+
* mime type of the chunk
|
|
689
|
+
*/
|
|
690
|
+
mime_type?: string;
|
|
691
|
+
/**
|
|
692
|
+
* metadata of the chunk
|
|
693
|
+
*/
|
|
694
|
+
generated_metadata?: {
|
|
695
|
+
[key: string]: unknown;
|
|
696
|
+
} | null;
|
|
697
|
+
/**
|
|
698
|
+
* model used for this chunk
|
|
699
|
+
*/
|
|
700
|
+
model?: string | null;
|
|
701
|
+
/**
|
|
702
|
+
* score of the chunk
|
|
703
|
+
*/
|
|
704
|
+
score: number;
|
|
705
|
+
/**
|
|
706
|
+
* file id
|
|
707
|
+
*/
|
|
708
|
+
file_id: string;
|
|
709
|
+
/**
|
|
710
|
+
* filename
|
|
711
|
+
*/
|
|
712
|
+
filename: string;
|
|
713
|
+
/**
|
|
714
|
+
* store id
|
|
715
|
+
*/
|
|
716
|
+
vector_store_id: string;
|
|
717
|
+
/**
|
|
718
|
+
* file metadata
|
|
719
|
+
*/
|
|
720
|
+
metadata?: unknown;
|
|
721
|
+
/**
|
|
722
|
+
* Input type identifier
|
|
723
|
+
*/
|
|
724
|
+
type?: 'video_url';
|
|
725
|
+
/**
|
|
726
|
+
* speech recognition (sr) text of the video
|
|
727
|
+
*/
|
|
728
|
+
transcription?: string | null;
|
|
729
|
+
/**
|
|
730
|
+
* summary of the video
|
|
731
|
+
*/
|
|
732
|
+
summary?: string | null;
|
|
733
|
+
/**
|
|
734
|
+
* The video input specification.
|
|
735
|
+
*/
|
|
736
|
+
video_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.VideoURL;
|
|
737
|
+
}
|
|
738
|
+
namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk {
|
|
739
|
+
/**
|
|
740
|
+
* The video input specification.
|
|
741
|
+
*/
|
|
742
|
+
interface VideoURL {
|
|
743
|
+
/**
|
|
744
|
+
* The video URL. Can be either a URL or a Data URI.
|
|
745
|
+
*/
|
|
746
|
+
url: string;
|
|
747
|
+
}
|
|
748
|
+
}
|
|
500
749
|
}
|
|
501
750
|
export interface VectorStoreSearchResponse {
|
|
502
751
|
/**
|
|
@@ -506,7 +755,282 @@ export interface VectorStoreSearchResponse {
|
|
|
506
755
|
/**
|
|
507
756
|
* The list of scored vector store file chunks
|
|
508
757
|
*/
|
|
509
|
-
data: Array<
|
|
758
|
+
data: Array<VectorStoreSearchResponse.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk | VectorStoreSearchResponse.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk | VectorStoreSearchResponse.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk | VectorStoreSearchResponse.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk>;
|
|
759
|
+
}
|
|
760
|
+
export declare namespace VectorStoreSearchResponse {
|
|
761
|
+
/**
|
|
762
|
+
* Scored text chunk for deprecated API.
|
|
763
|
+
*/
|
|
764
|
+
interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk {
|
|
765
|
+
/**
|
|
766
|
+
* position of the chunk in a file
|
|
767
|
+
*/
|
|
768
|
+
chunk_index: number;
|
|
769
|
+
/**
|
|
770
|
+
* mime type of the chunk
|
|
771
|
+
*/
|
|
772
|
+
mime_type?: string;
|
|
773
|
+
/**
|
|
774
|
+
* metadata of the chunk
|
|
775
|
+
*/
|
|
776
|
+
generated_metadata?: {
|
|
777
|
+
[key: string]: unknown;
|
|
778
|
+
} | null;
|
|
779
|
+
/**
|
|
780
|
+
* model used for this chunk
|
|
781
|
+
*/
|
|
782
|
+
model?: string | null;
|
|
783
|
+
/**
|
|
784
|
+
* score of the chunk
|
|
785
|
+
*/
|
|
786
|
+
score: number;
|
|
787
|
+
/**
|
|
788
|
+
* file id
|
|
789
|
+
*/
|
|
790
|
+
file_id: string;
|
|
791
|
+
/**
|
|
792
|
+
* filename
|
|
793
|
+
*/
|
|
794
|
+
filename: string;
|
|
795
|
+
/**
|
|
796
|
+
* store id
|
|
797
|
+
*/
|
|
798
|
+
vector_store_id: string;
|
|
799
|
+
/**
|
|
800
|
+
* file metadata
|
|
801
|
+
*/
|
|
802
|
+
metadata?: unknown;
|
|
803
|
+
/**
|
|
804
|
+
* Input type identifier
|
|
805
|
+
*/
|
|
806
|
+
type?: 'text';
|
|
807
|
+
/**
|
|
808
|
+
* The offset of the text in the file relative to the start of the file.
|
|
809
|
+
*/
|
|
810
|
+
offset?: number;
|
|
811
|
+
/**
|
|
812
|
+
* Text content to process
|
|
813
|
+
*/
|
|
814
|
+
text: string;
|
|
815
|
+
}
|
|
816
|
+
/**
|
|
817
|
+
* Scored image chunk for deprecated API.
|
|
818
|
+
*/
|
|
819
|
+
interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk {
|
|
820
|
+
/**
|
|
821
|
+
* position of the chunk in a file
|
|
822
|
+
*/
|
|
823
|
+
chunk_index: number;
|
|
824
|
+
/**
|
|
825
|
+
* mime type of the chunk
|
|
826
|
+
*/
|
|
827
|
+
mime_type?: string;
|
|
828
|
+
/**
|
|
829
|
+
* metadata of the chunk
|
|
830
|
+
*/
|
|
831
|
+
generated_metadata?: {
|
|
832
|
+
[key: string]: unknown;
|
|
833
|
+
} | null;
|
|
834
|
+
/**
|
|
835
|
+
* model used for this chunk
|
|
836
|
+
*/
|
|
837
|
+
model?: string | null;
|
|
838
|
+
/**
|
|
839
|
+
* score of the chunk
|
|
840
|
+
*/
|
|
841
|
+
score: number;
|
|
842
|
+
/**
|
|
843
|
+
* file id
|
|
844
|
+
*/
|
|
845
|
+
file_id: string;
|
|
846
|
+
/**
|
|
847
|
+
* filename
|
|
848
|
+
*/
|
|
849
|
+
filename: string;
|
|
850
|
+
/**
|
|
851
|
+
* store id
|
|
852
|
+
*/
|
|
853
|
+
vector_store_id: string;
|
|
854
|
+
/**
|
|
855
|
+
* file metadata
|
|
856
|
+
*/
|
|
857
|
+
metadata?: unknown;
|
|
858
|
+
/**
|
|
859
|
+
* Input type identifier
|
|
860
|
+
*/
|
|
861
|
+
type?: 'image_url';
|
|
862
|
+
/**
|
|
863
|
+
* ocr text of the image
|
|
864
|
+
*/
|
|
865
|
+
ocr_text?: string | null;
|
|
866
|
+
/**
|
|
867
|
+
* summary of the image
|
|
868
|
+
*/
|
|
869
|
+
summary?: string | null;
|
|
870
|
+
/**
|
|
871
|
+
* The image input specification.
|
|
872
|
+
*/
|
|
873
|
+
image_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.ImageURL;
|
|
874
|
+
}
|
|
875
|
+
namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk {
|
|
876
|
+
/**
|
|
877
|
+
* The image input specification.
|
|
878
|
+
*/
|
|
879
|
+
interface ImageURL {
|
|
880
|
+
/**
|
|
881
|
+
* The image URL. Can be either a URL or a Data URI.
|
|
882
|
+
*/
|
|
883
|
+
url: string;
|
|
884
|
+
/**
|
|
885
|
+
* The image format/mimetype
|
|
886
|
+
*/
|
|
887
|
+
format?: string;
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
/**
|
|
891
|
+
* Scored audio chunk for deprecated API.
|
|
892
|
+
*/
|
|
893
|
+
interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk {
|
|
894
|
+
/**
|
|
895
|
+
* position of the chunk in a file
|
|
896
|
+
*/
|
|
897
|
+
chunk_index: number;
|
|
898
|
+
/**
|
|
899
|
+
* mime type of the chunk
|
|
900
|
+
*/
|
|
901
|
+
mime_type?: string;
|
|
902
|
+
/**
|
|
903
|
+
* metadata of the chunk
|
|
904
|
+
*/
|
|
905
|
+
generated_metadata?: {
|
|
906
|
+
[key: string]: unknown;
|
|
907
|
+
} | null;
|
|
908
|
+
/**
|
|
909
|
+
* model used for this chunk
|
|
910
|
+
*/
|
|
911
|
+
model?: string | null;
|
|
912
|
+
/**
|
|
913
|
+
* score of the chunk
|
|
914
|
+
*/
|
|
915
|
+
score: number;
|
|
916
|
+
/**
|
|
917
|
+
* file id
|
|
918
|
+
*/
|
|
919
|
+
file_id: string;
|
|
920
|
+
/**
|
|
921
|
+
* filename
|
|
922
|
+
*/
|
|
923
|
+
filename: string;
|
|
924
|
+
/**
|
|
925
|
+
* store id
|
|
926
|
+
*/
|
|
927
|
+
vector_store_id: string;
|
|
928
|
+
/**
|
|
929
|
+
* file metadata
|
|
930
|
+
*/
|
|
931
|
+
metadata?: unknown;
|
|
932
|
+
/**
|
|
933
|
+
* Input type identifier
|
|
934
|
+
*/
|
|
935
|
+
type?: 'audio_url';
|
|
936
|
+
/**
|
|
937
|
+
* speech recognition (sr) text of the audio
|
|
938
|
+
*/
|
|
939
|
+
transcription?: string | null;
|
|
940
|
+
/**
|
|
941
|
+
* summary of the audio
|
|
942
|
+
*/
|
|
943
|
+
summary?: string | null;
|
|
944
|
+
/**
|
|
945
|
+
* The audio input specification.
|
|
946
|
+
*/
|
|
947
|
+
audio_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.AudioURL;
|
|
948
|
+
/**
|
|
949
|
+
* The sampling rate of the audio.
|
|
950
|
+
*/
|
|
951
|
+
sampling_rate: number;
|
|
952
|
+
}
|
|
953
|
+
namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk {
|
|
954
|
+
/**
|
|
955
|
+
* The audio input specification.
|
|
956
|
+
*/
|
|
957
|
+
interface AudioURL {
|
|
958
|
+
/**
|
|
959
|
+
* The audio URL. Can be either a URL or a Data URI.
|
|
960
|
+
*/
|
|
961
|
+
url: string;
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
/**
|
|
965
|
+
* Scored video chunk for deprecated API.
|
|
966
|
+
*/
|
|
967
|
+
interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk {
|
|
968
|
+
/**
|
|
969
|
+
* position of the chunk in a file
|
|
970
|
+
*/
|
|
971
|
+
chunk_index: number;
|
|
972
|
+
/**
|
|
973
|
+
* mime type of the chunk
|
|
974
|
+
*/
|
|
975
|
+
mime_type?: string;
|
|
976
|
+
/**
|
|
977
|
+
* metadata of the chunk
|
|
978
|
+
*/
|
|
979
|
+
generated_metadata?: {
|
|
980
|
+
[key: string]: unknown;
|
|
981
|
+
} | null;
|
|
982
|
+
/**
|
|
983
|
+
* model used for this chunk
|
|
984
|
+
*/
|
|
985
|
+
model?: string | null;
|
|
986
|
+
/**
|
|
987
|
+
* score of the chunk
|
|
988
|
+
*/
|
|
989
|
+
score: number;
|
|
990
|
+
/**
|
|
991
|
+
* file id
|
|
992
|
+
*/
|
|
993
|
+
file_id: string;
|
|
994
|
+
/**
|
|
995
|
+
* filename
|
|
996
|
+
*/
|
|
997
|
+
filename: string;
|
|
998
|
+
/**
|
|
999
|
+
* store id
|
|
1000
|
+
*/
|
|
1001
|
+
vector_store_id: string;
|
|
1002
|
+
/**
|
|
1003
|
+
* file metadata
|
|
1004
|
+
*/
|
|
1005
|
+
metadata?: unknown;
|
|
1006
|
+
/**
|
|
1007
|
+
* Input type identifier
|
|
1008
|
+
*/
|
|
1009
|
+
type?: 'video_url';
|
|
1010
|
+
/**
|
|
1011
|
+
* speech recognition (sr) text of the video
|
|
1012
|
+
*/
|
|
1013
|
+
transcription?: string | null;
|
|
1014
|
+
/**
|
|
1015
|
+
* summary of the video
|
|
1016
|
+
*/
|
|
1017
|
+
summary?: string | null;
|
|
1018
|
+
/**
|
|
1019
|
+
* The video input specification.
|
|
1020
|
+
*/
|
|
1021
|
+
video_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.VideoURL;
|
|
1022
|
+
}
|
|
1023
|
+
namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk {
|
|
1024
|
+
/**
|
|
1025
|
+
* The video input specification.
|
|
1026
|
+
*/
|
|
1027
|
+
interface VideoURL {
|
|
1028
|
+
/**
|
|
1029
|
+
* The video URL. Can be either a URL or a Data URI.
|
|
1030
|
+
*/
|
|
1031
|
+
url: string;
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
510
1034
|
}
|
|
511
1035
|
export interface VectorStoreCreateParams {
|
|
512
1036
|
/**
|
|
@@ -522,7 +1046,7 @@ export interface VectorStoreCreateParams {
|
|
|
522
1046
|
*/
|
|
523
1047
|
is_public?: boolean;
|
|
524
1048
|
/**
|
|
525
|
-
* Represents an expiration policy for a
|
|
1049
|
+
* Represents an expiration policy for a store.
|
|
526
1050
|
*/
|
|
527
1051
|
expires_after?: ExpiresAfter | null;
|
|
528
1052
|
/**
|
|
@@ -536,7 +1060,7 @@ export interface VectorStoreCreateParams {
|
|
|
536
1060
|
}
|
|
537
1061
|
export interface VectorStoreUpdateParams {
|
|
538
1062
|
/**
|
|
539
|
-
* New name for the
|
|
1063
|
+
* New name for the store
|
|
540
1064
|
*/
|
|
541
1065
|
name?: string | null;
|
|
542
1066
|
/**
|
|
@@ -548,7 +1072,7 @@ export interface VectorStoreUpdateParams {
|
|
|
548
1072
|
*/
|
|
549
1073
|
is_public?: boolean | null;
|
|
550
1074
|
/**
|
|
551
|
-
* Represents an expiration policy for a
|
|
1075
|
+
* Represents an expiration policy for a store.
|
|
552
1076
|
*/
|
|
553
1077
|
expires_after?: ExpiresAfter | null;
|
|
554
1078
|
/**
|