@vectorstores/chroma 0.1.6 → 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;
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;
@@ -4,7 +4,7 @@ import { ChromaClient } from 'chromadb';
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;
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { ChromaClient } from 'chromadb';
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;
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.6",
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/env": "0.1.0",
38
- "@vectorstores/core": "0.1.6"
37
+ "@vectorstores/core": "0.1.7",
38
+ "@vectorstores/env": "0.1.0"
39
39
  },
40
40
  "peerDependencies": {
41
- "@vectorstores/core": "0.1.6",
41
+ "@vectorstores/core": "0.1.7",
42
42
  "@vectorstores/env": "0.1.0"
43
43
  },
44
44
  "dependencies": {