langchain 0.0.142 → 0.0.144

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.
Files changed (68) hide show
  1. package/callbacks/handlers/llmonitor.cjs +1 -0
  2. package/callbacks/handlers/llmonitor.d.ts +1 -0
  3. package/callbacks/handlers/llmonitor.js +1 -0
  4. package/dist/agents/mrkl/outputParser.cjs +1 -1
  5. package/dist/agents/mrkl/outputParser.js +1 -1
  6. package/dist/base_language/index.cjs +2 -1
  7. package/dist/base_language/index.d.ts +7 -2
  8. package/dist/base_language/index.js +2 -1
  9. package/dist/callbacks/handlers/llmonitor.cjs +223 -0
  10. package/dist/callbacks/handlers/llmonitor.d.ts +35 -0
  11. package/dist/callbacks/handlers/llmonitor.js +215 -0
  12. package/dist/chains/openai_functions/extraction.d.ts +4 -4
  13. package/dist/chains/openai_functions/openapi.d.ts +3 -3
  14. package/dist/chains/openai_functions/structured_output.d.ts +5 -4
  15. package/dist/chains/openai_functions/tagging.d.ts +4 -4
  16. package/dist/chains/openai_moderation.cjs +1 -0
  17. package/dist/chains/openai_moderation.js +1 -0
  18. package/dist/chat_models/base.cjs +4 -3
  19. package/dist/chat_models/base.d.ts +3 -3
  20. package/dist/chat_models/base.js +5 -4
  21. package/dist/chat_models/minimax.d.ts +6 -28
  22. package/dist/chat_models/openai.cjs +1 -0
  23. package/dist/chat_models/openai.d.ts +2 -3
  24. package/dist/chat_models/openai.js +1 -0
  25. package/dist/document_loaders/fs/openai_whisper_audio.cjs +32 -0
  26. package/dist/document_loaders/fs/openai_whisper_audio.d.ts +11 -0
  27. package/dist/document_loaders/fs/openai_whisper_audio.js +28 -0
  28. package/dist/document_loaders/web/github.cjs +210 -24
  29. package/dist/document_loaders/web/github.d.ts +44 -1
  30. package/dist/document_loaders/web/github.js +210 -24
  31. package/dist/document_loaders/web/recursive_url.cjs +13 -0
  32. package/dist/document_loaders/web/recursive_url.js +13 -0
  33. package/dist/embeddings/hf_transformers.cjs +71 -0
  34. package/dist/embeddings/hf_transformers.d.ts +29 -0
  35. package/dist/embeddings/hf_transformers.js +67 -0
  36. package/dist/embeddings/openai.cjs +2 -1
  37. package/dist/embeddings/openai.js +2 -1
  38. package/dist/experimental/chat_models/anthropic_functions.d.ts +2 -5
  39. package/dist/llms/openai-chat.cjs +1 -0
  40. package/dist/llms/openai-chat.js +1 -0
  41. package/dist/llms/openai.cjs +1 -0
  42. package/dist/llms/openai.js +1 -0
  43. package/dist/load/import_constants.cjs +3 -0
  44. package/dist/load/import_constants.js +3 -0
  45. package/dist/prompts/chat.cjs +27 -1
  46. package/dist/prompts/chat.d.ts +3 -2
  47. package/dist/prompts/chat.js +28 -2
  48. package/dist/schema/index.cjs +44 -1
  49. package/dist/schema/index.d.ts +10 -0
  50. package/dist/schema/index.js +41 -0
  51. package/dist/tools/serpapi.cjs +108 -13
  52. package/dist/tools/serpapi.js +108 -13
  53. package/dist/vectorstores/redis.cjs +12 -4
  54. package/dist/vectorstores/redis.d.ts +8 -0
  55. package/dist/vectorstores/redis.js +12 -4
  56. package/dist/vectorstores/tigris.cjs +2 -0
  57. package/dist/vectorstores/tigris.d.ts +2 -3
  58. package/dist/vectorstores/tigris.js +2 -0
  59. package/dist/vectorstores/vectara.cjs +30 -12
  60. package/dist/vectorstores/vectara.d.ts +1 -1
  61. package/dist/vectorstores/vectara.js +30 -12
  62. package/document_loaders/fs/openai_whisper_audio.cjs +1 -0
  63. package/document_loaders/fs/openai_whisper_audio.d.ts +1 -0
  64. package/document_loaders/fs/openai_whisper_audio.js +1 -0
  65. package/embeddings/hf_transformers.cjs +1 -0
  66. package/embeddings/hf_transformers.d.ts +1 -0
  67. package/embeddings/hf_transformers.js +1 -0
  68. package/package.json +36 -6
@@ -29,6 +29,11 @@ export type CreateSchemaHNSWVectorField = CreateSchemaVectorField<VectorAlgorith
29
29
  EF_CONSTRUCTION?: number;
30
30
  EF_RUNTIME?: number;
31
31
  }>;
32
+ type CreateIndexOptions = NonNullable<Parameters<ReturnType<typeof createClient>["ft"]["create"]>[3]>;
33
+ export type RedisSearchLanguages = `${NonNullable<CreateIndexOptions["LANGUAGE"]>}`;
34
+ export type RedisVectorStoreIndexOptions = Omit<CreateIndexOptions, "LANGUAGE"> & {
35
+ LANGUAGE?: RedisSearchLanguages;
36
+ };
32
37
  /**
33
38
  * Interface for the configuration of the RedisVectorStore. It includes
34
39
  * the Redis client, index name, index options, key prefix, content key,
@@ -38,6 +43,7 @@ export interface RedisVectorStoreConfig {
38
43
  redisClient: ReturnType<typeof createClient> | ReturnType<typeof createCluster>;
39
44
  indexName: string;
40
45
  indexOptions?: CreateSchemaFlatVectorField | CreateSchemaHNSWVectorField;
46
+ createIndexOptions?: Omit<RedisVectorStoreIndexOptions, "PREFIX">;
41
47
  keyPrefix?: string;
42
48
  contentKey?: string;
43
49
  metadataKey?: string;
@@ -67,6 +73,7 @@ export declare class RedisVectorStore extends VectorStore {
67
73
  private redisClient;
68
74
  indexName: string;
69
75
  indexOptions: CreateSchemaFlatVectorField | CreateSchemaHNSWVectorField;
76
+ createIndexOptions: CreateIndexOptions;
70
77
  keyPrefix: string;
71
78
  contentKey: string;
72
79
  metadataKey: string;
@@ -176,3 +183,4 @@ export declare class RedisVectorStore extends VectorStore {
176
183
  */
177
184
  private getFloat32Buffer;
178
185
  }
186
+ export {};
@@ -30,6 +30,12 @@ export class RedisVectorStore extends VectorStore {
30
30
  writable: true,
31
31
  value: void 0
32
32
  });
33
+ Object.defineProperty(this, "createIndexOptions", {
34
+ enumerable: true,
35
+ configurable: true,
36
+ writable: true,
37
+ value: void 0
38
+ });
33
39
  Object.defineProperty(this, "keyPrefix", {
34
40
  enumerable: true,
35
41
  configurable: true,
@@ -71,6 +77,11 @@ export class RedisVectorStore extends VectorStore {
71
77
  this.metadataKey = _dbConfig.metadataKey ?? "metadata";
72
78
  this.vectorKey = _dbConfig.vectorKey ?? "content_vector";
73
79
  this.filter = _dbConfig.filter;
80
+ this.createIndexOptions = {
81
+ ON: "HASH",
82
+ PREFIX: this.keyPrefix,
83
+ ..._dbConfig.createIndexOptions,
84
+ };
74
85
  }
75
86
  /**
76
87
  * Method for adding documents to the RedisVectorStore. It first converts
@@ -225,10 +236,7 @@ export class RedisVectorStore extends VectorStore {
225
236
  [this.contentKey]: SchemaFieldTypes.TEXT,
226
237
  [this.metadataKey]: SchemaFieldTypes.TEXT,
227
238
  };
228
- await this.redisClient.ft.create(this.indexName, schema, {
229
- ON: "HASH",
230
- PREFIX: this.keyPrefix,
231
- });
239
+ await this.redisClient.ft.create(this.indexName, schema, this.createIndexOptions);
232
240
  }
233
241
  /**
234
242
  * Method for dropping an index from the RedisVectorStore.
@@ -37,6 +37,7 @@ class TigrisVectorStore extends base_js_1.VectorStore {
37
37
  }
38
38
  constructor(embeddings, args) {
39
39
  super(embeddings, args);
40
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
40
41
  Object.defineProperty(this, "index", {
41
42
  enumerable: true,
42
43
  configurable: true,
@@ -98,6 +99,7 @@ class TigrisVectorStore extends base_js_1.VectorStore {
98
99
  if (!result) {
99
100
  return [];
100
101
  }
102
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
101
103
  return result.map(([document, score]) => [
102
104
  new document_js_1.Document({
103
105
  pageContent: document.content,
@@ -1,4 +1,3 @@
1
- import type { VectorDocumentStore as VectorDocumentStoreT } from "@tigrisdata/vector";
2
1
  import { Embeddings } from "../embeddings/base.js";
3
2
  import { VectorStore } from "./base.js";
4
3
  import { Document } from "../document.js";
@@ -7,14 +6,14 @@ import { Document } from "../document.js";
7
6
  * TigrisVectorStore instance.
8
7
  */
9
8
  export type TigrisLibArgs = {
10
- index: VectorDocumentStoreT;
9
+ index: any;
11
10
  };
12
11
  /**
13
12
  * Class for managing and operating vector search applications with
14
13
  * Tigris, an open-source Serverless NoSQL Database and Search Platform.
15
14
  */
16
15
  export declare class TigrisVectorStore extends VectorStore {
17
- index?: VectorDocumentStoreT;
16
+ index?: any;
18
17
  _vectorstoreType(): string;
19
18
  constructor(embeddings: Embeddings, args: TigrisLibArgs);
20
19
  /**
@@ -11,6 +11,7 @@ export class TigrisVectorStore extends VectorStore {
11
11
  }
12
12
  constructor(embeddings, args) {
13
13
  super(embeddings, args);
14
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
14
15
  Object.defineProperty(this, "index", {
15
16
  enumerable: true,
16
17
  configurable: true,
@@ -72,6 +73,7 @@ export class TigrisVectorStore extends VectorStore {
72
73
  if (!result) {
73
74
  return [];
74
75
  }
76
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
75
77
  return result.map(([document, score]) => [
76
78
  new Document({
77
79
  pageContent: document.content,
@@ -72,11 +72,26 @@ class VectaraStore extends base_js_1.VectorStore {
72
72
  throw new Error("Vectara api key is not provided.");
73
73
  }
74
74
  this.apiKey = apiKey;
75
- const corpusId = args.corpusId ?? (0, env_js_1.getEnvironmentVariable)("VECTARA_CORPUS_ID");
75
+ const corpusId = args.corpusId ??
76
+ (0, env_js_1.getEnvironmentVariable)("VECTARA_CORPUS_ID")
77
+ ?.split(",")
78
+ .map((id) => {
79
+ const num = Number(id);
80
+ if (Number.isNaN(num))
81
+ throw new Error("Vectara corpus id is not a number.");
82
+ return num;
83
+ });
76
84
  if (!corpusId) {
77
85
  throw new Error("Vectara corpus id is not provided.");
78
86
  }
79
- this.corpusId = corpusId;
87
+ if (typeof corpusId === "number") {
88
+ this.corpusId = [corpusId];
89
+ }
90
+ else {
91
+ if (corpusId.length === 0)
92
+ throw new Error("Vectara corpus id is not provided.");
93
+ this.corpusId = corpusId;
94
+ }
80
95
  const customerId = args.customerId ?? (0, env_js_1.getEnvironmentVariable)("VECTARA_CUSTOMER_ID");
81
96
  if (!customerId) {
82
97
  throw new Error("Vectara customer id is not provided.");
@@ -113,12 +128,14 @@ class VectaraStore extends base_js_1.VectorStore {
113
128
  * @returns A Promise that resolves when the documents have been added.
114
129
  */
115
130
  async addDocuments(documents) {
131
+ if (this.corpusId.length > 1)
132
+ throw new Error("addDocuments does not support multiple corpus ids");
116
133
  const headers = await this.getJsonHeader();
117
134
  let countAdded = 0;
118
135
  for (const [index, document] of documents.entries()) {
119
136
  const data = {
120
137
  customer_id: this.customerId,
121
- corpus_id: this.corpusId,
138
+ corpus_id: this.corpusId[0],
122
139
  document: {
123
140
  document_id: document.metadata?.document_id ?? `${Date.now()}${index}`,
124
141
  title: document.metadata?.title ?? "",
@@ -173,6 +190,8 @@ class VectaraStore extends base_js_1.VectorStore {
173
190
  * @returns A Promise that resolves to the number of successfully uploaded files.
174
191
  */
175
192
  async addFiles(filePaths, metadatas = undefined) {
193
+ if (this.corpusId.length > 1)
194
+ throw new Error("addFiles does not support multiple corpus ids");
176
195
  let numDocs = 0;
177
196
  for (const [index, fileBlob] of filePaths.entries()) {
178
197
  const md = metadatas ? metadatas[index] : {};
@@ -180,7 +199,7 @@ class VectaraStore extends base_js_1.VectorStore {
180
199
  data.append("file", fileBlob, `file_${index}`);
181
200
  data.append("doc-metadata", JSON.stringify(md));
182
201
  try {
183
- const response = await fetch(`https://api.vectara.io/v1/upload?c=${this.customerId}&o=${this.corpusId}`, {
202
+ const response = await fetch(`https://api.vectara.io/v1/upload?c=${this.customerId}&o=${this.corpusId[0]}`, {
184
203
  method: "POST",
185
204
  headers: {
186
205
  "x-api-key": this.apiKey,
@@ -215,6 +234,12 @@ class VectaraStore extends base_js_1.VectorStore {
215
234
  */
216
235
  async similaritySearchWithScore(query, k = 10, filter = undefined) {
217
236
  const headers = await this.getJsonHeader();
237
+ const corpusKeys = this.corpusId.map((corpusId) => ({
238
+ customerId: this.customerId,
239
+ corpusId,
240
+ metadataFilter: filter?.filter ?? "",
241
+ lexicalInterpolationConfig: { lambda: filter?.lambda ?? 0.025 },
242
+ }));
218
243
  const data = {
219
244
  query: [
220
245
  {
@@ -224,14 +249,7 @@ class VectaraStore extends base_js_1.VectorStore {
224
249
  sentencesAfter: filter?.contextConfig?.sentencesAfter ?? 2,
225
250
  sentencesBefore: filter?.contextConfig?.sentencesBefore ?? 2,
226
251
  },
227
- corpusKey: [
228
- {
229
- customerId: this.customerId,
230
- corpusId: this.corpusId,
231
- metadataFilter: filter?.filter ?? "",
232
- lexicalInterpolationConfig: { lambda: filter?.lambda ?? 0.025 },
233
- },
234
- ],
252
+ corpusKey: corpusKeys,
235
253
  },
236
254
  ],
237
255
  };
@@ -7,7 +7,7 @@ import { VectorStore } from "./base.js";
7
7
  */
8
8
  export interface VectaraLibArgs {
9
9
  customerId: number;
10
- corpusId: number;
10
+ corpusId: number | number[];
11
11
  apiKey: string;
12
12
  verbose?: boolean;
13
13
  }
@@ -69,11 +69,26 @@ export class VectaraStore extends VectorStore {
69
69
  throw new Error("Vectara api key is not provided.");
70
70
  }
71
71
  this.apiKey = apiKey;
72
- const corpusId = args.corpusId ?? getEnvironmentVariable("VECTARA_CORPUS_ID");
72
+ const corpusId = args.corpusId ??
73
+ getEnvironmentVariable("VECTARA_CORPUS_ID")
74
+ ?.split(",")
75
+ .map((id) => {
76
+ const num = Number(id);
77
+ if (Number.isNaN(num))
78
+ throw new Error("Vectara corpus id is not a number.");
79
+ return num;
80
+ });
73
81
  if (!corpusId) {
74
82
  throw new Error("Vectara corpus id is not provided.");
75
83
  }
76
- this.corpusId = corpusId;
84
+ if (typeof corpusId === "number") {
85
+ this.corpusId = [corpusId];
86
+ }
87
+ else {
88
+ if (corpusId.length === 0)
89
+ throw new Error("Vectara corpus id is not provided.");
90
+ this.corpusId = corpusId;
91
+ }
77
92
  const customerId = args.customerId ?? getEnvironmentVariable("VECTARA_CUSTOMER_ID");
78
93
  if (!customerId) {
79
94
  throw new Error("Vectara customer id is not provided.");
@@ -110,12 +125,14 @@ export class VectaraStore extends VectorStore {
110
125
  * @returns A Promise that resolves when the documents have been added.
111
126
  */
112
127
  async addDocuments(documents) {
128
+ if (this.corpusId.length > 1)
129
+ throw new Error("addDocuments does not support multiple corpus ids");
113
130
  const headers = await this.getJsonHeader();
114
131
  let countAdded = 0;
115
132
  for (const [index, document] of documents.entries()) {
116
133
  const data = {
117
134
  customer_id: this.customerId,
118
- corpus_id: this.corpusId,
135
+ corpus_id: this.corpusId[0],
119
136
  document: {
120
137
  document_id: document.metadata?.document_id ?? `${Date.now()}${index}`,
121
138
  title: document.metadata?.title ?? "",
@@ -170,6 +187,8 @@ export class VectaraStore extends VectorStore {
170
187
  * @returns A Promise that resolves to the number of successfully uploaded files.
171
188
  */
172
189
  async addFiles(filePaths, metadatas = undefined) {
190
+ if (this.corpusId.length > 1)
191
+ throw new Error("addFiles does not support multiple corpus ids");
173
192
  let numDocs = 0;
174
193
  for (const [index, fileBlob] of filePaths.entries()) {
175
194
  const md = metadatas ? metadatas[index] : {};
@@ -177,7 +196,7 @@ export class VectaraStore extends VectorStore {
177
196
  data.append("file", fileBlob, `file_${index}`);
178
197
  data.append("doc-metadata", JSON.stringify(md));
179
198
  try {
180
- const response = await fetch(`https://api.vectara.io/v1/upload?c=${this.customerId}&o=${this.corpusId}`, {
199
+ const response = await fetch(`https://api.vectara.io/v1/upload?c=${this.customerId}&o=${this.corpusId[0]}`, {
181
200
  method: "POST",
182
201
  headers: {
183
202
  "x-api-key": this.apiKey,
@@ -212,6 +231,12 @@ export class VectaraStore extends VectorStore {
212
231
  */
213
232
  async similaritySearchWithScore(query, k = 10, filter = undefined) {
214
233
  const headers = await this.getJsonHeader();
234
+ const corpusKeys = this.corpusId.map((corpusId) => ({
235
+ customerId: this.customerId,
236
+ corpusId,
237
+ metadataFilter: filter?.filter ?? "",
238
+ lexicalInterpolationConfig: { lambda: filter?.lambda ?? 0.025 },
239
+ }));
215
240
  const data = {
216
241
  query: [
217
242
  {
@@ -221,14 +246,7 @@ export class VectaraStore extends VectorStore {
221
246
  sentencesAfter: filter?.contextConfig?.sentencesAfter ?? 2,
222
247
  sentencesBefore: filter?.contextConfig?.sentencesBefore ?? 2,
223
248
  },
224
- corpusKey: [
225
- {
226
- customerId: this.customerId,
227
- corpusId: this.corpusId,
228
- metadataFilter: filter?.filter ?? "",
229
- lexicalInterpolationConfig: { lambda: filter?.lambda ?? 0.025 },
230
- },
231
- ],
249
+ corpusKey: corpusKeys,
232
250
  },
233
251
  ],
234
252
  };
@@ -0,0 +1 @@
1
+ module.exports = require('../../dist/document_loaders/fs/openai_whisper_audio.cjs');
@@ -0,0 +1 @@
1
+ export * from '../../dist/document_loaders/fs/openai_whisper_audio.js'
@@ -0,0 +1 @@
1
+ export * from '../../dist/document_loaders/fs/openai_whisper_audio.js'
@@ -0,0 +1 @@
1
+ module.exports = require('../dist/embeddings/hf_transformers.cjs');
@@ -0,0 +1 @@
1
+ export * from '../dist/embeddings/hf_transformers.js'
@@ -0,0 +1 @@
1
+ export * from '../dist/embeddings/hf_transformers.js'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "langchain",
3
- "version": "0.0.142",
3
+ "version": "0.0.144",
4
4
  "description": "Typescript bindings for langchain",
5
5
  "type": "module",
6
6
  "engines": {
@@ -94,6 +94,9 @@
94
94
  "embeddings/hf.cjs",
95
95
  "embeddings/hf.js",
96
96
  "embeddings/hf.d.ts",
97
+ "embeddings/hf_transformers.cjs",
98
+ "embeddings/hf_transformers.js",
99
+ "embeddings/hf_transformers.d.ts",
97
100
  "embeddings/googlevertexai.cjs",
98
101
  "embeddings/googlevertexai.js",
99
102
  "embeddings/googlevertexai.d.ts",
@@ -364,6 +367,9 @@
364
367
  "document_loaders/fs/unstructured.cjs",
365
368
  "document_loaders/fs/unstructured.js",
366
369
  "document_loaders/fs/unstructured.d.ts",
370
+ "document_loaders/fs/openai_whisper_audio.cjs",
371
+ "document_loaders/fs/openai_whisper_audio.js",
372
+ "document_loaders/fs/openai_whisper_audio.d.ts",
367
373
  "document_transformers/html_to_text.cjs",
368
374
  "document_transformers/html_to_text.js",
369
375
  "document_transformers/html_to_text.d.ts",
@@ -427,6 +433,9 @@
427
433
  "callbacks.cjs",
428
434
  "callbacks.js",
429
435
  "callbacks.d.ts",
436
+ "callbacks/handlers/llmonitor.cjs",
437
+ "callbacks/handlers/llmonitor.js",
438
+ "callbacks/handlers/llmonitor.d.ts",
430
439
  "output_parsers.cjs",
431
440
  "output_parsers.js",
432
441
  "output_parsers.d.ts",
@@ -655,7 +664,6 @@
655
664
  "@tensorflow/tfjs-backend-cpu": "^4.4.0",
656
665
  "@tensorflow/tfjs-converter": "^4.4.0",
657
666
  "@tensorflow/tfjs-core": "^4.4.0",
658
- "@tigrisdata/vector": "^1.1.0",
659
667
  "@tsconfig/recommended": "^1.0.2",
660
668
  "@types/d3-dsv": "^2",
661
669
  "@types/decamelize": "^1.2.0",
@@ -674,6 +682,7 @@
674
682
  "@upstash/redis": "^1.20.6",
675
683
  "@writerai/writer-sdk": "^0.40.2",
676
684
  "@xata.io/client": "^0.25.1",
685
+ "@xenova/transformers": "^2.5.4",
677
686
  "@zilliz/milvus2-sdk-node": ">=2.2.11",
678
687
  "apify-client": "^2.7.1",
679
688
  "axios": "^0.26.0",
@@ -700,7 +709,9 @@
700
709
  "ignore": "^5.2.0",
701
710
  "ioredis": "^5.3.2",
702
711
  "jest": "^29.5.0",
712
+ "jest-environment-node": "^29.6.4",
703
713
  "jsdom": "^22.1.0",
714
+ "llmonitor": "^0.5.4",
704
715
  "mammoth": "^1.5.1",
705
716
  "ml-matrix": "^6.10.4",
706
717
  "mongodb": "^5.2.0",
@@ -767,10 +778,10 @@
767
778
  "@tensorflow-models/universal-sentence-encoder": "*",
768
779
  "@tensorflow/tfjs-converter": "*",
769
780
  "@tensorflow/tfjs-core": "*",
770
- "@tigrisdata/vector": "^1.1.0",
771
781
  "@upstash/redis": "^1.20.6",
772
782
  "@writerai/writer-sdk": "^0.40.2",
773
783
  "@xata.io/client": "^0.25.1",
784
+ "@xenova/transformers": "^2.5.4",
774
785
  "@zilliz/milvus2-sdk-node": ">=2.2.7",
775
786
  "apify-client": "^2.7.1",
776
787
  "axios": "*",
@@ -788,6 +799,7 @@
788
799
  "ignore": "^5.2.0",
789
800
  "ioredis": "^5.3.2",
790
801
  "jsdom": "*",
802
+ "llmonitor": "^0.5.4",
791
803
  "mammoth": "*",
792
804
  "mongodb": "^5.2.0",
793
805
  "mysql2": "^3.3.3",
@@ -912,9 +924,6 @@
912
924
  "@tensorflow/tfjs-core": {
913
925
  "optional": true
914
926
  },
915
- "@tigrisdata/vector": {
916
- "optional": true
917
- },
918
927
  "@upstash/redis": {
919
928
  "optional": true
920
929
  },
@@ -924,6 +933,9 @@
924
933
  "@xata.io/client": {
925
934
  "optional": true
926
935
  },
936
+ "@xenova/transformers": {
937
+ "optional": true
938
+ },
927
939
  "@zilliz/milvus2-sdk-node": {
928
940
  "optional": true
929
941
  },
@@ -975,6 +987,9 @@
975
987
  "jsdom": {
976
988
  "optional": true
977
989
  },
990
+ "llmonitor": {
991
+ "optional": true
992
+ },
978
993
  "mammoth": {
979
994
  "optional": true
980
995
  },
@@ -1234,6 +1249,11 @@
1234
1249
  "import": "./embeddings/hf.js",
1235
1250
  "require": "./embeddings/hf.cjs"
1236
1251
  },
1252
+ "./embeddings/hf_transformers": {
1253
+ "types": "./embeddings/hf_transformers.d.ts",
1254
+ "import": "./embeddings/hf_transformers.js",
1255
+ "require": "./embeddings/hf_transformers.cjs"
1256
+ },
1237
1257
  "./embeddings/googlevertexai": {
1238
1258
  "types": "./embeddings/googlevertexai.d.ts",
1239
1259
  "import": "./embeddings/googlevertexai.js",
@@ -1690,6 +1710,11 @@
1690
1710
  "import": "./document_loaders/fs/unstructured.js",
1691
1711
  "require": "./document_loaders/fs/unstructured.cjs"
1692
1712
  },
1713
+ "./document_loaders/fs/openai_whisper_audio": {
1714
+ "types": "./document_loaders/fs/openai_whisper_audio.d.ts",
1715
+ "import": "./document_loaders/fs/openai_whisper_audio.js",
1716
+ "require": "./document_loaders/fs/openai_whisper_audio.cjs"
1717
+ },
1693
1718
  "./document_transformers/html_to_text": {
1694
1719
  "types": "./document_transformers/html_to_text.d.ts",
1695
1720
  "import": "./document_transformers/html_to_text.js",
@@ -1797,6 +1822,11 @@
1797
1822
  "import": "./callbacks.js",
1798
1823
  "require": "./callbacks.cjs"
1799
1824
  },
1825
+ "./callbacks/handlers/llmonitor": {
1826
+ "types": "./callbacks/handlers/llmonitor.d.ts",
1827
+ "import": "./callbacks/handlers/llmonitor.js",
1828
+ "require": "./callbacks/handlers/llmonitor.cjs"
1829
+ },
1800
1830
  "./output_parsers": {
1801
1831
  "types": "./output_parsers.d.ts",
1802
1832
  "import": "./output_parsers.js",