@mixedbread/sdk 0.24.1 → 0.26.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 +17 -0
- package/README.md +2 -2
- package/client.d.mts +4 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -2
- package/client.d.ts.map +1 -1
- package/client.js +1 -0
- package/client.js.map +1 -1
- package/client.mjs +1 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/embeddings.d.mts +1 -2
- package/resources/embeddings.d.mts.map +1 -1
- package/resources/embeddings.d.ts +1 -2
- package/resources/embeddings.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/top-level.d.mts +1 -1
- package/resources/top-level.d.mts.map +1 -1
- package/resources/top-level.d.ts +1 -1
- package/resources/top-level.d.ts.map +1 -1
- package/resources/vector-stores/files.d.mts +10 -54
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts +10 -54
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +4 -4
- package/resources/vector-stores/files.mjs +4 -4
- package/resources/vector-stores/vector-stores.d.mts +2 -10
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +2 -10
- 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/client.ts +3 -2
- package/src/resources/embeddings.ts +1 -20
- package/src/resources/index.ts +1 -1
- package/src/resources/top-level.ts +1 -1
- package/src/resources/vector-stores/files.ts +11 -56
- package/src/resources/vector-stores/vector-stores.ts +2 -12
- 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
|
@@ -12,12 +12,12 @@ import { path } from '../../internal/utils/path';
|
|
|
12
12
|
|
|
13
13
|
export class Files extends APIResource {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Add an already uploaded file to a vector store.
|
|
16
16
|
*
|
|
17
|
-
* Args: vector_store_identifier: The ID or name of the vector store to
|
|
18
|
-
* file: The file to
|
|
17
|
+
* Args: vector_store_identifier: The ID or name of the vector store to add the
|
|
18
|
+
* file to file: The file to add and index
|
|
19
19
|
*
|
|
20
|
-
* Returns: VectorStoreFile: Details of the
|
|
20
|
+
* Returns: VectorStoreFile: Details of the added and indexed file
|
|
21
21
|
*/
|
|
22
22
|
create(
|
|
23
23
|
vectorStoreIdentifier: string,
|
|
@@ -279,7 +279,7 @@ export interface ScoredVectorStoreFile {
|
|
|
279
279
|
object?: 'vector_store.file';
|
|
280
280
|
|
|
281
281
|
/**
|
|
282
|
-
* chunks
|
|
282
|
+
* Array of scored file chunks
|
|
283
283
|
*/
|
|
284
284
|
chunks: Array<
|
|
285
285
|
| VectorStoresAPI.ScoredTextInputChunk
|
|
@@ -514,26 +514,6 @@ export namespace VectorStoreFile {
|
|
|
514
514
|
export interface FileListResponse {
|
|
515
515
|
/**
|
|
516
516
|
* Response model for cursor-based pagination.
|
|
517
|
-
*
|
|
518
|
-
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
|
519
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
|
520
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
|
521
|
-
*
|
|
522
|
-
* Final page response:
|
|
523
|
-
* {
|
|
524
|
-
* "has_more": false,
|
|
525
|
-
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
|
526
|
-
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
|
527
|
-
* "total": 42
|
|
528
|
-
* }
|
|
529
|
-
*
|
|
530
|
-
* Empty results:
|
|
531
|
-
* {
|
|
532
|
-
* "has_more": false,
|
|
533
|
-
* "first_cursor": null,
|
|
534
|
-
* "last_cursor": null,
|
|
535
|
-
* "total": 0
|
|
536
|
-
* }
|
|
537
517
|
*/
|
|
538
518
|
pagination: FileListResponse.Pagination;
|
|
539
519
|
|
|
@@ -551,26 +531,6 @@ export interface FileListResponse {
|
|
|
551
531
|
export namespace FileListResponse {
|
|
552
532
|
/**
|
|
553
533
|
* Response model for cursor-based pagination.
|
|
554
|
-
*
|
|
555
|
-
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
|
556
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
|
557
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
|
558
|
-
*
|
|
559
|
-
* Final page response:
|
|
560
|
-
* {
|
|
561
|
-
* "has_more": false,
|
|
562
|
-
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
|
563
|
-
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
|
564
|
-
* "total": 42
|
|
565
|
-
* }
|
|
566
|
-
*
|
|
567
|
-
* Empty results:
|
|
568
|
-
* {
|
|
569
|
-
* "has_more": false,
|
|
570
|
-
* "first_cursor": null,
|
|
571
|
-
* "last_cursor": null,
|
|
572
|
-
* "total": 0
|
|
573
|
-
* }
|
|
574
534
|
*/
|
|
575
535
|
export interface Pagination {
|
|
576
536
|
/**
|
|
@@ -633,11 +593,6 @@ export interface FileSearchResponse {
|
|
|
633
593
|
}
|
|
634
594
|
|
|
635
595
|
export interface FileCreateParams {
|
|
636
|
-
/**
|
|
637
|
-
* ID of the file to add
|
|
638
|
-
*/
|
|
639
|
-
file_id: string;
|
|
640
|
-
|
|
641
596
|
/**
|
|
642
597
|
* Optional metadata for the file
|
|
643
598
|
*/
|
|
@@ -647,6 +602,11 @@ export interface FileCreateParams {
|
|
|
647
602
|
* Strategy for adding the file
|
|
648
603
|
*/
|
|
649
604
|
experimental?: FileCreateParams.Experimental;
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* ID of the file to add
|
|
608
|
+
*/
|
|
609
|
+
file_id: string;
|
|
650
610
|
}
|
|
651
611
|
|
|
652
612
|
export namespace FileCreateParams {
|
|
@@ -732,12 +692,7 @@ export interface FileSearchParams {
|
|
|
732
692
|
/**
|
|
733
693
|
* IDs or names of vector stores to search
|
|
734
694
|
*/
|
|
735
|
-
vector_store_identifiers
|
|
736
|
-
|
|
737
|
-
/**
|
|
738
|
-
* @deprecated
|
|
739
|
-
*/
|
|
740
|
-
vector_store_ids?: Array<string> | null;
|
|
695
|
+
vector_store_identifiers: Array<string>;
|
|
741
696
|
|
|
742
697
|
/**
|
|
743
698
|
* Number of results to return
|
|
@@ -716,12 +716,7 @@ export interface VectorStoreQuestionAnsweringParams {
|
|
|
716
716
|
/**
|
|
717
717
|
* IDs or names of vector stores to search
|
|
718
718
|
*/
|
|
719
|
-
vector_store_identifiers
|
|
720
|
-
|
|
721
|
-
/**
|
|
722
|
-
* @deprecated
|
|
723
|
-
*/
|
|
724
|
-
vector_store_ids?: Array<string> | null;
|
|
719
|
+
vector_store_identifiers: Array<string>;
|
|
725
720
|
|
|
726
721
|
/**
|
|
727
722
|
* Number of results to return
|
|
@@ -784,12 +779,7 @@ export interface VectorStoreSearchParams {
|
|
|
784
779
|
/**
|
|
785
780
|
* IDs or names of vector stores to search
|
|
786
781
|
*/
|
|
787
|
-
vector_store_identifiers
|
|
788
|
-
|
|
789
|
-
/**
|
|
790
|
-
* @deprecated
|
|
791
|
-
*/
|
|
792
|
-
vector_store_ids?: Array<string> | null;
|
|
782
|
+
vector_store_identifiers: Array<string>;
|
|
793
783
|
|
|
794
784
|
/**
|
|
795
785
|
* Number of results to return
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.26.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.26.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.26.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.26.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|