diff --git a/package.json b/package.json index 120e8435..0ef4a0a4 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.161", "marked": "^7.0.3", "openai": "^4.0.1", "sharp": "^0.32.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 849de99f..84b19085 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.161 + version: 0.0.161(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.2: + resolution: {integrity: sha512-fB9PUj9RFT+XjkL+E9Ol864ZIJi+1P8WnbHspN3N3/GK2uSzjd0cbVIKTGgf4v3N8MwaQu+UWnU7C4BG/fap/g==} dependencies: '@types/node': 18.17.17 '@types/node-fetch': 2.6.5 @@ -3190,14 +3190,6 @@ packages: engines: {node: '>= 0.4'} dev: true - /axios@0.26.1: - resolution: {integrity: sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==} - dependencies: - follow-redirects: 1.15.2 - transitivePeerDependencies: - - debug - dev: false - /b4a@1.6.4: resolution: {integrity: sha512-fpWrvyVHEKyeEvbKZTVOeZF3VSKKWtJxFIxX/jaVPf+cLbGUSitjb49pHLqPV2BUNNZ0LcoeEGfE/YCpyDYHIw==} @@ -4594,16 +4586,6 @@ packages: resolution: {integrity: sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==} dev: true - /follow-redirects@1.15.2: - resolution: {integrity: sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==} - engines: {node: '>=4.0'} - peerDependencies: - debug: '*' - peerDependenciesMeta: - debug: - optional: true - dev: false - /for-each@0.3.3: resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==} dependencies: @@ -5467,11 +5449,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.161(cheerio@1.0.0-rc.12)(faiss-node@0.3.0): + resolution: {integrity: sha512-Rls0PB2FwWcRy39/TQWr7MCAFvcmYJqu2aDcMP/viF+/wR0963aZhUDsqGkKEqIL6ODK6l7Rsny3lOWq1cPuBw==} 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 @@ -5479,51 +5462,61 @@ 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 + '@getzep/zep-js': ^0.7.0 '@gomomento/sdk': ^1.23.0 '@google-ai/generativelanguage': ^0.2.1 '@google-cloud/storage': ^6.10.1 '@huggingface/inference': ^1.5.1 '@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/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 axios: '*' cheerio: ^1.0.0-rc.12 - chromadb: ^1.5.3 - cohere-ai: ^5.0.2 + chromadb: '*' + cohere-ai: '>=6.0.0' d3-dsv: ^2.0.0 epub2: ^3.0.1 faiss-node: ^0.3.0 + 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: '*' 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 @@ -5533,19 +5526,23 @@ packages: playwright: ^1.32.1 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 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': @@ -5560,14 +5557,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': @@ -5596,6 +5591,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': @@ -5606,12 +5609,16 @@ packages: optional: true '@tensorflow/tfjs-core': optional: true - '@tigrisdata/vector': - optional: true '@upstash/redis': 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: @@ -5630,10 +5637,14 @@ packages: 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: @@ -5644,12 +5655,18 @@ packages: optional: true jsdom: optional: true + llmonitor: + 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: @@ -5682,14 +5699,18 @@ packages: optional: true vectordb: optional: true + voy-search: + optional: true weaviate-ts-client: optional: true + web-auth-library: + optional: true youtube-transcript: optional: true youtubei.js: optional: true dependencies: - '@anthropic-ai/sdk': 0.5.10 + '@anthropic-ai/sdk': 0.6.2 ansi-styles: 5.2.0 binary-extensions: 2.2.0 camelcase: 6.3.0 @@ -5701,22 +5722,26 @@ packages: js-tiktoken: 1.0.7 js-yaml: 4.1.0 jsonpointer: 5.0.1 + langchainhub: 0.0.6 langsmith: 0.0.38 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 uuid: 9.0.1 yaml: 2.3.2 - zod: 3.22.2 - zod-to-json-schema: 3.21.4(zod@3.22.2) + 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.38: resolution: {integrity: sha512-SNeje3mF+90aAX2Br919rraA21+EaNw1IfaXSrWxkqYJjJifWs0knLlAki8Vg1Sg5uv5ay/6MOO8v5mU5mL0yw==} hasBin: true @@ -6657,13 +6682,20 @@ packages: dependencies: mimic-fn: 4.0.0 - /openai@3.3.0: - resolution: {integrity: sha512-uqxI/Au+aPRnsaQRe8CojU0eCR7I0mBiKjD3sNMzY6DaC1ZVrc85u98mtJW6voDug8fgGN+DIZmTDxTthxb7dQ==} + /openai@4.4.0: + resolution: {integrity: sha512-JN0t628Kh95T0IrXl0HdBqnlJg+4Vq0Bnh55tio+dfCnyzHvMLiWyCM9m726MAJD2YkDU4/8RQB6rNbEq9ct2w==} + hasBin: true dependencies: - axios: 0.26.1 - form-data: 4.0.0 + '@types/node': 18.17.17 + '@types/node-fetch': 2.6.5 + 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 transitivePeerDependencies: - - debug + - encoding dev: false /openai@4.7.1: @@ -8625,12 +8657,12 @@ packages: resolution: {integrity: sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==} engines: {node: '>=12.20'} - /zod-to-json-schema@3.21.4(zod@3.22.2): + /zod-to-json-schema@3.21.4(zod@3.22.4): resolution: {integrity: sha512-fjUZh4nQ1s6HMccgIeE0VP4QG/YRGPmyjO9sAh890aQKPEk3nqbfUXhMFaC+Dr5KvYBm8BCyvfpZf2jY9aGSsw==} peerDependencies: zod: ^3.21.4 dependencies: - zod: 3.22.2 + zod: 3.22.4 dev: false /zod@3.21.1: @@ -8638,6 +8670,11 @@ packages: /zod@3.22.2: resolution: {integrity: sha512-wvWkphh5WQsJbVk1tbx1l1Ly4yg+XecD+Mq280uBGt9wa5BKSWf4Mhp6GmrkPixhMxmabYY7RbzlwVP32pbGCg==} + dev: true + + /zod@3.22.4: + resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==} + dev: false /zwitch@2.0.4: resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}