diff --git a/js/plugins/langchain/package.json b/js/plugins/langchain/package.json index bb8c00de7c..6d505e085c 100644 --- a/js/plugins/langchain/package.json +++ b/js/plugins/langchain/package.json @@ -26,7 +26,7 @@ "author": "genkit", "license": "Apache-2.0", "dependencies": { - "@langchain/community": "^0.3.3", + "@langchain/community": "^0.3.4", "@langchain/core": "^0.1.61", "@opentelemetry/api": "^1.9.0", "zod": "^3.22.4" diff --git a/js/pnpm-lock.yaml b/js/pnpm-lock.yaml index fb9711d6c1..c836e2f4f4 100644 --- a/js/pnpm-lock.yaml +++ b/js/pnpm-lock.yaml @@ -541,8 +541,8 @@ importers: specifier: workspace:* version: link:../../flow '@langchain/community': - specifier: ^0.3.3 - version: 0.3.3(@google-cloud/storage@7.10.1(encoding@0.1.13))(@langchain/core@0.1.61)(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(firebase-admin@12.3.1(encoding@0.1.13))(google-auth-library@8.9.0(encoding@0.1.13))(handlebars@4.7.8)(ignore@5.3.1)(jsonwebtoken@9.0.2)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1) + specifier: ^0.3.4 + version: 0.3.4(@google-cloud/storage@7.10.1(encoding@0.1.13))(@langchain/core@0.1.61)(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(fast-xml-parser@4.3.6)(firebase-admin@12.3.1(encoding@0.1.13))(google-auth-library@8.9.0(encoding@0.1.13))(handlebars@4.7.8)(ignore@5.3.1)(jsonwebtoken@9.0.2)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1) '@langchain/core': specifier: ^0.1.61 version: 0.1.61 @@ -1237,8 +1237,8 @@ importers: specifier: workspace:* version: link:../../plugins/vertexai '@langchain/community': - specifier: ^0.3.3 - version: 0.3.3(@google-cloud/storage@7.10.1(encoding@0.1.13))(@langchain/core@0.1.61)(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(firebase-admin@12.3.1(encoding@0.1.13))(google-auth-library@9.14.1(encoding@0.1.13))(googleapis@140.0.1(encoding@0.1.13))(handlebars@4.7.8)(ignore@5.3.1)(jsonwebtoken@9.0.2)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1) + specifier: ^0.3.4 + version: 0.3.4(@google-cloud/storage@7.10.1(encoding@0.1.13))(@langchain/core@0.1.61)(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(fast-xml-parser@4.3.6)(firebase-admin@12.3.1(encoding@0.1.13))(google-auth-library@9.14.1(encoding@0.1.13))(googleapis@140.0.1(encoding@0.1.13))(handlebars@4.7.8)(ignore@5.3.1)(jsonwebtoken@9.0.2)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1) '@langchain/core': specifier: ^0.1.61 version: 0.1.61 @@ -1255,8 +1255,8 @@ importers: specifier: workspace:* version: link:../../plugins/ollama langchain: - specifier: ^0.2.19 - version: 0.2.19(@langchain/community@0.3.3(@google-cloud/storage@7.10.1(encoding@0.1.13))(@langchain/core@0.1.61)(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(firebase-admin@12.3.1(encoding@0.1.13))(google-auth-library@9.14.1(encoding@0.1.13))(googleapis@140.0.1(encoding@0.1.13))(handlebars@4.7.8)(ignore@5.3.1)(jsonwebtoken@9.0.2)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1))(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(fast-xml-parser@4.3.6)(handlebars@4.7.8)(ignore@5.3.1)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1) + specifier: ^0.2.20 + version: 0.2.20(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(fast-xml-parser@4.3.6)(handlebars@4.7.8)(ignore@5.3.1)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1) pdf-parse: specifier: ^1.1.1 version: 1.1.1 @@ -2212,8 +2212,8 @@ packages: ws: optional: true - '@langchain/community@0.3.3': - resolution: {integrity: sha512-445g9hBeBNndNC8ruQIO/sNbHYBL3jjrPuDW+/S6e/RAXo8whJA/02CWRcSMDYX3o4+1Brrg6rFimipOuM9M9w==} + '@langchain/community@0.3.4': + resolution: {integrity: sha512-CLHjqxjWQnujofE40JNGsZuEruf0JCUxplbqNJoLKxbyx9JUD6kUnOpdoIuyywZWyBKwbLWZdCymlGzjokt3XQ==} engines: {node: '>=18'} peerDependencies: '@arcjet/redact': ^v1.0.0-alpha.23 @@ -2287,7 +2287,6 @@ packages: closevector-web: 0.1.6 cohere-ai: '*' convex: ^1.3.1 - couchbase: ^4.3.0 crypto-js: ^4.2.0 d3-dsv: ^2.0.0 discord.js: ^14.14.1 @@ -2313,7 +2312,6 @@ packages: mongodb: '>=5.2.0' mysql2: ^3.9.8 neo4j-driver: '*' - node-llama-cpp: '*' notion-to-md: ^3.1.0 officeparser: ^4.0.4 pdf-parse: 1.1.1 @@ -2479,8 +2477,6 @@ packages: optional: true convex: optional: true - couchbase: - optional: true crypto-js: optional: true d3-dsv: @@ -2531,8 +2527,6 @@ packages: optional: true neo4j-driver: optional: true - node-llama-cpp: - optional: true notion-to-md: optional: true officeparser: @@ -4706,25 +4700,87 @@ packages: youtubei.js: optional: true - langchain@0.3.5: - resolution: {integrity: sha512-Gq0xC45Sq6nszS8kQG9suCrmBsuXH0INMmiF7D2TwPb6mtG35Jiq4grCk9ykpwPsarTHdty3SzUbII/FqiYSSw==} + langchain@0.2.20: + resolution: {integrity: sha512-tbels6Rr524iMM3VOQ4aTGnEOOjAA1BQuBR8u/8gJ2yT48lMtIQRAN32Y4KVjKK+hEWxHHlmLBrtgLpTphFjNA==} engines: {node: '>=18'} peerDependencies: + '@aws-sdk/client-s3': '*' + '@aws-sdk/client-sagemaker-runtime': '*' + '@aws-sdk/client-sfn': '*' + '@aws-sdk/credential-provider-node': '*' + '@azure/storage-blob': '*' + '@browserbasehq/sdk': '*' + '@gomomento/sdk': '*' + '@gomomento/sdk-core': '*' + '@gomomento/sdk-web': ^1.51.1 '@langchain/anthropic': '*' '@langchain/aws': '*' '@langchain/cohere': '*' - '@langchain/core': '>=0.2.21 <0.4.0' '@langchain/google-genai': '*' '@langchain/google-vertexai': '*' '@langchain/groq': '*' '@langchain/mistralai': '*' '@langchain/ollama': '*' + '@mendable/firecrawl-js': '*' + '@notionhq/client': '*' + '@pinecone-database/pinecone': '*' + '@supabase/supabase-js': '*' + '@vercel/kv': '*' + '@xata.io/client': '*' + apify-client: '*' + assemblyai: '*' axios: '*' cheerio: '*' + chromadb: '*' + convex: '*' + couchbase: '*' + d3-dsv: '*' + epub2: '*' + faiss-node: '*' + fast-xml-parser: '*' handlebars: ^4.7.8 + html-to-text: '*' + ignore: '*' + ioredis: '*' + jsdom: '*' + mammoth: '*' + mongodb: '*' + node-llama-cpp: '*' + notion-to-md: '*' + officeparser: '*' + pdf-parse: '*' peggy: ^3.0.2 + playwright: '*' + puppeteer: '*' + pyodide: '>=0.24.1 <0.27.0' + redis: '*' + sonix-speech-recognition: '*' + srt-parser-2: '*' typeorm: '*' + weaviate-ts-client: '*' + web-auth-library: '*' + ws: '*' + youtube-transcript: '*' + youtubei.js: '*' peerDependenciesMeta: + '@aws-sdk/client-s3': + optional: true + '@aws-sdk/client-sagemaker-runtime': + optional: true + '@aws-sdk/client-sfn': + optional: true + '@aws-sdk/credential-provider-node': + optional: true + '@azure/storage-blob': + optional: true + '@browserbasehq/sdk': + optional: true + '@gomomento/sdk': + optional: true + '@gomomento/sdk-core': + optional: true + '@gomomento/sdk-web': + optional: true '@langchain/anthropic': optional: true '@langchain/aws': @@ -4741,16 +4797,88 @@ packages: optional: true '@langchain/ollama': optional: true + '@mendable/firecrawl-js': + optional: true + '@notionhq/client': + optional: true + '@pinecone-database/pinecone': + optional: true + '@supabase/supabase-js': + optional: true + '@vercel/kv': + optional: true + '@xata.io/client': + optional: true + apify-client: + optional: true + assemblyai: + optional: true axios: optional: true cheerio: optional: true + chromadb: + optional: true + convex: + optional: true + couchbase: + optional: true + d3-dsv: + optional: true + epub2: + optional: true + faiss-node: + optional: true + fast-xml-parser: + optional: true handlebars: optional: true + html-to-text: + optional: true + ignore: + optional: true + ioredis: + optional: true + jsdom: + optional: true + mammoth: + optional: true + mongodb: + optional: true + node-llama-cpp: + optional: true + notion-to-md: + optional: true + officeparser: + optional: true + pdf-parse: + optional: true peggy: optional: true + playwright: + optional: true + puppeteer: + optional: true + pyodide: + optional: true + redis: + optional: true + sonix-speech-recognition: + optional: true + srt-parser-2: + optional: true typeorm: optional: true + weaviate-ts-client: + optional: true + web-auth-library: + optional: true + ws: + optional: true + youtube-transcript: + optional: true + youtubei.js: + optional: true langchainhub@0.0.8: resolution: {integrity: sha512-Woyb8YDHgqqTOZvWIbm2CaFDGfZ4NTSyXV687AG4vXEfoNo7cGQp7nhl7wL3ehenKWmNEmcxCLgOZzW8jE6lOQ==} @@ -4766,14 +4894,6 @@ packages: openai: optional: true - langsmith@0.2.3: - resolution: {integrity: sha512-SPMYPVqR9kwXZVmJ2PXC61HeBnXIFHrjfjDxQ14H0+n5p4gqjLzgSHIQyxBlFeWQUQzArJxe65Ap+s+Xo1cZog==} - peerDependencies: - openai: '*' - peerDependenciesMeta: - openai: - optional: true - lilconfig@3.1.1: resolution: {integrity: sha512-O18pf7nyvHTckunPWCV1XUNXU1piu01y2b7ATJ0ppkUkk8ocqVWBrYjJBCwHDjD/ZWcfyrA0P4gKhzWGi5EINQ==} engines: {node: '>=14'} @@ -6332,7 +6452,7 @@ snapshots: - encoding - openai - '@langchain/community@0.3.3(@google-cloud/storage@7.10.1(encoding@0.1.13))(@langchain/core@0.1.61)(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(firebase-admin@12.3.1(encoding@0.1.13))(google-auth-library@8.9.0(encoding@0.1.13))(handlebars@4.7.8)(ignore@5.3.1)(jsonwebtoken@9.0.2)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1)': + '@langchain/community@0.3.4(@google-cloud/storage@7.10.1(encoding@0.1.13))(@langchain/core@0.1.61)(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(fast-xml-parser@4.3.6)(firebase-admin@12.3.1(encoding@0.1.13))(google-auth-library@8.9.0(encoding@0.1.13))(handlebars@4.7.8)(ignore@5.3.1)(jsonwebtoken@9.0.2)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1)': dependencies: '@langchain/core': 0.1.61 '@langchain/openai': 0.3.11(@langchain/core@0.1.61)(encoding@0.1.13) @@ -6340,7 +6460,7 @@ snapshots: expr-eval: 2.0.2 flat: 5.0.2 js-yaml: 4.1.0 - langchain: 0.3.5(@langchain/core@0.1.61)(encoding@0.1.13)(handlebars@4.7.8)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)) + langchain: 0.2.19(@langchain/community@0.3.4(@google-cloud/storage@7.10.1(encoding@0.1.13))(@langchain/core@0.1.61)(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(fast-xml-parser@4.3.6)(firebase-admin@12.3.1(encoding@0.1.13))(google-auth-library@8.9.0(encoding@0.1.13))(handlebars@4.7.8)(ignore@5.3.1)(jsonwebtoken@9.0.2)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1))(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(fast-xml-parser@4.3.6)(handlebars@4.7.8)(ignore@5.3.1)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1) langsmith: 0.1.68(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)) uuid: 10.0.0 zod: 3.22.4 @@ -6355,6 +6475,7 @@ snapshots: jsonwebtoken: 9.0.2 pdf-parse: 1.1.1 transitivePeerDependencies: + - '@gomomento/sdk-web' - '@langchain/anthropic' - '@langchain/aws' - '@langchain/cohere' @@ -6364,12 +6485,15 @@ snapshots: - '@langchain/mistralai' - '@langchain/ollama' - axios + - couchbase - encoding + - fast-xml-parser - handlebars + - node-llama-cpp - openai - peggy - '@langchain/community@0.3.3(@google-cloud/storage@7.10.1(encoding@0.1.13))(@langchain/core@0.1.61)(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(firebase-admin@12.3.1(encoding@0.1.13))(google-auth-library@9.14.1(encoding@0.1.13))(googleapis@140.0.1(encoding@0.1.13))(handlebars@4.7.8)(ignore@5.3.1)(jsonwebtoken@9.0.2)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1)': + '@langchain/community@0.3.4(@google-cloud/storage@7.10.1(encoding@0.1.13))(@langchain/core@0.1.61)(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(fast-xml-parser@4.3.6)(firebase-admin@12.3.1(encoding@0.1.13))(google-auth-library@9.14.1(encoding@0.1.13))(googleapis@140.0.1(encoding@0.1.13))(handlebars@4.7.8)(ignore@5.3.1)(jsonwebtoken@9.0.2)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1)': dependencies: '@langchain/core': 0.1.61 '@langchain/openai': 0.3.11(@langchain/core@0.1.61)(encoding@0.1.13) @@ -6377,7 +6501,7 @@ snapshots: expr-eval: 2.0.2 flat: 5.0.2 js-yaml: 4.1.0 - langchain: 0.3.5(@langchain/core@0.1.61)(encoding@0.1.13)(handlebars@4.7.8)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)) + langchain: 0.2.19(@langchain/community@0.3.4(@google-cloud/storage@7.10.1(encoding@0.1.13))(@langchain/core@0.1.61)(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(fast-xml-parser@4.3.6)(firebase-admin@12.3.1(encoding@0.1.13))(google-auth-library@9.14.1(encoding@0.1.13))(googleapis@140.0.1(encoding@0.1.13))(handlebars@4.7.8)(ignore@5.3.1)(jsonwebtoken@9.0.2)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1))(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(fast-xml-parser@4.3.6)(handlebars@4.7.8)(ignore@5.3.1)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1) langsmith: 0.1.68(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)) uuid: 10.0.0 zod: 3.22.4 @@ -6393,6 +6517,7 @@ snapshots: jsonwebtoken: 9.0.2 pdf-parse: 1.1.1 transitivePeerDependencies: + - '@gomomento/sdk-web' - '@langchain/anthropic' - '@langchain/aws' - '@langchain/cohere' @@ -6402,8 +6527,11 @@ snapshots: - '@langchain/mistralai' - '@langchain/ollama' - axios + - couchbase - encoding + - fast-xml-parser - handlebars + - node-llama-cpp - openai - peggy @@ -8832,7 +8960,7 @@ snapshots: - vectordb - voy-search - langchain@0.2.19(@langchain/community@0.3.3(@google-cloud/storage@7.10.1(encoding@0.1.13))(@langchain/core@0.1.61)(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(firebase-admin@12.3.1(encoding@0.1.13))(google-auth-library@9.14.1(encoding@0.1.13))(googleapis@140.0.1(encoding@0.1.13))(handlebars@4.7.8)(ignore@5.3.1)(jsonwebtoken@9.0.2)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1))(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(fast-xml-parser@4.3.6)(handlebars@4.7.8)(ignore@5.3.1)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1): + langchain@0.2.19(@langchain/community@0.3.4(@google-cloud/storage@7.10.1(encoding@0.1.13))(@langchain/core@0.1.61)(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(fast-xml-parser@4.3.6)(firebase-admin@12.3.1(encoding@0.1.13))(google-auth-library@8.9.0(encoding@0.1.13))(handlebars@4.7.8)(ignore@5.3.1)(jsonwebtoken@9.0.2)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1))(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(fast-xml-parser@4.3.6)(handlebars@4.7.8)(ignore@5.3.1)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1): dependencies: '@langchain/core': 0.2.36(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)) '@langchain/openai': 0.2.11(encoding@0.1.13) @@ -8849,7 +8977,7 @@ snapshots: zod: 3.22.4 zod-to-json-schema: 3.22.5(zod@3.22.4) optionalDependencies: - '@langchain/community': 0.3.3(@google-cloud/storage@7.10.1(encoding@0.1.13))(@langchain/core@0.1.61)(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(firebase-admin@12.3.1(encoding@0.1.13))(google-auth-library@9.14.1(encoding@0.1.13))(googleapis@140.0.1(encoding@0.1.13))(handlebars@4.7.8)(ignore@5.3.1)(jsonwebtoken@9.0.2)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1) + '@langchain/community': 0.3.4(@google-cloud/storage@7.10.1(encoding@0.1.13))(@langchain/core@0.1.61)(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(fast-xml-parser@4.3.6)(firebase-admin@12.3.1(encoding@0.1.13))(google-auth-library@8.9.0(encoding@0.1.13))(handlebars@4.7.8)(ignore@5.3.1)(jsonwebtoken@9.0.2)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1) '@pinecone-database/pinecone': 2.2.0 chromadb: 1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)) fast-xml-parser: 4.3.6 @@ -8860,15 +8988,44 @@ snapshots: - encoding - openai - langchain@0.3.5(@langchain/core@0.1.61)(encoding@0.1.13)(handlebars@4.7.8)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)): + langchain@0.2.19(@langchain/community@0.3.4(@google-cloud/storage@7.10.1(encoding@0.1.13))(@langchain/core@0.1.61)(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(fast-xml-parser@4.3.6)(firebase-admin@12.3.1(encoding@0.1.13))(google-auth-library@9.14.1(encoding@0.1.13))(googleapis@140.0.1(encoding@0.1.13))(handlebars@4.7.8)(ignore@5.3.1)(jsonwebtoken@9.0.2)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1))(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(fast-xml-parser@4.3.6)(handlebars@4.7.8)(ignore@5.3.1)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1): dependencies: - '@langchain/core': 0.1.61 - '@langchain/openai': 0.3.11(@langchain/core@0.1.61)(encoding@0.1.13) + '@langchain/core': 0.2.36(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)) + '@langchain/openai': 0.2.11(encoding@0.1.13) + '@langchain/textsplitters': 0.0.0 + binary-extensions: 2.3.0 + js-tiktoken: 1.0.15 + js-yaml: 4.1.0 + jsonpointer: 5.0.1 + langsmith: 0.1.68(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)) + openapi-types: 12.1.3 + p-retry: 4.6.2 + uuid: 10.0.0 + yaml: 2.4.1 + zod: 3.22.4 + zod-to-json-schema: 3.22.5(zod@3.22.4) + optionalDependencies: + '@langchain/community': 0.3.4(@google-cloud/storage@7.10.1(encoding@0.1.13))(@langchain/core@0.1.61)(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(fast-xml-parser@4.3.6)(firebase-admin@12.3.1(encoding@0.1.13))(google-auth-library@9.14.1(encoding@0.1.13))(googleapis@140.0.1(encoding@0.1.13))(handlebars@4.7.8)(ignore@5.3.1)(jsonwebtoken@9.0.2)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1) + '@pinecone-database/pinecone': 2.2.0 + chromadb: 1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)) + fast-xml-parser: 4.3.6 + handlebars: 4.7.8 + ignore: 5.3.1 + pdf-parse: 1.1.1 + transitivePeerDependencies: + - encoding + - openai + + langchain@0.2.20(@pinecone-database/pinecone@2.2.0)(chromadb@1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)))(encoding@0.1.13)(fast-xml-parser@4.3.6)(handlebars@4.7.8)(ignore@5.3.1)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4))(pdf-parse@1.1.1): + dependencies: + '@langchain/core': 0.2.36(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)) + '@langchain/openai': 0.2.11(encoding@0.1.13) '@langchain/textsplitters': 0.0.0 + binary-extensions: 2.3.0 js-tiktoken: 1.0.15 js-yaml: 4.1.0 jsonpointer: 5.0.1 - langsmith: 0.2.3(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)) + langsmith: 0.1.68(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)) openapi-types: 12.1.3 p-retry: 4.6.2 uuid: 10.0.0 @@ -8876,7 +9033,12 @@ snapshots: zod: 3.22.4 zod-to-json-schema: 3.22.5(zod@3.22.4) optionalDependencies: + '@pinecone-database/pinecone': 2.2.0 + chromadb: 1.8.1(encoding@0.1.13)(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)) + fast-xml-parser: 4.3.6 handlebars: 4.7.8 + ignore: 5.3.1 + pdf-parse: 1.1.1 transitivePeerDependencies: - encoding - openai @@ -8902,17 +9064,6 @@ snapshots: optionalDependencies: openai: 4.68.4(encoding@0.1.13)(zod@3.22.4) - langsmith@0.2.3(openai@4.68.4(encoding@0.1.13)(zod@3.22.4)): - dependencies: - '@types/uuid': 10.0.0 - commander: 10.0.1 - p-queue: 6.6.2 - p-retry: 4.6.2 - semver: 7.6.3 - uuid: 10.0.0 - optionalDependencies: - openai: 4.68.4(encoding@0.1.13)(zod@3.22.4) - lilconfig@3.1.1: {} limiter@1.1.5: {} diff --git a/js/testapps/langchain/package.json b/js/testapps/langchain/package.json index 07c807fbac..15fd913cde 100644 --- a/js/testapps/langchain/package.json +++ b/js/testapps/langchain/package.json @@ -23,11 +23,11 @@ "genkitx-ollama": "workspace:*", "@genkit-ai/vertexai": "workspace:*", "genkitx-langchain": "workspace:*", - "@langchain/community": "^0.3.3", + "@langchain/community": "^0.3.4", "@langchain/core": "^0.1.61", "@opentelemetry/api": "^1.9.0", "express": "~4.20.0", - "langchain": "^0.2.19", + "langchain": "^0.2.20", "pdf-parse": "^1.1.1", "zod": "^3.22.4" }, diff --git a/tests/pnpm-lock.yaml b/tests/pnpm-lock.yaml index 01830bbfb2..f9d861fb7a 100644 --- a/tests/pnpm-lock.yaml +++ b/tests/pnpm-lock.yaml @@ -377,8 +377,8 @@ packages: typescript: optional: true - cross-spawn@6.0.5: - resolution: {integrity: sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==} + cross-spawn@6.0.6: + resolution: {integrity: sha512-VqCUuhcd1iB+dsv8gxPttb5iZh/D0iubSP21g36KXdEuf6I5JiioesUVjpCdHV9MZRUfVFlvwtIUyPfxo5trtw==} engines: {node: '>=4.8'} data-uri-to-buffer@6.0.2: @@ -1296,7 +1296,7 @@ snapshots: agent-base@7.1.1: dependencies: - debug: 4.3.4 + debug: 4.3.5 transitivePeerDependencies: - supports-color @@ -1433,7 +1433,7 @@ snapshots: js-yaml: 4.1.0 parse-json: 5.2.0 - cross-spawn@6.0.5: + cross-spawn@6.0.6: dependencies: nice-try: 1.0.5 path-key: 2.0.1 @@ -1634,7 +1634,7 @@ snapshots: extract-zip@2.0.1: dependencies: - debug: 4.3.4 + debug: 4.3.5 get-stream: 5.2.0 yauzl: 2.10.0 optionalDependencies: @@ -1707,7 +1707,7 @@ snapshots: dependencies: basic-ftp: 5.0.5 data-uri-to-buffer: 6.0.2 - debug: 4.3.4 + debug: 4.3.5 fs-extra: 11.2.0 transitivePeerDependencies: - supports-color @@ -1750,14 +1750,14 @@ snapshots: http-proxy-agent@7.0.2: dependencies: agent-base: 7.1.1 - debug: 4.3.4 + debug: 4.3.5 transitivePeerDependencies: - supports-color https-proxy-agent@7.0.4: dependencies: agent-base: 7.1.1 - debug: 4.3.4 + debug: 4.3.5 transitivePeerDependencies: - supports-color @@ -1912,7 +1912,7 @@ snapshots: dependencies: ansi-styles: 3.2.1 chalk: 2.4.2 - cross-spawn: 6.0.5 + cross-spawn: 6.0.6 memorystream: 0.3.1 minimatch: 3.1.2 pidtree: 0.3.1 @@ -1939,7 +1939,7 @@ snapshots: dependencies: '@tootallnate/quickjs-emscripten': 0.23.0 agent-base: 7.1.1 - debug: 4.3.4 + debug: 4.3.5 get-uri: 6.0.3 http-proxy-agent: 7.0.2 https-proxy-agent: 7.0.4 @@ -1996,7 +1996,7 @@ snapshots: proxy-agent@6.4.0: dependencies: agent-base: 7.1.1 - debug: 4.3.4 + debug: 4.3.5 http-proxy-agent: 7.0.2 https-proxy-agent: 7.0.4 lru-cache: 7.18.3 @@ -2132,7 +2132,7 @@ snapshots: socks-proxy-agent@8.0.3: dependencies: agent-base: 7.1.1 - debug: 4.3.4 + debug: 4.3.5 socks: 2.8.3 transitivePeerDependencies: - supports-color