langchain 0.0.177 → 0.0.179
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/chains/combine_documents/reduce.cjs +1 -0
- package/chains/combine_documents/reduce.d.ts +1 -0
- package/chains/combine_documents/reduce.js +1 -0
- package/chat_models/iflytek_xinghuo/web.cjs +1 -0
- package/chat_models/iflytek_xinghuo/web.d.ts +1 -0
- package/chat_models/iflytek_xinghuo/web.js +1 -0
- package/chat_models/iflytek_xinghuo.cjs +1 -0
- package/chat_models/iflytek_xinghuo.d.ts +1 -0
- package/chat_models/iflytek_xinghuo.js +1 -0
- package/dist/cache/base.d.ts +1 -1
- package/dist/callbacks/index.d.ts +1 -1
- package/dist/chains/combine_documents/reduce.cjs +67 -0
- package/dist/chains/combine_documents/reduce.d.ts +28 -0
- package/dist/chains/combine_documents/reduce.js +62 -0
- package/dist/chat_models/cloudflare_workersai.cjs +70 -24
- package/dist/chat_models/cloudflare_workersai.d.ts +6 -2
- package/dist/chat_models/cloudflare_workersai.js +71 -25
- package/dist/chat_models/iflytek_xinghuo/common.cjs +335 -0
- package/dist/chat_models/iflytek_xinghuo/common.d.ts +165 -0
- package/dist/chat_models/iflytek_xinghuo/common.js +331 -0
- package/dist/chat_models/iflytek_xinghuo/index.cjs +35 -0
- package/dist/chat_models/iflytek_xinghuo/index.d.ts +5 -0
- package/dist/chat_models/iflytek_xinghuo/index.js +28 -0
- package/dist/chat_models/iflytek_xinghuo/web.cjs +30 -0
- package/dist/chat_models/iflytek_xinghuo/web.d.ts +5 -0
- package/dist/chat_models/iflytek_xinghuo/web.js +26 -0
- package/dist/graphs/neo4j_graph.cjs +36 -5
- package/dist/graphs/neo4j_graph.js +14 -3
- package/dist/llms/cloudflare_workersai.cjs +59 -13
- package/dist/llms/cloudflare_workersai.d.ts +9 -3
- package/dist/llms/cloudflare_workersai.js +59 -13
- package/dist/load/import_constants.cjs +2 -0
- package/dist/load/import_constants.js +2 -0
- package/dist/load/import_map.cjs +4 -2
- package/dist/load/import_map.d.ts +2 -0
- package/dist/load/import_map.js +2 -0
- package/dist/output_parsers/json.cjs +77 -0
- package/dist/output_parsers/json.d.ts +1 -0
- package/dist/output_parsers/json.js +73 -0
- package/dist/output_parsers/openai_functions.cjs +37 -2
- package/dist/output_parsers/openai_functions.d.ts +10 -5
- package/dist/output_parsers/openai_functions.js +38 -3
- package/dist/prompts/chat.cjs +8 -0
- package/dist/prompts/chat.d.ts +5 -0
- package/dist/prompts/chat.js +8 -0
- package/dist/schema/index.cjs +33 -1
- package/dist/schema/index.d.ts +3 -1
- package/dist/schema/index.js +31 -0
- package/dist/schema/output_parser.cjs +63 -3
- package/dist/schema/output_parser.d.ts +16 -1
- package/dist/schema/output_parser.js +59 -0
- package/dist/schema/prompt_template.cjs +33 -0
- package/dist/schema/prompt_template.d.ts +12 -0
- package/dist/schema/prompt_template.js +29 -0
- package/dist/storage/convex.d.ts +21 -0
- package/dist/stores/message/convex.d.ts +21 -0
- package/dist/util/event-source-parse.cjs +20 -1
- package/dist/util/event-source-parse.d.ts +2 -0
- package/dist/util/event-source-parse.js +18 -0
- package/dist/util/fast-json-patch/index.cjs +1 -0
- package/dist/util/fast-json-patch/index.d.ts +1 -0
- package/dist/util/fast-json-patch/index.js +1 -0
- package/dist/util/fast-json-patch/src/duplex.cjs +237 -0
- package/dist/util/fast-json-patch/src/duplex.d.ts +23 -0
- package/dist/util/fast-json-patch/src/duplex.js +230 -0
- package/dist/util/iflytek_websocket_stream.cjs +81 -0
- package/dist/util/iflytek_websocket_stream.d.ts +27 -0
- package/dist/util/iflytek_websocket_stream.js +77 -0
- package/dist/vectorstores/convex.d.ts +21 -0
- package/package.json +38 -1
- package/schema/prompt_template.cjs +1 -0
- package/schema/prompt_template.d.ts +1 -0
- package/schema/prompt_template.js +1 -0
|
@@ -14,12 +14,33 @@ export type ConvexVectorStoreConfig<DataModel extends GenericDataModel, TableNam
|
|
|
14
14
|
id: string;
|
|
15
15
|
}, object | null>> = {
|
|
16
16
|
readonly ctx: GenericActionCtx<DataModel>;
|
|
17
|
+
/**
|
|
18
|
+
* Defaults to "documents"
|
|
19
|
+
*/
|
|
17
20
|
readonly table?: TableName;
|
|
21
|
+
/**
|
|
22
|
+
* Defaults to "byEmbedding"
|
|
23
|
+
*/
|
|
18
24
|
readonly index?: IndexName;
|
|
25
|
+
/**
|
|
26
|
+
* Defaults to "text"
|
|
27
|
+
*/
|
|
19
28
|
readonly textField?: TextFieldName;
|
|
29
|
+
/**
|
|
30
|
+
* Defaults to "embedding"
|
|
31
|
+
*/
|
|
20
32
|
readonly embeddingField?: EmbeddingFieldName;
|
|
33
|
+
/**
|
|
34
|
+
* Defaults to "metadata"
|
|
35
|
+
*/
|
|
21
36
|
readonly metadataField?: MetadataFieldName;
|
|
37
|
+
/**
|
|
38
|
+
* Defaults to `internal.langchain.db.insert`
|
|
39
|
+
*/
|
|
22
40
|
readonly insert?: InsertMutation;
|
|
41
|
+
/**
|
|
42
|
+
* Defaults to `internal.langchain.db.get`
|
|
43
|
+
*/
|
|
23
44
|
readonly get?: GetQuery;
|
|
24
45
|
};
|
|
25
46
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "langchain",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.179",
|
|
4
4
|
"description": "Typescript bindings for langchain",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -82,6 +82,9 @@
|
|
|
82
82
|
"chains.cjs",
|
|
83
83
|
"chains.js",
|
|
84
84
|
"chains.d.ts",
|
|
85
|
+
"chains/combine_documents/reduce.cjs",
|
|
86
|
+
"chains/combine_documents/reduce.js",
|
|
87
|
+
"chains/combine_documents/reduce.d.ts",
|
|
85
88
|
"chains/load.cjs",
|
|
86
89
|
"chains/load.js",
|
|
87
90
|
"chains/load.d.ts",
|
|
@@ -496,6 +499,12 @@
|
|
|
496
499
|
"chat_models/baiduwenxin.cjs",
|
|
497
500
|
"chat_models/baiduwenxin.js",
|
|
498
501
|
"chat_models/baiduwenxin.d.ts",
|
|
502
|
+
"chat_models/iflytek_xinghuo.cjs",
|
|
503
|
+
"chat_models/iflytek_xinghuo.js",
|
|
504
|
+
"chat_models/iflytek_xinghuo.d.ts",
|
|
505
|
+
"chat_models/iflytek_xinghuo/web.cjs",
|
|
506
|
+
"chat_models/iflytek_xinghuo/web.js",
|
|
507
|
+
"chat_models/iflytek_xinghuo/web.d.ts",
|
|
499
508
|
"chat_models/ollama.cjs",
|
|
500
509
|
"chat_models/ollama.js",
|
|
501
510
|
"chat_models/ollama.d.ts",
|
|
@@ -520,6 +529,9 @@
|
|
|
520
529
|
"schema/output_parser.cjs",
|
|
521
530
|
"schema/output_parser.js",
|
|
522
531
|
"schema/output_parser.d.ts",
|
|
532
|
+
"schema/prompt_template.cjs",
|
|
533
|
+
"schema/prompt_template.js",
|
|
534
|
+
"schema/prompt_template.d.ts",
|
|
523
535
|
"schema/query_constructor.cjs",
|
|
524
536
|
"schema/query_constructor.js",
|
|
525
537
|
"schema/query_constructor.d.ts",
|
|
@@ -849,6 +861,7 @@
|
|
|
849
861
|
"@types/pg": "^8",
|
|
850
862
|
"@types/pg-copy-streams": "^1.2.2",
|
|
851
863
|
"@types/uuid": "^9",
|
|
864
|
+
"@types/ws": "^8",
|
|
852
865
|
"@typescript-eslint/eslint-plugin": "^5.58.0",
|
|
853
866
|
"@typescript-eslint/parser": "^5.58.0",
|
|
854
867
|
"@upstash/redis": "^1.20.6",
|
|
@@ -1025,6 +1038,7 @@
|
|
|
1025
1038
|
"voy-search": "0.6.2",
|
|
1026
1039
|
"weaviate-ts-client": "^1.4.0",
|
|
1027
1040
|
"web-auth-library": "^1.0.3",
|
|
1041
|
+
"ws": "^8.14.2",
|
|
1028
1042
|
"youtube-transcript": "^1.0.6",
|
|
1029
1043
|
"youtubei.js": "^5.8.0"
|
|
1030
1044
|
},
|
|
@@ -1311,6 +1325,9 @@
|
|
|
1311
1325
|
"web-auth-library": {
|
|
1312
1326
|
"optional": true
|
|
1313
1327
|
},
|
|
1328
|
+
"ws": {
|
|
1329
|
+
"optional": true
|
|
1330
|
+
},
|
|
1314
1331
|
"youtube-transcript": {
|
|
1315
1332
|
"optional": true
|
|
1316
1333
|
},
|
|
@@ -1480,6 +1497,11 @@
|
|
|
1480
1497
|
"import": "./chains.js",
|
|
1481
1498
|
"require": "./chains.cjs"
|
|
1482
1499
|
},
|
|
1500
|
+
"./chains/combine_documents/reduce": {
|
|
1501
|
+
"types": "./chains/combine_documents/reduce.d.ts",
|
|
1502
|
+
"import": "./chains/combine_documents/reduce.js",
|
|
1503
|
+
"require": "./chains/combine_documents/reduce.cjs"
|
|
1504
|
+
},
|
|
1483
1505
|
"./chains/load": {
|
|
1484
1506
|
"types": "./chains/load.d.ts",
|
|
1485
1507
|
"import": "./chains/load.js",
|
|
@@ -2170,6 +2192,16 @@
|
|
|
2170
2192
|
"import": "./chat_models/baiduwenxin.js",
|
|
2171
2193
|
"require": "./chat_models/baiduwenxin.cjs"
|
|
2172
2194
|
},
|
|
2195
|
+
"./chat_models/iflytek_xinghuo": {
|
|
2196
|
+
"types": "./chat_models/iflytek_xinghuo.d.ts",
|
|
2197
|
+
"import": "./chat_models/iflytek_xinghuo.js",
|
|
2198
|
+
"require": "./chat_models/iflytek_xinghuo.cjs"
|
|
2199
|
+
},
|
|
2200
|
+
"./chat_models/iflytek_xinghuo/web": {
|
|
2201
|
+
"types": "./chat_models/iflytek_xinghuo/web.d.ts",
|
|
2202
|
+
"import": "./chat_models/iflytek_xinghuo/web.js",
|
|
2203
|
+
"require": "./chat_models/iflytek_xinghuo/web.cjs"
|
|
2204
|
+
},
|
|
2173
2205
|
"./chat_models/ollama": {
|
|
2174
2206
|
"types": "./chat_models/ollama.d.ts",
|
|
2175
2207
|
"import": "./chat_models/ollama.js",
|
|
@@ -2210,6 +2242,11 @@
|
|
|
2210
2242
|
"import": "./schema/output_parser.js",
|
|
2211
2243
|
"require": "./schema/output_parser.cjs"
|
|
2212
2244
|
},
|
|
2245
|
+
"./schema/prompt_template": {
|
|
2246
|
+
"types": "./schema/prompt_template.d.ts",
|
|
2247
|
+
"import": "./schema/prompt_template.js",
|
|
2248
|
+
"require": "./schema/prompt_template.cjs"
|
|
2249
|
+
},
|
|
2213
2250
|
"./schema/query_constructor": {
|
|
2214
2251
|
"types": "./schema/query_constructor.d.ts",
|
|
2215
2252
|
"import": "./schema/query_constructor.js",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../dist/schema/prompt_template.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/schema/prompt_template.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/schema/prompt_template.js'
|