{"name":"@langchain/weaviate","version":"1.0.0","keywords":[],"author":{"name":"LangChain"},"license":"MIT","_id":"@langchain/weaviate@1.0.0","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":"nfcampos","email":"nuno@boringbits.io"},{"name":"davidduong","email":"david@duong.cz"},{"name":"maddyadams","email":"madelyn.adams1@gmail.com"},{"name":"sam_noyes","email":"sam@langchain.dev"},{"name":"hntrl","email":"hunter@hntrl.io"},{"name":"christian-bromann","email":"mail@bromann.dev"}],"homepage":"https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-weaviate/","bugs":{"url":"https://github.com/langchain-ai/langchainjs/issues"},"dist":{"shasum":"22106f74b44f30617cffcceb92832e19af9957c0","tarball":"http://registry-npm.ywwl.com/@langchain/weaviate/download/@langchain/weaviate-1.0.0.tgz","fileCount":25,"integrity":"sha512-aVZZs5peS+QAacwfGeOjJivnwrnjIgo0Q96GqVZMJAMQARgy0Vm8F6l1QKKpKTLXq5MF5cV2INwo76FJ88Ap/A==","signatures":[{"sig":"MEUCIEoGrZVHkf3RMIHjrV9juRKri9JMhOuFSr51o+YuVk6QAiEAm6mheuqYL1M6vfTCZWbZILy8T++rHRv4Gh/y0HbaFZA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":180141,"size":33769,"noattachment":false,"key":"/@langchain/weaviate/-/@langchain/weaviate-1.0.0.tgz"},"main":"./dist/index.js","type":"module","_from":"file:langchain-weaviate-1.0.0.tgz","types":"./dist/index.d.ts","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":"pnpm --filter @langchain/build compile @langchain/weaviate","clean":"rm -rf .turbo dist/","format":"prettier --config .prettierrc --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 --config .prettierrc --check \"src\""},"_npmUser":{"name":"hntrl","email":"hunter@hntrl.io"},"_resolved":"/private/var/folders/j4/cz00grtx5nxdjcxw3cysv7zm0000gn/T/4d057e3ded942f2770b65195dafd131d/langchain-weaviate-1.0.0.tgz","_integrity":"sha512-aVZZs5peS+QAacwfGeOjJivnwrnjIgo0Q96GqVZMJAMQARgy0Vm8F6l1QKKpKTLXq5MF5cV2INwo76FJ88Ap/A==","repository":{"url":"git+ssh://git@github.com/langchain-ai/langchainjs.git","type":"git"},"_npmVersion":"10.9.2","description":"Weaviate integration for LangChain.js","directories":{},"_nodeVersion":"22.15.1","dependencies":{"uuid":"^10.0.0","weaviate-client":"^3.5.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"dpdm":"^3.14.0","dotenv":"^16.3.1","eslint":"^9.34.0","rollup":"^4.5.2","vitest":"^3.2.4","prettier":"^2.8.3","langchain":"1.0.1","typescript":"~5.8.3","@types/uuid":"^9","@langchain/core":"1.0.1","@langchain/eslint":"0.1.0","@langchain/openai":"^1.0.0","@vitest/coverage-v8":"^3.2.4","@tsconfig/recommended":"^1.0.3"},"peerDependencies":{"@langchain/core":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/weaviate_1.0.0_1760748424929_0.43717594885863775","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":1760748425160,"_cnpm_publish_time":1760748425160,"dist-tags":{"dev":"1.1.0-dev-1781044436312","latest":"1.1.0","next":"0.1.0-rc.0"}}