chromadb 3.1.0 → 3.1.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/dist/chromadb.legacy-esm.js +25 -25
- package/dist/chromadb.mjs +25 -25
- package/dist/chromadb.mjs.map +1 -1
- package/dist/cjs/chromadb.cjs +25 -25
- package/dist/cjs/chromadb.cjs.map +1 -1
- package/package.json +6 -6
- package/src/api/sdk.gen.ts +29 -29
- package/src/api/types.gen.ts +112 -108
|
@@ -491,6 +491,19 @@ var DefaultService = class {
|
|
|
491
491
|
...options
|
|
492
492
|
});
|
|
493
493
|
}
|
|
494
|
+
/**
|
|
495
|
+
* Detach a function
|
|
496
|
+
*/
|
|
497
|
+
static detachFunction(options) {
|
|
498
|
+
return (options.client ?? client).post({
|
|
499
|
+
url: "/api/v2/tenants/{tenant}/databases/{database}/attached_functions/{attached_function_id}/detach",
|
|
500
|
+
...options,
|
|
501
|
+
headers: {
|
|
502
|
+
"Content-Type": "application/json",
|
|
503
|
+
...options?.headers
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
}
|
|
494
507
|
/**
|
|
495
508
|
* Lists all collections in the specified database.
|
|
496
509
|
*/
|
|
@@ -593,24 +606,11 @@ var DefaultService = class {
|
|
|
593
606
|
});
|
|
594
607
|
}
|
|
595
608
|
/**
|
|
596
|
-
*
|
|
597
|
-
*/
|
|
598
|
-
static collectionGet(options) {
|
|
599
|
-
return (options.client ?? client).post({
|
|
600
|
-
url: "/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/get",
|
|
601
|
-
...options,
|
|
602
|
-
headers: {
|
|
603
|
-
"Content-Type": "application/json",
|
|
604
|
-
...options?.headers
|
|
605
|
-
}
|
|
606
|
-
});
|
|
607
|
-
}
|
|
608
|
-
/**
|
|
609
|
-
* Query a collection in a variety of ways, including vector search, metadata filtering, and full-text search
|
|
609
|
+
* Attach a function to a collection
|
|
610
610
|
*/
|
|
611
|
-
static
|
|
611
|
+
static attachFunction(options) {
|
|
612
612
|
return (options.client ?? client).post({
|
|
613
|
-
url: "/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/
|
|
613
|
+
url: "/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/functions/attach",
|
|
614
614
|
...options,
|
|
615
615
|
headers: {
|
|
616
616
|
"Content-Type": "application/json",
|
|
@@ -619,11 +619,11 @@ var DefaultService = class {
|
|
|
619
619
|
});
|
|
620
620
|
}
|
|
621
621
|
/**
|
|
622
|
-
*
|
|
622
|
+
* Retrieves records from a collection by ID or metadata filter.
|
|
623
623
|
*/
|
|
624
|
-
static
|
|
624
|
+
static collectionGet(options) {
|
|
625
625
|
return (options.client ?? client).post({
|
|
626
|
-
url: "/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/
|
|
626
|
+
url: "/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/get",
|
|
627
627
|
...options,
|
|
628
628
|
headers: {
|
|
629
629
|
"Content-Type": "application/json",
|
|
@@ -632,11 +632,11 @@ var DefaultService = class {
|
|
|
632
632
|
});
|
|
633
633
|
}
|
|
634
634
|
/**
|
|
635
|
-
*
|
|
635
|
+
* Query a collection in a variety of ways, including vector search, metadata filtering, and full-text search
|
|
636
636
|
*/
|
|
637
|
-
static
|
|
637
|
+
static collectionQuery(options) {
|
|
638
638
|
return (options.client ?? client).post({
|
|
639
|
-
url: "/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/
|
|
639
|
+
url: "/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/query",
|
|
640
640
|
...options,
|
|
641
641
|
headers: {
|
|
642
642
|
"Content-Type": "application/json",
|
|
@@ -645,11 +645,11 @@ var DefaultService = class {
|
|
|
645
645
|
});
|
|
646
646
|
}
|
|
647
647
|
/**
|
|
648
|
-
*
|
|
648
|
+
* Search records from a collection with hybrid criterias.
|
|
649
649
|
*/
|
|
650
|
-
static
|
|
650
|
+
static collectionSearch(options) {
|
|
651
651
|
return (options.client ?? client).post({
|
|
652
|
-
url: "/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/
|
|
652
|
+
url: "/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/search",
|
|
653
653
|
...options,
|
|
654
654
|
headers: {
|
|
655
655
|
"Content-Type": "application/json",
|
package/dist/chromadb.mjs
CHANGED
|
@@ -491,6 +491,19 @@ var DefaultService = class {
|
|
|
491
491
|
...options
|
|
492
492
|
});
|
|
493
493
|
}
|
|
494
|
+
/**
|
|
495
|
+
* Detach a function
|
|
496
|
+
*/
|
|
497
|
+
static detachFunction(options) {
|
|
498
|
+
return (options.client ?? client).post({
|
|
499
|
+
url: "/api/v2/tenants/{tenant}/databases/{database}/attached_functions/{attached_function_id}/detach",
|
|
500
|
+
...options,
|
|
501
|
+
headers: {
|
|
502
|
+
"Content-Type": "application/json",
|
|
503
|
+
...options?.headers
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
}
|
|
494
507
|
/**
|
|
495
508
|
* Lists all collections in the specified database.
|
|
496
509
|
*/
|
|
@@ -593,24 +606,11 @@ var DefaultService = class {
|
|
|
593
606
|
});
|
|
594
607
|
}
|
|
595
608
|
/**
|
|
596
|
-
*
|
|
597
|
-
*/
|
|
598
|
-
static collectionGet(options) {
|
|
599
|
-
return (options.client ?? client).post({
|
|
600
|
-
url: "/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/get",
|
|
601
|
-
...options,
|
|
602
|
-
headers: {
|
|
603
|
-
"Content-Type": "application/json",
|
|
604
|
-
...options?.headers
|
|
605
|
-
}
|
|
606
|
-
});
|
|
607
|
-
}
|
|
608
|
-
/**
|
|
609
|
-
* Query a collection in a variety of ways, including vector search, metadata filtering, and full-text search
|
|
609
|
+
* Attach a function to a collection
|
|
610
610
|
*/
|
|
611
|
-
static
|
|
611
|
+
static attachFunction(options) {
|
|
612
612
|
return (options.client ?? client).post({
|
|
613
|
-
url: "/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/
|
|
613
|
+
url: "/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/functions/attach",
|
|
614
614
|
...options,
|
|
615
615
|
headers: {
|
|
616
616
|
"Content-Type": "application/json",
|
|
@@ -619,11 +619,11 @@ var DefaultService = class {
|
|
|
619
619
|
});
|
|
620
620
|
}
|
|
621
621
|
/**
|
|
622
|
-
*
|
|
622
|
+
* Retrieves records from a collection by ID or metadata filter.
|
|
623
623
|
*/
|
|
624
|
-
static
|
|
624
|
+
static collectionGet(options) {
|
|
625
625
|
return (options.client ?? client).post({
|
|
626
|
-
url: "/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/
|
|
626
|
+
url: "/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/get",
|
|
627
627
|
...options,
|
|
628
628
|
headers: {
|
|
629
629
|
"Content-Type": "application/json",
|
|
@@ -632,11 +632,11 @@ var DefaultService = class {
|
|
|
632
632
|
});
|
|
633
633
|
}
|
|
634
634
|
/**
|
|
635
|
-
*
|
|
635
|
+
* Query a collection in a variety of ways, including vector search, metadata filtering, and full-text search
|
|
636
636
|
*/
|
|
637
|
-
static
|
|
637
|
+
static collectionQuery(options) {
|
|
638
638
|
return (options.client ?? client).post({
|
|
639
|
-
url: "/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/
|
|
639
|
+
url: "/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/query",
|
|
640
640
|
...options,
|
|
641
641
|
headers: {
|
|
642
642
|
"Content-Type": "application/json",
|
|
@@ -645,11 +645,11 @@ var DefaultService = class {
|
|
|
645
645
|
});
|
|
646
646
|
}
|
|
647
647
|
/**
|
|
648
|
-
*
|
|
648
|
+
* Search records from a collection with hybrid criterias.
|
|
649
649
|
*/
|
|
650
|
-
static
|
|
650
|
+
static collectionSearch(options) {
|
|
651
651
|
return (options.client ?? client).post({
|
|
652
|
-
url: "/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/
|
|
652
|
+
url: "/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/search",
|
|
653
653
|
...options,
|
|
654
654
|
headers: {
|
|
655
655
|
"Content-Type": "application/json",
|