# @langchain/weaviate

> Weaviate integration for LangChain.js

Latest version **1.1.0** (published 2026-06-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @langchain/weaviate
pnpm add @langchain/weaviate
yarn add @langchain/weaviate
bun add @langchain/weaviate
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; high maintenance score; high quality score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2026-06-12 |
| First published | 2024-02-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20 |
| Dependencies | 1 |
| Unpacked size | 149 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 18314 |
| Author | LangChain |
| Maintainers | hwchase17, jacoblee93, basproul, eric_langchain, andrewnguonly, davidduong, maddyadams, sam_noyes, langchain-security, arjun-natarajan-langchain, andy-langchain, rcasup, hntrl, christian-bromann |

## Links

- npm: https://www.npmjs.com/package/@langchain/weaviate
- Repository: https://github.com/langchain-ai/langchainjs
- Homepage: https://github.com/langchain-ai/langchainjs/tree/main/libs/community/langchain-weaviate/
- Issues: https://github.com/langchain-ai/langchainjs/issues
- npm.io page: https://npm.io/package/@langchain/weaviate

## Dependencies (1)

- [weaviate-client](https://npm.io/package/weaviate-client.md) ^3.13.1

## Recent versions

- 1.1.0 (latest) — 2026-06-12
- 1.1.0-dev-1781044436312 (dev) — 2026-06-09
- 0.1.0-rc.0 (next) — 2024-09-07
- 1.0.3 — 2026-05-18
- 1.0.2 — 2026-04-27
- 1.0.1 — 2025-11-24
- 1.0.0 — 2025-10-18
- 0.2.3 — 2025-09-15
- 0.2.2 — 2025-08-15
- 0.2.1 — 2025-07-03
- 0.2.0 — 2025-05-22
- 0.1.1 — 2025-02-05
- 0.1.0 — 2024-09-13
- 0.0.5 — 2024-08-22
- 0.0.4 — 2024-05-26
- … 3 more at https://npm.io/package/@langchain/weaviate/versions

## README

# @langchain/weaviate

This package contains the LangChain.js integrations for Weaviate with the `weaviate-client` SDK.

## Installation

```bash npm2yarn
npm install @langchain/weaviate @langchain/core
```

## Vectorstore

This package adds support for Weaviate vectorstore.

To follow along with this example install the `@langchain/openai` package for their Embeddings model.

```bash
npm install @langchain/openai
```

Now set the necessary environment variables (or pass them in via the client object):

```bash
export WEAVIATE_SCHEME=
export WEAVIATE_HOST=
export WEAVIATE_API_KEY=
```

```typescript
import weaviate, { ApiKey } from "weaviate-client";
import { WeaviateStore } from "@langchain/weaviate";

// Weaviate SDK has a TypeScript issue so we must do this.
const client = (weaviate as any).client({
  scheme: process.env.WEAVIATE_SCHEME || "https",
  host: process.env.WEAVIATE_HOST || "localhost",
  apiKey: new ApiKey(process.env.WEAVIATE_API_KEY || "default"),
});

// Create a store and fill it with some texts + metadata
await WeaviateStore.fromTexts(
  ["hello world", "hi there", "how are you", "bye now"],
  [{ foo: "bar" }, { foo: "baz" }, { foo: "qux" }, { foo: "bar" }],
  new OpenAIEmbeddings(),
  {
    client,
    indexName: "Test",
    textKey: "text",
    metadataKeys: ["foo"],
  }
);
```

## Development

To develop the `@langchain/weaviate` package, you'll need to follow these instructions:

### Install dependencies

```bash
pnpm install
```

### Build the package

```bash
pnpm build
```

Or from the repo root:

```bash
pnpm build --filter @langchain/weaviate
```

### Run tests

Test files should live within a `tests/` file in the `src/` folder. Unit tests should end in `.test.ts` and integration tests should
end in `.int.test.ts`:

```bash
$ pnpm test
$ pnpm test:int
```

### Lint & Format

Run the linter & formatter to ensure your code is up to standard:

```bash
pnpm lint && pnpm format
```

### Adding new entrypoints

If 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.

---
_Source: https://npm.io/package/@langchain/weaviate · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
