diff --git a/package.json b/package.json index 120e8435..aeeaf693 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "@heroicons/vue": "^2.0.18", "astro": "^3.2.1", "faiss-node": "^0.3.0", - "langchain": "^0.0.131", + "langchain": "^0.0.181", "marked": "^7.0.3", "openai": "^4.0.1", "sharp": "^0.32.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1ad6cc6e..6aaa4f80 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,8 +24,8 @@ dependencies: specifier: ^0.3.0 version: 0.3.0 langchain: - specifier: ^0.0.131 - version: 0.0.131(cheerio@1.0.0-rc.12)(faiss-node@0.3.0) + specifier: ^0.0.181 + version: 0.0.181(cheerio@1.0.0-rc.12)(faiss-node@0.3.0) marked: specifier: ^7.0.3 version: 7.0.5 @@ -219,8 +219,8 @@ packages: resolution: {integrity: sha512-pvFiLP2BeOKA/ZOS6jxx4XhKzdVLHDhGlFEaZ2flWWYf2xOqVniqpk38I04DFRyz+L0ASggl7SkItTc+ZLju4w==} dev: true - /@anthropic-ai/sdk@0.5.10: - resolution: {integrity: sha512-P8xrIuTUO/6wDzcjQRUROXp4WSqtngbXaE4GpEu0PhEmnq/1Q8vbF1s0o7W07EV3j8zzRoyJxAKovUJtNXH7ew==} + /@anthropic-ai/sdk@0.6.8: + resolution: {integrity: sha512-z4gDFrBf+W2wOVvwA3CA+5bfKOxQhPeXQo7+ITWj3r3XPulIMEasVT0KrD41G+anr5Yc3d2PKvXKB6b1LSon5w==} dependencies: '@types/node': 18.18.8 '@types/node-fetch': 2.6.8 @@ -230,6 +230,7 @@ packages: form-data-encoder: 1.7.2 formdata-node: 4.4.1 node-fetch: 2.7.0 + web-streams-polyfill: 3.2.1 transitivePeerDependencies: - encoding dev: false @@ -3195,14 +3196,6 @@ packages: engines: {node: '>= 0.4'} dev: true - /axios@0.26.1: - resolution: {integrity: sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==} - dependencies: - follow-redirects: 1.15.3 - transitivePeerDependencies: - - debug - dev: false - /b4a@1.6.4: resolution: {integrity: sha512-fpWrvyVHEKyeEvbKZTVOeZF3VSKKWtJxFIxX/jaVPf+cLbGUSitjb49pHLqPV2BUNNZ0LcoeEGfE/YCpyDYHIw==} @@ -4617,16 +4610,6 @@ packages: resolution: {integrity: sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==} dev: true - /follow-redirects@1.15.3: - resolution: {integrity: sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==} - engines: {node: '>=4.0'} - peerDependencies: - debug: '*' - peerDependenciesMeta: - debug: - optional: true - dev: false - /for-each@0.3.3: resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==} dependencies: @@ -5569,11 +5552,12 @@ packages: resolution: {integrity: sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==} dev: true - /langchain@0.0.131(cheerio@1.0.0-rc.12)(faiss-node@0.3.0): - resolution: {integrity: sha512-7SDDiixSjcxOb9IUEL1DIwzsPMA508z/VFT6+X29dZ1bsNlna60pue1962VtHJOS5rqWVjztrV2WNWgUwisDyw==} + /langchain@0.0.181(cheerio@1.0.0-rc.12)(faiss-node@0.3.0): + resolution: {integrity: sha512-S1jamhe1oekoWNKmWpV6pq4U7JN8pBL2GZF9b3uQmVoXMtjp1MWWPT49aUAManvJnpJDUYmylPwky+tq+ONgdw==} engines: {node: '>=18'} peerDependencies: '@aws-crypto/sha256-js': ^5.0.0 + '@aws-sdk/client-bedrock-runtime': ^3.422.0 '@aws-sdk/client-dynamodb': ^3.310.0 '@aws-sdk/client-kendra': ^3.352.0 '@aws-sdk/client-lambda': ^3.310.0 @@ -5581,73 +5565,99 @@ packages: '@aws-sdk/client-sagemaker-runtime': ^3.310.0 '@aws-sdk/client-sfn': ^3.310.0 '@aws-sdk/credential-provider-node': ^3.388.0 - '@aws-sdk/protocol-http': ^3.374.0 - '@aws-sdk/signature-v4': ^3.374.0 '@azure/storage-blob': ^12.15.0 '@clickhouse/client': ^0.0.14 + '@cloudflare/ai': ^1.0.12 '@elastic/elasticsearch': ^8.4.0 '@getmetal/metal-sdk': '*' - '@getzep/zep-js': ^0.6.3 - '@gomomento/sdk': ^1.23.0 + '@getzep/zep-js': ^0.9.0 + '@gomomento/sdk': ^1.44.1 + '@gomomento/sdk-core': ^1.44.1 + '@gomomento/sdk-web': ^1.44.1 '@google-ai/generativelanguage': ^0.2.1 '@google-cloud/storage': ^6.10.1 - '@huggingface/inference': ^1.5.1 + '@huggingface/inference': ^2.6.4 '@mozilla/readability': '*' - '@notionhq/client': ^2.2.5 + '@notionhq/client': ^2.2.10 '@opensearch-project/opensearch': '*' - '@pinecone-database/pinecone': '*' + '@pinecone-database/pinecone': ^1.1.0 '@planetscale/database': ^1.8.0 '@qdrant/js-client-rest': ^1.2.0 '@raycast/api': ^1.55.2 + '@smithy/eventstream-codec': ^2.0.5 + '@smithy/protocol-http': ^3.0.6 + '@smithy/signature-v4': ^2.0.10 + '@smithy/util-utf8': ^2.0.0 '@supabase/postgrest-js': ^1.1.1 '@supabase/supabase-js': ^2.10.0 '@tensorflow-models/universal-sentence-encoder': '*' '@tensorflow/tfjs-converter': '*' '@tensorflow/tfjs-core': '*' - '@tigrisdata/vector': ^1.1.0 '@upstash/redis': ^1.20.6 + '@vercel/kv': ^0.2.3 + '@vercel/postgres': ^0.5.0 + '@writerai/writer-sdk': ^0.40.2 '@xata.io/client': ^0.25.1 + '@xenova/transformers': ^2.5.4 '@zilliz/milvus2-sdk-node': '>=2.2.7' apify-client: ^2.7.1 + assemblyai: ^2.0.2 axios: '*' + cassandra-driver: ^4.7.2 cheerio: ^1.0.0-rc.12 - chromadb: ^1.5.3 - cohere-ai: ^5.0.2 + chromadb: '*' + closevector-common: 0.1.0-alpha.1 + closevector-node: 0.1.0-alpha.10 + closevector-web: 0.1.0-alpha.16 + cohere-ai: '>=6.0.0' + convex: ^1.3.1 d3-dsv: ^2.0.0 epub2: ^3.0.1 - faiss-node: ^0.3.0 + faiss-node: ^0.5.1 + fast-xml-parser: ^4.2.7 firebase-admin: ^11.9.0 google-auth-library: ^8.9.0 + googleapis: ^126.0.1 hnswlib-node: ^1.4.2 html-to-text: ^9.0.5 ignore: ^5.2.0 ioredis: ^5.3.2 jsdom: '*' + llmonitor: ^0.5.8 + lodash: ^4.17.21 mammoth: '*' mongodb: ^5.2.0 mysql2: ^3.3.3 + neo4j-driver: '*' + node-llama-cpp: '*' notion-to-md: ^3.1.0 pdf-parse: 1.1.1 peggy: ^3.0.2 pg: ^8.11.0 pg-copy-streams: ^6.0.5 - pickleparser: ^0.1.0 + pickleparser: ^0.2.1 playwright: ^1.32.1 + portkey-ai: ^0.1.11 puppeteer: ^19.7.2 redis: ^4.6.4 - replicate: ^0.12.3 + replicate: ^0.18.0 sonix-speech-recognition: ^2.1.1 srt-parser-2: ^1.2.2 typeorm: ^0.3.12 typesense: ^1.5.3 usearch: ^1.1.1 vectordb: ^0.1.4 + voy-search: 0.6.2 weaviate-ts-client: ^1.4.0 + web-auth-library: ^1.0.3 + ws: ^8.14.2 youtube-transcript: ^1.0.6 youtubei.js: ^5.8.0 peerDependenciesMeta: '@aws-crypto/sha256-js': optional: true + '@aws-sdk/client-bedrock-runtime': + optional: true '@aws-sdk/client-dynamodb': optional: true '@aws-sdk/client-kendra': @@ -5662,14 +5672,12 @@ packages: optional: true '@aws-sdk/credential-provider-node': optional: true - '@aws-sdk/protocol-http': - optional: true - '@aws-sdk/signature-v4': - optional: true '@azure/storage-blob': optional: true '@clickhouse/client': optional: true + '@cloudflare/ai': + optional: true '@elastic/elasticsearch': optional: true '@getmetal/metal-sdk': @@ -5678,6 +5686,10 @@ packages: optional: true '@gomomento/sdk': optional: true + '@gomomento/sdk-core': + optional: true + '@gomomento/sdk-web': + optional: true '@google-ai/generativelanguage': optional: true '@google-cloud/storage': @@ -5698,6 +5710,14 @@ packages: optional: true '@raycast/api': optional: true + '@smithy/eventstream-codec': + optional: true + '@smithy/protocol-http': + optional: true + '@smithy/signature-v4': + optional: true + '@smithy/util-utf8': + optional: true '@supabase/postgrest-js': optional: true '@supabase/supabase-js': @@ -5708,34 +5728,56 @@ packages: optional: true '@tensorflow/tfjs-core': optional: true - '@tigrisdata/vector': - optional: true '@upstash/redis': optional: true + '@vercel/kv': + optional: true + '@vercel/postgres': + optional: true + '@writerai/writer-sdk': + optional: true '@xata.io/client': optional: true + '@xenova/transformers': + optional: true '@zilliz/milvus2-sdk-node': optional: true apify-client: optional: true + assemblyai: + optional: true axios: optional: true + cassandra-driver: + optional: true cheerio: optional: true chromadb: optional: true + closevector-common: + optional: true + closevector-node: + optional: true + closevector-web: + optional: true cohere-ai: optional: true + convex: + optional: true d3-dsv: optional: true epub2: optional: true faiss-node: optional: true + fast-xml-parser: + optional: true firebase-admin: optional: true google-auth-library: optional: true + googleapis: + optional: true hnswlib-node: optional: true html-to-text: @@ -5746,12 +5788,20 @@ packages: optional: true jsdom: optional: true + llmonitor: + optional: true + lodash: + optional: true mammoth: optional: true mongodb: optional: true mysql2: optional: true + neo4j-driver: + optional: true + node-llama-cpp: + optional: true notion-to-md: optional: true pdf-parse: @@ -5766,6 +5816,8 @@ packages: optional: true playwright: optional: true + portkey-ai: + optional: true puppeteer: optional: true redis: @@ -5784,14 +5836,20 @@ packages: optional: true vectordb: optional: true + voy-search: + optional: true weaviate-ts-client: optional: true + web-auth-library: + optional: true + ws: + optional: true youtube-transcript: optional: true youtubei.js: optional: true dependencies: - '@anthropic-ai/sdk': 0.5.10 + '@anthropic-ai/sdk': 0.6.8 ansi-styles: 5.2.0 binary-extensions: 2.2.0 camelcase: 6.3.0 @@ -5803,10 +5861,10 @@ packages: js-tiktoken: 1.0.7 js-yaml: 4.1.0 jsonpointer: 5.0.1 + langchainhub: 0.0.6 langsmith: 0.0.48 ml-distance: 4.0.1 - object-hash: 3.0.0 - openai: 3.3.0 + openai: 4.4.0 openapi-types: 12.1.3 p-queue: 6.6.2 p-retry: 4.6.2 @@ -5815,10 +5873,13 @@ packages: zod: 3.22.4 zod-to-json-schema: 3.21.4(zod@3.22.4) transitivePeerDependencies: - - debug - encoding dev: false + /langchainhub@0.0.6: + resolution: {integrity: sha512-SW6105T+YP1cTe0yMf//7kyshCgvCTyFBMTgH2H3s9rTAR4e+78DA/BBrUL/Mt4Q5eMWui7iGuAYb3pgGsdQ9w==} + dev: false + /langsmith@0.0.48: resolution: {integrity: sha512-s0hW8iZ90Q9XLTnDK0Pgee245URV3b1cXQjPDj5OKm1+KN7iSK1pKx+4CO7RcFLz58Ixe7Mt+mVcomYqUuryxQ==} hasBin: true @@ -6744,11 +6805,6 @@ packages: engines: {node: '>=8'} dev: false - /object-hash@3.0.0: - resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==} - engines: {node: '>= 6'} - dev: false - /object-inspect@1.13.1: resolution: {integrity: sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==} dev: true @@ -6793,17 +6849,25 @@ packages: dependencies: mimic-fn: 4.0.0 - /openai@3.3.0: - resolution: {integrity: sha512-uqxI/Au+aPRnsaQRe8CojU0eCR7I0mBiKjD3sNMzY6DaC1ZVrc85u98mtJW6voDug8fgGN+DIZmTDxTthxb7dQ==} + /openai@4.15.4: + resolution: {integrity: sha512-EnlSl1p8n7Q/HnBf4+VOEcYloBKKe23sKOFfH/WJcw+XVyWav4lwDK4wCmsUY1wS4RFOdbA2EwBUB2p5WEPmoQ==} + hasBin: true dependencies: - axios: 0.26.1 - form-data: 4.0.0 + '@types/node': 18.18.8 + '@types/node-fetch': 2.6.8 + abort-controller: 3.0.0 + agentkeepalive: 4.5.0 + digest-fetch: 1.3.0 + form-data-encoder: 1.7.2 + formdata-node: 4.4.1 + node-fetch: 2.7.0 + web-streams-polyfill: 3.2.1 transitivePeerDependencies: - - debug + - encoding dev: false - /openai@4.15.4: - resolution: {integrity: sha512-EnlSl1p8n7Q/HnBf4+VOEcYloBKKe23sKOFfH/WJcw+XVyWav4lwDK4wCmsUY1wS4RFOdbA2EwBUB2p5WEPmoQ==} + /openai@4.4.0: + resolution: {integrity: sha512-JN0t628Kh95T0IrXl0HdBqnlJg+4Vq0Bnh55tio+dfCnyzHvMLiWyCM9m726MAJD2YkDU4/8RQB6rNbEq9ct2w==} hasBin: true dependencies: '@types/node': 18.18.8 @@ -6814,7 +6878,6 @@ packages: form-data-encoder: 1.7.2 formdata-node: 4.4.1 node-fetch: 2.7.0 - web-streams-polyfill: 3.2.1 transitivePeerDependencies: - encoding dev: false