@vectorstores/pinecone 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 +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.edge-light.d.ts +2 -2
- package/dist/index.edge-light.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -7,7 +7,7 @@ var env = require('@vectorstores/env');
|
|
|
7
7
|
* Provides support for writing and querying vector data in Pinecone.
|
|
8
8
|
*/ class PineconeVectorStore extends core.BaseVectorStore {
|
|
9
9
|
constructor(params){
|
|
10
|
-
super(
|
|
10
|
+
super(), this.storesText = true;
|
|
11
11
|
this.indexName = params?.indexName ?? env.getEnv("PINECONE_INDEX_NAME") ?? "llama";
|
|
12
12
|
this.namespace = params?.namespace ?? env.getEnv("PINECONE_NAMESPACE") ?? "";
|
|
13
13
|
this.chunkSize = params?.chunkSize ?? Number.parseInt(env.getEnv("PINECONE_CHUNK_SIZE") ?? "100");
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _pinecone_database_pinecone from '@pinecone-database/pinecone';
|
|
2
2
|
import { Pinecone, Index, PineconeRecord, ScoredPineconeRecord } from '@pinecone-database/pinecone';
|
|
3
|
-
import { BaseVectorStore,
|
|
3
|
+
import { BaseVectorStore, BaseNode, Metadata, VectorStoreQuery, VectorStoreQueryResult, MetadataFilters } from '@vectorstores/core';
|
|
4
4
|
|
|
5
5
|
type PineconeParams = {
|
|
6
6
|
indexName?: string;
|
|
@@ -8,7 +8,7 @@ type PineconeParams = {
|
|
|
8
8
|
namespace?: string;
|
|
9
9
|
textKey?: string;
|
|
10
10
|
apiKey?: string;
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
12
|
/**
|
|
13
13
|
* Provides support for writing and querying vector data in Pinecone.
|
|
14
14
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _pinecone_database_pinecone from '@pinecone-database/pinecone';
|
|
2
2
|
import { Pinecone, Index, PineconeRecord, ScoredPineconeRecord } from '@pinecone-database/pinecone';
|
|
3
|
-
import { BaseVectorStore,
|
|
3
|
+
import { BaseVectorStore, BaseNode, Metadata, VectorStoreQuery, VectorStoreQueryResult, MetadataFilters } from '@vectorstores/core';
|
|
4
4
|
|
|
5
5
|
type PineconeParams = {
|
|
6
6
|
indexName?: string;
|
|
@@ -8,7 +8,7 @@ type PineconeParams = {
|
|
|
8
8
|
namespace?: string;
|
|
9
9
|
textKey?: string;
|
|
10
10
|
apiKey?: string;
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
12
|
/**
|
|
13
13
|
* Provides support for writing and querying vector data in Pinecone.
|
|
14
14
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _pinecone_database_pinecone from '@pinecone-database/pinecone';
|
|
2
2
|
import { Pinecone, Index, PineconeRecord, ScoredPineconeRecord } from '@pinecone-database/pinecone';
|
|
3
|
-
import { BaseVectorStore,
|
|
3
|
+
import { BaseVectorStore, BaseNode, Metadata, VectorStoreQuery, VectorStoreQueryResult, MetadataFilters } from '@vectorstores/core';
|
|
4
4
|
|
|
5
5
|
type PineconeParams = {
|
|
6
6
|
indexName?: string;
|
|
@@ -8,7 +8,7 @@ type PineconeParams = {
|
|
|
8
8
|
namespace?: string;
|
|
9
9
|
textKey?: string;
|
|
10
10
|
apiKey?: string;
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
12
|
/**
|
|
13
13
|
* Provides support for writing and querying vector data in Pinecone.
|
|
14
14
|
*/
|
package/dist/index.edge-light.js
CHANGED
|
@@ -5,7 +5,7 @@ import { getEnv } from '@vectorstores/env';
|
|
|
5
5
|
* Provides support for writing and querying vector data in Pinecone.
|
|
6
6
|
*/ class PineconeVectorStore extends BaseVectorStore {
|
|
7
7
|
constructor(params){
|
|
8
|
-
super(
|
|
8
|
+
super(), this.storesText = true;
|
|
9
9
|
this.indexName = params?.indexName ?? getEnv("PINECONE_INDEX_NAME") ?? "llama";
|
|
10
10
|
this.namespace = params?.namespace ?? getEnv("PINECONE_NAMESPACE") ?? "";
|
|
11
11
|
this.chunkSize = params?.chunkSize ?? Number.parseInt(getEnv("PINECONE_CHUNK_SIZE") ?? "100");
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { getEnv } from '@vectorstores/env';
|
|
|
5
5
|
* Provides support for writing and querying vector data in Pinecone.
|
|
6
6
|
*/ class PineconeVectorStore extends BaseVectorStore {
|
|
7
7
|
constructor(params){
|
|
8
|
-
super(
|
|
8
|
+
super(), this.storesText = true;
|
|
9
9
|
this.indexName = params?.indexName ?? getEnv("PINECONE_INDEX_NAME") ?? "llama";
|
|
10
10
|
this.namespace = params?.namespace ?? getEnv("PINECONE_NAMESPACE") ?? "";
|
|
11
11
|
this.chunkSize = params?.chunkSize ?? Number.parseInt(getEnv("PINECONE_CHUNK_SIZE") ?? "100");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vectorstores/pinecone",
|
|
3
3
|
"description": "Pinecone Storage for vectorstores",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"directory": "packages/providers/storage/pinecone"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@vectorstores/core": "0.1.
|
|
37
|
+
"@vectorstores/core": "0.1.7",
|
|
38
38
|
"@vectorstores/env": "0.1.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@vectorstores/env": "0.1.0",
|
|
42
|
-
"@vectorstores/core": "0.1.
|
|
42
|
+
"@vectorstores/core": "0.1.7"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@pinecone-database/pinecone": "^4.0.0"
|