langchain 0.0.127 → 0.0.128
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/agents/toolkits/conversational_retrieval/tool.cjs +8 -2
- package/dist/agents/toolkits/conversational_retrieval/tool.d.ts +9 -2
- package/dist/agents/toolkits/conversational_retrieval/tool.js +9 -3
- package/dist/chains/query_constructor/ir.d.ts +5 -4
- package/dist/chains/query_constructor/prompt.cjs +3 -1
- package/dist/chains/query_constructor/prompt.d.ts +2 -2
- package/dist/chains/query_constructor/prompt.js +3 -1
- package/dist/chains/question_answering/refine_prompts.cjs +2 -2
- package/dist/chains/question_answering/refine_prompts.d.ts +1 -1
- package/dist/chains/question_answering/refine_prompts.js +2 -2
- package/dist/chains/sql_db/index.cjs +2 -1
- package/dist/chains/sql_db/index.d.ts +1 -1
- package/dist/chains/sql_db/index.js +1 -1
- package/dist/chains/sql_db/sql_db_prompt.cjs +21 -1
- package/dist/chains/sql_db/sql_db_prompt.d.ts +6 -0
- package/dist/chains/sql_db/sql_db_prompt.js +20 -0
- package/dist/chat_models/openai.cjs +8 -0
- package/dist/chat_models/openai.d.ts +1 -0
- package/dist/chat_models/openai.js +8 -0
- package/dist/document_loaders/web/github.cjs +104 -32
- package/dist/document_loaders/web/github.d.ts +46 -3
- package/dist/document_loaders/web/github.js +104 -32
- package/dist/document_transformers/mozilla_readability.cjs +30 -0
- package/dist/document_transformers/mozilla_readability.d.ts +8 -0
- package/dist/document_transformers/mozilla_readability.js +26 -0
- package/dist/llms/base.cjs +3 -1
- package/dist/llms/base.js +3 -1
- package/dist/llms/bedrock.cjs +152 -0
- package/dist/llms/bedrock.d.ts +54 -0
- package/dist/llms/bedrock.js +148 -0
- package/dist/llms/openai-chat.cjs +8 -0
- package/dist/llms/openai-chat.d.ts +1 -0
- package/dist/llms/openai-chat.js +8 -0
- package/dist/llms/openai.cjs +8 -0
- package/dist/llms/openai.d.ts +1 -0
- package/dist/llms/openai.js +8 -0
- package/dist/load/import_constants.cjs +2 -0
- package/dist/load/import_constants.js +2 -0
- package/dist/retrievers/self_query/base.cjs +31 -0
- package/dist/retrievers/self_query/base.d.ts +5 -2
- package/dist/retrievers/self_query/base.js +31 -0
- package/dist/retrievers/self_query/chroma.d.ts +2 -1
- package/dist/retrievers/self_query/functional.cjs +28 -1
- package/dist/retrievers/self_query/functional.d.ts +3 -0
- package/dist/retrievers/self_query/functional.js +28 -1
- package/dist/retrievers/self_query/index.cjs +18 -4
- package/dist/retrievers/self_query/index.d.ts +14 -10
- package/dist/retrievers/self_query/index.js +18 -4
- package/dist/retrievers/self_query/pinecone.d.ts +2 -1
- package/dist/retrievers/self_query/supabase.cjs +30 -0
- package/dist/retrievers/self_query/supabase.d.ts +3 -5
- package/dist/retrievers/self_query/supabase.js +30 -0
- package/dist/retrievers/self_query/utils.cjs +21 -0
- package/dist/retrievers/self_query/utils.d.ts +2 -0
- package/dist/retrievers/self_query/utils.js +16 -0
- package/dist/retrievers/self_query/weaviate.cjs +67 -16
- package/dist/retrievers/self_query/weaviate.d.ts +6 -3
- package/dist/retrievers/self_query/weaviate.js +67 -16
- package/dist/types/openai-types.d.ts +2 -0
- package/dist/util/event-source-parse.cjs +22 -6
- package/dist/util/event-source-parse.js +22 -6
- package/dist/util/ollama.cjs +16 -2
- package/dist/util/ollama.js +16 -2
- package/dist/util/sql_utils.cjs +38 -3
- package/dist/util/sql_utils.js +39 -4
- package/dist/vectorstores/chroma.cjs +5 -6
- package/dist/vectorstores/chroma.js +5 -6
- package/dist/vectorstores/faiss.cjs +41 -1
- package/dist/vectorstores/faiss.d.ts +6 -0
- package/dist/vectorstores/faiss.js +41 -1
- package/dist/vectorstores/supabase.cjs +10 -4
- package/dist/vectorstores/supabase.d.ts +4 -2
- package/dist/vectorstores/supabase.js +10 -4
- package/document_transformers/mozilla_readability.cjs +1 -0
- package/document_transformers/mozilla_readability.d.ts +1 -0
- package/document_transformers/mozilla_readability.js +1 -0
- package/llms/bedrock.cjs +1 -0
- package/llms/bedrock.d.ts +1 -0
- package/llms/bedrock.js +1 -0
- package/package.json +46 -3
|
@@ -15,6 +15,8 @@ export declare class FaissStore extends SaveableVectorStore {
|
|
|
15
15
|
docstore: SynchronousInMemoryDocstore;
|
|
16
16
|
args: FaissLibArgs;
|
|
17
17
|
_vectorstoreType(): string;
|
|
18
|
+
getMapping(): Record<number, string>;
|
|
19
|
+
getDocstore(): SynchronousInMemoryDocstore;
|
|
18
20
|
constructor(embeddings: Embeddings, args: FaissLibArgs);
|
|
19
21
|
addDocuments(documents: Document[]): Promise<string[]>;
|
|
20
22
|
get index(): IndexFlatL2;
|
|
@@ -22,6 +24,7 @@ export declare class FaissStore extends SaveableVectorStore {
|
|
|
22
24
|
addVectors(vectors: number[][], documents: Document[]): Promise<string[]>;
|
|
23
25
|
similaritySearchVectorWithScore(query: number[], k: number): Promise<[Document<Record<string, any>>, number][]>;
|
|
24
26
|
save(directory: string): Promise<void>;
|
|
27
|
+
mergeFrom(targetIndex: FaissStore): Promise<string[]>;
|
|
25
28
|
static load(directory: string, embeddings: Embeddings): Promise<FaissStore>;
|
|
26
29
|
static loadFromPython(directory: string, embeddings: Embeddings): Promise<FaissStore>;
|
|
27
30
|
static fromTexts(texts: string[], metadatas: object[] | object, embeddings: Embeddings, dbConfig?: {
|
|
@@ -30,6 +33,9 @@ export declare class FaissStore extends SaveableVectorStore {
|
|
|
30
33
|
static fromDocuments(docs: Document[], embeddings: Embeddings, dbConfig?: {
|
|
31
34
|
docstore?: SynchronousInMemoryDocstore;
|
|
32
35
|
}): Promise<FaissStore>;
|
|
36
|
+
static fromIndex(targetIndex: FaissStore, embeddings: Embeddings, dbConfig?: {
|
|
37
|
+
docstore?: SynchronousInMemoryDocstore;
|
|
38
|
+
}): Promise<FaissStore>;
|
|
33
39
|
static importFaiss(): Promise<{
|
|
34
40
|
IndexFlatL2: typeof IndexFlatL2;
|
|
35
41
|
}>;
|
|
@@ -6,6 +6,12 @@ export class FaissStore extends SaveableVectorStore {
|
|
|
6
6
|
_vectorstoreType() {
|
|
7
7
|
return "faiss";
|
|
8
8
|
}
|
|
9
|
+
getMapping() {
|
|
10
|
+
return this._mapping;
|
|
11
|
+
}
|
|
12
|
+
getDocstore() {
|
|
13
|
+
return this.docstore;
|
|
14
|
+
}
|
|
9
15
|
constructor(embeddings, args) {
|
|
10
16
|
super(embeddings, args);
|
|
11
17
|
Object.defineProperty(this, "_index", {
|
|
@@ -44,7 +50,7 @@ export class FaissStore extends SaveableVectorStore {
|
|
|
44
50
|
}
|
|
45
51
|
get index() {
|
|
46
52
|
if (!this._index) {
|
|
47
|
-
throw new Error("Vector store not initialised yet. Try calling `fromTexts` or `
|
|
53
|
+
throw new Error("Vector store not initialised yet. Try calling `fromTexts`, `fromDocuments` or `fromIndex` first.");
|
|
48
54
|
}
|
|
49
55
|
return this._index;
|
|
50
56
|
}
|
|
@@ -108,6 +114,32 @@ export class FaissStore extends SaveableVectorStore {
|
|
|
108
114
|
])),
|
|
109
115
|
]);
|
|
110
116
|
}
|
|
117
|
+
async mergeFrom(targetIndex) {
|
|
118
|
+
const targetIndexDimensions = targetIndex.index.getDimension();
|
|
119
|
+
if (!this._index) {
|
|
120
|
+
const { IndexFlatL2 } = await FaissStore.importFaiss();
|
|
121
|
+
this._index = new IndexFlatL2(targetIndexDimensions);
|
|
122
|
+
}
|
|
123
|
+
const d = this.index.getDimension();
|
|
124
|
+
if (targetIndexDimensions !== d) {
|
|
125
|
+
throw new Error("Cannot merge indexes with different dimensions.");
|
|
126
|
+
}
|
|
127
|
+
const targetMapping = targetIndex.getMapping();
|
|
128
|
+
const targetDocstore = targetIndex.getDocstore();
|
|
129
|
+
const targetSize = targetIndex.index.ntotal();
|
|
130
|
+
const documentIds = [];
|
|
131
|
+
const currentDocstoreSize = this.index.ntotal();
|
|
132
|
+
for (let i = 0; i < targetSize; i += 1) {
|
|
133
|
+
const targetId = targetMapping[i];
|
|
134
|
+
documentIds.push(targetId);
|
|
135
|
+
const targetDocument = targetDocstore.search(targetId);
|
|
136
|
+
const id = currentDocstoreSize + i;
|
|
137
|
+
this._mapping[id] = targetId;
|
|
138
|
+
this.docstore.add({ [targetId]: targetDocument });
|
|
139
|
+
}
|
|
140
|
+
this.index.mergeFrom(targetIndex.index);
|
|
141
|
+
return documentIds;
|
|
142
|
+
}
|
|
111
143
|
static async load(directory, embeddings) {
|
|
112
144
|
const fs = await import("node:fs/promises");
|
|
113
145
|
const path = await import("node:path");
|
|
@@ -205,6 +237,14 @@ export class FaissStore extends SaveableVectorStore {
|
|
|
205
237
|
await instance.addDocuments(docs);
|
|
206
238
|
return instance;
|
|
207
239
|
}
|
|
240
|
+
static async fromIndex(targetIndex, embeddings, dbConfig) {
|
|
241
|
+
const args = {
|
|
242
|
+
docstore: dbConfig?.docstore,
|
|
243
|
+
};
|
|
244
|
+
const instance = new this(embeddings, args);
|
|
245
|
+
await instance.mergeFrom(targetIndex);
|
|
246
|
+
return instance;
|
|
247
|
+
}
|
|
208
248
|
static async importFaiss() {
|
|
209
249
|
try {
|
|
210
250
|
const { default: { IndexFlatL2 }, } = await import("faiss-node");
|
|
@@ -33,10 +33,17 @@ class SupabaseVectorStore extends base_js_1.VectorStore {
|
|
|
33
33
|
writable: true,
|
|
34
34
|
value: void 0
|
|
35
35
|
});
|
|
36
|
+
Object.defineProperty(this, "upsertBatchSize", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
configurable: true,
|
|
39
|
+
writable: true,
|
|
40
|
+
value: 500
|
|
41
|
+
});
|
|
36
42
|
this.client = args.client;
|
|
37
43
|
this.tableName = args.tableName || "documents";
|
|
38
44
|
this.queryName = args.queryName || "match_documents";
|
|
39
45
|
this.filter = args.filter;
|
|
46
|
+
this.upsertBatchSize = args.upsertBatchSize ?? this.upsertBatchSize;
|
|
40
47
|
}
|
|
41
48
|
async addDocuments(documents, options) {
|
|
42
49
|
const texts = documents.map(({ pageContent }) => pageContent);
|
|
@@ -50,12 +57,11 @@ class SupabaseVectorStore extends base_js_1.VectorStore {
|
|
|
50
57
|
}));
|
|
51
58
|
// upsert returns 500/502/504 (yes really any of them) if given too many rows/characters
|
|
52
59
|
// ~2000 trips it, but my data is probably smaller than average pageContent and metadata
|
|
53
|
-
const chunkSize = 500;
|
|
54
60
|
let returnedIds = [];
|
|
55
|
-
for (let i = 0; i < rows.length; i +=
|
|
56
|
-
const chunk = rows.slice(i, i +
|
|
61
|
+
for (let i = 0; i < rows.length; i += this.upsertBatchSize) {
|
|
62
|
+
const chunk = rows.slice(i, i + this.upsertBatchSize).map((row, j) => {
|
|
57
63
|
if (options?.ids) {
|
|
58
|
-
return { id: options.ids[i], ...row };
|
|
64
|
+
return { id: options.ids[i + j], ...row };
|
|
59
65
|
}
|
|
60
66
|
return row;
|
|
61
67
|
});
|
|
@@ -11,6 +11,7 @@ export interface SupabaseLibArgs {
|
|
|
11
11
|
tableName?: string;
|
|
12
12
|
queryName?: string;
|
|
13
13
|
filter?: SupabaseMetadata | SupabaseFilterRPCCall;
|
|
14
|
+
upsertBatchSize?: number;
|
|
14
15
|
}
|
|
15
16
|
export declare class SupabaseVectorStore extends VectorStore {
|
|
16
17
|
FilterType: SupabaseMetadata | SupabaseFilterRPCCall;
|
|
@@ -18,13 +19,14 @@ export declare class SupabaseVectorStore extends VectorStore {
|
|
|
18
19
|
tableName: string;
|
|
19
20
|
queryName: string;
|
|
20
21
|
filter?: SupabaseMetadata | SupabaseFilterRPCCall;
|
|
22
|
+
upsertBatchSize: number;
|
|
21
23
|
_vectorstoreType(): string;
|
|
22
24
|
constructor(embeddings: Embeddings, args: SupabaseLibArgs);
|
|
23
25
|
addDocuments(documents: Document[], options?: {
|
|
24
|
-
ids?: string[];
|
|
26
|
+
ids?: string[] | number[];
|
|
25
27
|
}): Promise<string[]>;
|
|
26
28
|
addVectors(vectors: number[][], documents: Document[], options?: {
|
|
27
|
-
ids?: string[];
|
|
29
|
+
ids?: string[] | number[];
|
|
28
30
|
}): Promise<string[]>;
|
|
29
31
|
delete(params: {
|
|
30
32
|
ids: string[];
|
|
@@ -30,10 +30,17 @@ export class SupabaseVectorStore extends VectorStore {
|
|
|
30
30
|
writable: true,
|
|
31
31
|
value: void 0
|
|
32
32
|
});
|
|
33
|
+
Object.defineProperty(this, "upsertBatchSize", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
configurable: true,
|
|
36
|
+
writable: true,
|
|
37
|
+
value: 500
|
|
38
|
+
});
|
|
33
39
|
this.client = args.client;
|
|
34
40
|
this.tableName = args.tableName || "documents";
|
|
35
41
|
this.queryName = args.queryName || "match_documents";
|
|
36
42
|
this.filter = args.filter;
|
|
43
|
+
this.upsertBatchSize = args.upsertBatchSize ?? this.upsertBatchSize;
|
|
37
44
|
}
|
|
38
45
|
async addDocuments(documents, options) {
|
|
39
46
|
const texts = documents.map(({ pageContent }) => pageContent);
|
|
@@ -47,12 +54,11 @@ export class SupabaseVectorStore extends VectorStore {
|
|
|
47
54
|
}));
|
|
48
55
|
// upsert returns 500/502/504 (yes really any of them) if given too many rows/characters
|
|
49
56
|
// ~2000 trips it, but my data is probably smaller than average pageContent and metadata
|
|
50
|
-
const chunkSize = 500;
|
|
51
57
|
let returnedIds = [];
|
|
52
|
-
for (let i = 0; i < rows.length; i +=
|
|
53
|
-
const chunk = rows.slice(i, i +
|
|
58
|
+
for (let i = 0; i < rows.length; i += this.upsertBatchSize) {
|
|
59
|
+
const chunk = rows.slice(i, i + this.upsertBatchSize).map((row, j) => {
|
|
54
60
|
if (options?.ids) {
|
|
55
|
-
return { id: options.ids[i], ...row };
|
|
61
|
+
return { id: options.ids[i + j], ...row };
|
|
56
62
|
}
|
|
57
63
|
return row;
|
|
58
64
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../dist/document_transformers/mozilla_readability.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/document_transformers/mozilla_readability.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/document_transformers/mozilla_readability.js'
|
package/llms/bedrock.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../dist/llms/bedrock.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/llms/bedrock.js'
|
package/llms/bedrock.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/llms/bedrock.js'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "langchain",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.128",
|
|
4
4
|
"description": "Typescript bindings for langchain",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -139,6 +139,9 @@
|
|
|
139
139
|
"llms/sagemaker_endpoint.cjs",
|
|
140
140
|
"llms/sagemaker_endpoint.js",
|
|
141
141
|
"llms/sagemaker_endpoint.d.ts",
|
|
142
|
+
"llms/bedrock.cjs",
|
|
143
|
+
"llms/bedrock.js",
|
|
144
|
+
"llms/bedrock.d.ts",
|
|
142
145
|
"prompts.cjs",
|
|
143
146
|
"prompts.js",
|
|
144
147
|
"prompts.d.ts",
|
|
@@ -343,6 +346,9 @@
|
|
|
343
346
|
"document_transformers/html_to_text.cjs",
|
|
344
347
|
"document_transformers/html_to_text.js",
|
|
345
348
|
"document_transformers/html_to_text.d.ts",
|
|
349
|
+
"document_transformers/mozilla_readability.cjs",
|
|
350
|
+
"document_transformers/mozilla_readability.js",
|
|
351
|
+
"document_transformers/mozilla_readability.d.ts",
|
|
346
352
|
"document_transformers/openai_functions.cjs",
|
|
347
353
|
"document_transformers/openai_functions.js",
|
|
348
354
|
"document_transformers/openai_functions.d.ts",
|
|
@@ -561,12 +567,17 @@
|
|
|
561
567
|
"author": "LangChain",
|
|
562
568
|
"license": "MIT",
|
|
563
569
|
"devDependencies": {
|
|
570
|
+
"@aws-crypto/sha256-js": "^5.0.0",
|
|
564
571
|
"@aws-sdk/client-dynamodb": "^3.310.0",
|
|
565
572
|
"@aws-sdk/client-kendra": "^3.352.0",
|
|
566
573
|
"@aws-sdk/client-lambda": "^3.310.0",
|
|
567
574
|
"@aws-sdk/client-s3": "^3.310.0",
|
|
568
575
|
"@aws-sdk/client-sagemaker-runtime": "^3.310.0",
|
|
569
576
|
"@aws-sdk/client-sfn": "^3.362.0",
|
|
577
|
+
"@aws-sdk/credential-provider-node": "^3.388.0",
|
|
578
|
+
"@aws-sdk/protocol-http": "^3.374.0",
|
|
579
|
+
"@aws-sdk/signature-v4": "^3.374.0",
|
|
580
|
+
"@aws-sdk/types": "^3.357.0",
|
|
570
581
|
"@azure/storage-blob": "^12.15.0",
|
|
571
582
|
"@clickhouse/client": "^0.0.14",
|
|
572
583
|
"@elastic/elasticsearch": "^8.4.0",
|
|
@@ -578,6 +589,7 @@
|
|
|
578
589
|
"@google-cloud/storage": "^6.10.1",
|
|
579
590
|
"@huggingface/inference": "^1.5.1",
|
|
580
591
|
"@jest/globals": "^29.5.0",
|
|
592
|
+
"@mozilla/readability": "^0.4.4",
|
|
581
593
|
"@notionhq/client": "^2.2.5",
|
|
582
594
|
"@opensearch-project/opensearch": "^2.2.0",
|
|
583
595
|
"@pinecone-database/pinecone": "^0.0.14",
|
|
@@ -597,6 +609,8 @@
|
|
|
597
609
|
"@types/flat": "^5.0.2",
|
|
598
610
|
"@types/html-to-text": "^9",
|
|
599
611
|
"@types/js-yaml": "^4",
|
|
612
|
+
"@types/jsdom": "^21.1.1",
|
|
613
|
+
"@types/mozilla-readability": "^0.2.1",
|
|
600
614
|
"@types/object-hash": "^3.0.2",
|
|
601
615
|
"@types/pdf-parse": "^1.1.1",
|
|
602
616
|
"@types/pg": "^8",
|
|
@@ -622,7 +636,7 @@
|
|
|
622
636
|
"eslint-plugin-import": "^2.27.5",
|
|
623
637
|
"eslint-plugin-no-instanceof": "^1.0.1",
|
|
624
638
|
"eslint-plugin-prettier": "^4.2.1",
|
|
625
|
-
"faiss-node": "^0.
|
|
639
|
+
"faiss-node": "^0.3.0",
|
|
626
640
|
"firebase-admin": "^11.9.0",
|
|
627
641
|
"google-auth-library": "^8.9.0",
|
|
628
642
|
"graphql": "^16.6.0",
|
|
@@ -631,6 +645,7 @@
|
|
|
631
645
|
"ignore": "^5.2.0",
|
|
632
646
|
"ioredis": "^5.3.2",
|
|
633
647
|
"jest": "^29.5.0",
|
|
648
|
+
"jsdom": "^22.1.0",
|
|
634
649
|
"mammoth": "^1.5.1",
|
|
635
650
|
"ml-matrix": "^6.10.4",
|
|
636
651
|
"mongodb": "^5.2.0",
|
|
@@ -661,12 +676,16 @@
|
|
|
661
676
|
"weaviate-ts-client": "^1.4.0"
|
|
662
677
|
},
|
|
663
678
|
"peerDependencies": {
|
|
679
|
+
"@aws-crypto/sha256-js": "^5.0.0",
|
|
664
680
|
"@aws-sdk/client-dynamodb": "^3.310.0",
|
|
665
681
|
"@aws-sdk/client-kendra": "^3.352.0",
|
|
666
682
|
"@aws-sdk/client-lambda": "^3.310.0",
|
|
667
683
|
"@aws-sdk/client-s3": "^3.310.0",
|
|
668
684
|
"@aws-sdk/client-sagemaker-runtime": "^3.310.0",
|
|
669
685
|
"@aws-sdk/client-sfn": "^3.310.0",
|
|
686
|
+
"@aws-sdk/credential-provider-node": "^3.388.0",
|
|
687
|
+
"@aws-sdk/protocol-http": "^3.374.0",
|
|
688
|
+
"@aws-sdk/signature-v4": "^3.374.0",
|
|
670
689
|
"@azure/storage-blob": "^12.15.0",
|
|
671
690
|
"@clickhouse/client": "^0.0.14",
|
|
672
691
|
"@elastic/elasticsearch": "^8.4.0",
|
|
@@ -676,6 +695,7 @@
|
|
|
676
695
|
"@google-ai/generativelanguage": "^0.2.1",
|
|
677
696
|
"@google-cloud/storage": "^6.10.1",
|
|
678
697
|
"@huggingface/inference": "^1.5.1",
|
|
698
|
+
"@mozilla/readability": "*",
|
|
679
699
|
"@notionhq/client": "^2.2.5",
|
|
680
700
|
"@opensearch-project/opensearch": "*",
|
|
681
701
|
"@pinecone-database/pinecone": "*",
|
|
@@ -698,13 +718,14 @@
|
|
|
698
718
|
"cohere-ai": "^5.0.2",
|
|
699
719
|
"d3-dsv": "^2.0.0",
|
|
700
720
|
"epub2": "^3.0.1",
|
|
701
|
-
"faiss-node": "^0.
|
|
721
|
+
"faiss-node": "^0.3.0",
|
|
702
722
|
"firebase-admin": "^11.9.0",
|
|
703
723
|
"google-auth-library": "^8.9.0",
|
|
704
724
|
"hnswlib-node": "^1.4.2",
|
|
705
725
|
"html-to-text": "^9.0.5",
|
|
706
726
|
"ignore": "^5.2.0",
|
|
707
727
|
"ioredis": "^5.3.2",
|
|
728
|
+
"jsdom": "*",
|
|
708
729
|
"mammoth": "*",
|
|
709
730
|
"mongodb": "^5.2.0",
|
|
710
731
|
"mysql2": "^3.3.3",
|
|
@@ -727,6 +748,9 @@
|
|
|
727
748
|
"weaviate-ts-client": "^1.4.0"
|
|
728
749
|
},
|
|
729
750
|
"peerDependenciesMeta": {
|
|
751
|
+
"@aws-crypto/sha256-js": {
|
|
752
|
+
"optional": true
|
|
753
|
+
},
|
|
730
754
|
"@aws-sdk/client-dynamodb": {
|
|
731
755
|
"optional": true
|
|
732
756
|
},
|
|
@@ -745,6 +769,15 @@
|
|
|
745
769
|
"@aws-sdk/client-sfn": {
|
|
746
770
|
"optional": true
|
|
747
771
|
},
|
|
772
|
+
"@aws-sdk/credential-provider-node": {
|
|
773
|
+
"optional": true
|
|
774
|
+
},
|
|
775
|
+
"@aws-sdk/protocol-http": {
|
|
776
|
+
"optional": true
|
|
777
|
+
},
|
|
778
|
+
"@aws-sdk/signature-v4": {
|
|
779
|
+
"optional": true
|
|
780
|
+
},
|
|
748
781
|
"@azure/storage-blob": {
|
|
749
782
|
"optional": true
|
|
750
783
|
},
|
|
@@ -1185,6 +1218,11 @@
|
|
|
1185
1218
|
"import": "./llms/sagemaker_endpoint.js",
|
|
1186
1219
|
"require": "./llms/sagemaker_endpoint.cjs"
|
|
1187
1220
|
},
|
|
1221
|
+
"./llms/bedrock": {
|
|
1222
|
+
"types": "./llms/bedrock.d.ts",
|
|
1223
|
+
"import": "./llms/bedrock.js",
|
|
1224
|
+
"require": "./llms/bedrock.cjs"
|
|
1225
|
+
},
|
|
1188
1226
|
"./prompts": {
|
|
1189
1227
|
"types": "./prompts.d.ts",
|
|
1190
1228
|
"import": "./prompts.js",
|
|
@@ -1529,6 +1567,11 @@
|
|
|
1529
1567
|
"import": "./document_transformers/html_to_text.js",
|
|
1530
1568
|
"require": "./document_transformers/html_to_text.cjs"
|
|
1531
1569
|
},
|
|
1570
|
+
"./document_transformers/mozilla_readability": {
|
|
1571
|
+
"types": "./document_transformers/mozilla_readability.d.ts",
|
|
1572
|
+
"import": "./document_transformers/mozilla_readability.js",
|
|
1573
|
+
"require": "./document_transformers/mozilla_readability.cjs"
|
|
1574
|
+
},
|
|
1532
1575
|
"./document_transformers/openai_functions": {
|
|
1533
1576
|
"types": "./document_transformers/openai_functions.d.ts",
|
|
1534
1577
|
"import": "./document_transformers/openai_functions.js",
|