{"name":"@langchain/weaviate","version":"0.2.3","keywords":[],"author":{"name":"LangChain"},"license":"MIT","_id":"@langchain/weaviate@0.2.3","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":"7b2557ea9a369bb7ce05dfc553f56b6ff062d90b","tarball":"http://registry-npm.ywwl.com/@langchain/weaviate/download/@langchain/weaviate-0.2.3.tgz","fileCount":16,"integrity":"sha512-WqNGn1eSrI+ZigJd7kZjCj3fvHBYicKr054qts2nNJ+IyO5dWmY3oFTaVHFq1OLFVZJJxrFeDnxSEOC3JnfP0w==","signatures":[{"sig":"MEUCIA74+F509NS+8GaZy8xJsNb0ujerotw44IecWAAnenYzAiEA0Nl2Je7NaWNLGW9k4YpTivFZO2JURrxAwnYxFfMlA/c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":75938,"size":13513,"noattachment":false,"key":"/@langchain/weaviate/-/@langchain/weaviate-0.2.3.tgz"},"main":"./index.js","type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":{"import":"./index.d.ts","default":"./index.d.ts","require":"./index.d.cts"},"import":"./index.js","require":"./index.cjs"},"./package.json":"./package.json"},"gitHead":"e001428aebf3e7b91a9ec2bb95c2032edf752942","scripts":{"lint":"yarn lint:eslint && yarn lint:dpdm","test":"NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%","build":"yarn turbo:command build:internal --filter=@langchain/weaviate","clean":"rm -rf .turbo dist/","format":"prettier --config .prettierrc --write \"src\"","prepack":"yarn build","lint:fix":"yarn lint:eslint --fix && yarn lint:dpdm","test:int":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%","lint:dpdm":"dpdm --skip-dynamic-imports circular --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts","lint:eslint":"NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/","test:single":"NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000","format:check":"prettier --config .prettierrc --check \"src\"","build:internal":"yarn lc_build --create-entrypoints --pre --tree-shaking"},"_npmUser":{"name":"hntrl","email":"hunter@hntrl.io"},"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","jest":"^29.5.0","dotenv":"^16.3.1","eslint":"^8.33.0","rollup":"^4.5.2","ts-jest":"^29.1.0","prettier":"^2.8.3","@swc/core":"^1.3.90","@swc/jest":"^0.2.29","langchain":"workspace:*","release-it":"^18.1.2","typescript":"~5.8.3","@types/uuid":"^9","@jest/globals":"^29.5.0","@langchain/core":"workspace:*","@langchain/openai":"workspace:^","@langchain/scripts":">=0.1.0 <0.2.0","eslint-plugin-import":"^2.27.5","@tsconfig/recommended":"^1.0.3","jest-environment-node":"^29.6.4","eslint-config-prettier":"^8.6.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^6.12.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-no-instanceof":"^1.0.1","@typescript-eslint/eslint-plugin":"^6.12.0"},"peerDependencies":{"@langchain/core":">=0.2.21 <0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/weaviate_0.2.3_1757970615455_0.7876726639060525","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":1757970615643,"_cnpm_publish_time":1757970615643,"dist-tags":{"dev":"1.1.0-dev-1781044436312","latest":"1.1.0","next":"0.1.0-rc.0"}}