@vectorstores/chroma 0.1.5 → 0.1.7

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/index.cjs CHANGED
@@ -6,7 +6,7 @@ var chromadb = require('chromadb');
6
6
  const DEFAULT_TEXT_KEY = "text";
7
7
  class ChromaVectorStore extends core.BaseVectorStore {
8
8
  constructor(init){
9
- super(init), this.storesText = true, this.flatMetadata = true, this.collection = null;
9
+ super(), this.storesText = true, this.flatMetadata = true, this.collection = null;
10
10
  this.collectionName = init.collectionName;
11
11
  this.chromaClient = new chromadb.ChromaClient(init.chromaClientParams);
12
12
  this.textKey = init.textKey ?? DEFAULT_TEXT_KEY;
@@ -117,7 +117,7 @@ class ChromaVectorStore extends core.BaseVectorStore {
117
117
  if (query.docIds) {
118
118
  throw new Error("ChromaDB does not support querying by docIDs");
119
119
  }
120
- if (query.mode != core.VectorStoreQueryMode.DEFAULT) {
120
+ if (query.mode != "default") {
121
121
  throw new Error("ChromaDB does not support querying by mode");
122
122
  }
123
123
  let chromaWhere = {};
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { BaseVectorStore, VectorStoreBaseParams, BaseNode, VectorStoreQuery, VectorStoreQueryResult } from '@vectorstores/core';
1
+ import { BaseVectorStore, BaseNode, VectorStoreQuery, VectorStoreQueryResult } from '@vectorstores/core';
2
2
  import { ChromaClientParams, ChromaClient, Where, WhereDocument } from 'chromadb';
3
3
 
4
4
  type ChromaDeleteOptions = {
@@ -20,7 +20,7 @@ declare class ChromaVectorStore extends BaseVectorStore {
20
20
  collectionName: string;
21
21
  textKey?: string;
22
22
  chromaClientParams?: ChromaClientParams;
23
- } & VectorStoreBaseParams);
23
+ });
24
24
  client(): ChromaClient;
25
25
  getCollection(): Promise<Collection>;
26
26
  private getDataToInsert;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { BaseVectorStore, VectorStoreBaseParams, BaseNode, VectorStoreQuery, VectorStoreQueryResult } from '@vectorstores/core';
1
+ import { BaseVectorStore, BaseNode, VectorStoreQuery, VectorStoreQueryResult } from '@vectorstores/core';
2
2
  import { ChromaClientParams, ChromaClient, Where, WhereDocument } from 'chromadb';
3
3
 
4
4
  type ChromaDeleteOptions = {
@@ -20,7 +20,7 @@ declare class ChromaVectorStore extends BaseVectorStore {
20
20
  collectionName: string;
21
21
  textKey?: string;
22
22
  chromaClientParams?: ChromaClientParams;
23
- } & VectorStoreBaseParams);
23
+ });
24
24
  client(): ChromaClient;
25
25
  getCollection(): Promise<Collection>;
26
26
  private getDataToInsert;
@@ -1,4 +1,4 @@
1
- import { BaseVectorStore, VectorStoreBaseParams, BaseNode, VectorStoreQuery, VectorStoreQueryResult } from '@vectorstores/core';
1
+ import { BaseVectorStore, BaseNode, VectorStoreQuery, VectorStoreQueryResult } from '@vectorstores/core';
2
2
  import { ChromaClientParams, ChromaClient, Where, WhereDocument } from 'chromadb';
3
3
 
4
4
  type ChromaDeleteOptions = {
@@ -20,7 +20,7 @@ declare class ChromaVectorStore extends BaseVectorStore {
20
20
  collectionName: string;
21
21
  textKey?: string;
22
22
  chromaClientParams?: ChromaClientParams;
23
- } & VectorStoreBaseParams);
23
+ });
24
24
  client(): ChromaClient;
25
25
  getCollection(): Promise<Collection>;
26
26
  private getDataToInsert;
@@ -1,10 +1,10 @@
1
- import { BaseVectorStore, nodeToMetadata, MetadataMode, FilterCondition, FilterOperator, VectorStoreQueryMode, metadataDictToNode } from '@vectorstores/core';
1
+ import { BaseVectorStore, nodeToMetadata, MetadataMode, FilterCondition, FilterOperator, metadataDictToNode } from '@vectorstores/core';
2
2
  import { ChromaClient } from 'chromadb';
3
3
 
4
4
  const DEFAULT_TEXT_KEY = "text";
5
5
  class ChromaVectorStore extends BaseVectorStore {
6
6
  constructor(init){
7
- super(init), this.storesText = true, this.flatMetadata = true, this.collection = null;
7
+ super(), this.storesText = true, this.flatMetadata = true, this.collection = null;
8
8
  this.collectionName = init.collectionName;
9
9
  this.chromaClient = new ChromaClient(init.chromaClientParams);
10
10
  this.textKey = init.textKey ?? DEFAULT_TEXT_KEY;
@@ -115,7 +115,7 @@ class ChromaVectorStore extends BaseVectorStore {
115
115
  if (query.docIds) {
116
116
  throw new Error("ChromaDB does not support querying by docIDs");
117
117
  }
118
- if (query.mode != VectorStoreQueryMode.DEFAULT) {
118
+ if (query.mode != "default") {
119
119
  throw new Error("ChromaDB does not support querying by mode");
120
120
  }
121
121
  let chromaWhere = {};
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { BaseVectorStore, nodeToMetadata, MetadataMode, FilterCondition, FilterOperator, VectorStoreQueryMode, metadataDictToNode } from '@vectorstores/core';
1
+ import { BaseVectorStore, nodeToMetadata, MetadataMode, FilterCondition, FilterOperator, metadataDictToNode } from '@vectorstores/core';
2
2
  import { ChromaClient } from 'chromadb';
3
3
 
4
4
  const DEFAULT_TEXT_KEY = "text";
5
5
  class ChromaVectorStore extends BaseVectorStore {
6
6
  constructor(init){
7
- super(init), this.storesText = true, this.flatMetadata = true, this.collection = null;
7
+ super(), this.storesText = true, this.flatMetadata = true, this.collection = null;
8
8
  this.collectionName = init.collectionName;
9
9
  this.chromaClient = new ChromaClient(init.chromaClientParams);
10
10
  this.textKey = init.textKey ?? DEFAULT_TEXT_KEY;
@@ -115,7 +115,7 @@ class ChromaVectorStore extends BaseVectorStore {
115
115
  if (query.docIds) {
116
116
  throw new Error("ChromaDB does not support querying by docIDs");
117
117
  }
118
- if (query.mode != VectorStoreQueryMode.DEFAULT) {
118
+ if (query.mode != "default") {
119
119
  throw new Error("ChromaDB does not support querying by mode");
120
120
  }
121
121
  let chromaWhere = {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vectorstores/chroma",
3
3
  "description": "Chroma Storage for vectorstores",
4
- "version": "0.1.5",
4
+ "version": "0.1.7",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
@@ -34,11 +34,11 @@
34
34
  "directory": "packages/providers/storage/chroma"
35
35
  },
36
36
  "devDependencies": {
37
- "@vectorstores/core": "0.1.5",
37
+ "@vectorstores/core": "0.1.7",
38
38
  "@vectorstores/env": "0.1.0"
39
39
  },
40
40
  "peerDependencies": {
41
- "@vectorstores/core": "0.1.5",
41
+ "@vectorstores/core": "0.1.7",
42
42
  "@vectorstores/env": "0.1.0"
43
43
  },
44
44
  "dependencies": {