{"name":"@langchain/weaviate","version":"1.0.2","keywords":[],"author":{"name":"LangChain"},"license":"MIT","_id":"@langchain/weaviate@1.0.2","maintainers":[{"name":"hwchase17","email":"hw.chase.17@gmail.com"},{"name":"jacoblee93","email":"jacoblee93@gmail.com"},{"name":"basproul","email":"braceasproul@gmail.com"},{"name":"eric_langchain","email":"eric@langchain.dev"},{"name":"andrewnguonly","email":"andrewnguonly@gmail.com"},{"name":"davidduong","email":"david@duong.cz"},{"name":"maddyadams","email":"madelyn.adams1@gmail.com"},{"name":"sam_noyes","email":"sam@langchain.dev"},{"name":"langchain-security","email":"infra@langchain.dev"},{"name":"andy-langchain","email":"andy@langchain.dev"},{"name":"rcasup","email":"ryan.l.casupanan@gmail.com"},{"name":"hntrl","email":"hunter@hntrl.io"},{"name":"christian-bromann","email":"mail@bromann.dev"}],"homepage":"https://github.com/langchain-ai/langchainjs/tree/main/libs/community/langchain-weaviate/","bugs":{"url":"https://github.com/langchain-ai/langchainjs/issues"},"dist":{"shasum":"f52b3fa476a61aa3c4d6f5b8af14c8b2949324cf","tarball":"http://registry-npm.ywwl.com/@langchain/weaviate/download/@langchain/weaviate-1.0.2.tgz","fileCount":25,"integrity":"sha512-2T04wNxSN9XW/hm0KL6gCSln4LTkDyLEfefT2ymEgDxb62H9B0p2Qy5jR6dxOICZ38ex0tCnhF/42YC0PcXPQQ==","signatures":[{"sig":"MEUCIQDv0xksiHDrcxQWaCVi0A/9lJOfZUEY7+CM0KZyMfEchQIgGb+/aeTHr8151BpVxaezIJ3opTcYTlDbhuLTWrOlMck=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@langchain%2fweaviate@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":149039,"size":26789,"noattachment":false,"key":"/@langchain/weaviate/-/@langchain/weaviate-1.0.2.tgz"},"main":"./dist/index.cjs","type":"module","_from":"file:langchain-weaviate-1.0.2.tgz","types":"./dist/index.d.cts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"input":"./src/index.ts","import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"scripts":{"lint":"pnpm lint:eslint && pnpm lint:dpdm","test":"vitest run","build":"turbo build:compile --filter @langchain/weaviate --output-logs new-only","clean":"rm -rf .turbo dist/","format":"prettier --write \"src\"","lint:fix":"pnpm lint:eslint --fix && pnpm lint:dpdm","test:int":"vitest --mode int","lint:dpdm":"dpdm --skip-dynamic-imports circular --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts","test:watch":"vitest --watch","lint:eslint":"eslint --cache src/","format:check":"prettier --check \"src\"","build:compile":"tsdown"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:2cefe35c-84d3-4f14-8a0f-e134c8774b43"}},"_resolved":"/tmp/e72ee12e7da67b0fe220f791ede80d99/langchain-weaviate-1.0.2.tgz","_integrity":"sha512-2T04wNxSN9XW/hm0KL6gCSln4LTkDyLEfefT2ymEgDxb62H9B0p2Qy5jR6dxOICZ38ex0tCnhF/42YC0PcXPQQ==","repository":{"url":"git+ssh://git@github.com/langchain-ai/langchainjs.git","type":"git"},"_npmVersion":"11.5.1","description":"Weaviate integration for LangChain.js","directories":{},"_nodeVersion":"24.6.0","dependencies":{"weaviate-client":"^3.5.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"dpdm":"^3.14.0","dotenv":"^16.3.1","eslint":"^9.34.0","vitest":"^3.2.4","prettier":"^3.5.0","langchain":"1.3.5","typescript":"~5.8.3","@types/uuid":"^9","@langchain/core":"^1.1.42","@langchain/openai":"^1.4.5","@langchain/tsconfig":"0.0.1","@vitest/coverage-v8":"^3.2.4","@tsconfig/recommended":"^1.0.3"},"peerDependencies":{"@langchain/core":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/weaviate_1.0.2_1777306179324_0.40882532045126063","host":"s3://npm-registry-packages-npm-production"},"readme":"# @langchain/weaviate\n\nThis package contains the LangChain.js integrations for Weaviate with the `weaviate-client` SDK.\n\n## Installation\n\n```bash npm2yarn\nnpm install @langchain/weaviate @langchain/core\n```\n\n## Vectorstore\n\nThis package adds support for Weaviate vectorstore.\n\nTo follow along with this example install the `@langchain/openai` package for their Embeddings model.\n\n```bash\nnpm install @langchain/openai\n```\n\nNow set the necessary environment variables (or pass them in via the client object):\n\n```bash\nexport WEAVIATE_SCHEME=\nexport WEAVIATE_HOST=\nexport WEAVIATE_API_KEY=\n```\n\n```typescript\nimport weaviate, { ApiKey } from \"weaviate-client\";\nimport { WeaviateStore } from \"@langchain/weaviate\";\n\n// Weaviate SDK has a TypeScript issue so we must do this.\nconst client = (weaviate as any).client({\n  scheme: process.env.WEAVIATE_SCHEME || \"https\",\n  host: process.env.WEAVIATE_HOST || \"localhost\",\n  apiKey: new ApiKey(process.env.WEAVIATE_API_KEY || \"default\"),\n});\n\n// Create a store and fill it with some texts + metadata\nawait WeaviateStore.fromTexts(\n  [\"hello world\", \"hi there\", \"how are you\", \"bye now\"],\n  [{ foo: \"bar\" }, { foo: \"baz\" }, { foo: \"qux\" }, { foo: \"bar\" }],\n  new OpenAIEmbeddings(),\n  {\n    client,\n    indexName: \"Test\",\n    textKey: \"text\",\n    metadataKeys: [\"foo\"],\n  }\n);\n```\n\n## Development\n\nTo develop the `@langchain/weaviate` package, you'll need to follow these instructions:\n\n### Install dependencies\n\n```bash\npnpm install\n```\n\n### Build the package\n\n```bash\npnpm build\n```\n\nOr from the repo root:\n\n```bash\npnpm build --filter @langchain/weaviate\n```\n\n### Run tests\n\nTest files should live within a `tests/` file in the `src/` folder. Unit tests should end in `.test.ts` and integration tests should\nend in `.int.test.ts`:\n\n```bash\n$ pnpm test\n$ pnpm test:int\n```\n\n### Lint & Format\n\nRun the linter & formatter to ensure your code is up to standard:\n\n```bash\npnpm lint && pnpm format\n```\n\n### Adding new entrypoints\n\nIf you add a new file to be exported, either import & re-export from `src/index.ts`, or add it to the `exports` field in the `package.json` file and run `pnpm build` to generate the new entrypoint.\n","publish_time":1777306179462,"_cnpm_publish_time":1777306179462,"dist-tags":{"dev":"1.1.0-dev-1781044436312","latest":"1.1.0","next":"0.1.0-rc.0"}}