fix(ts-sdk): stop forcing pg on installs (optional ranged pg peer, optional natural) (#7450)

This commit is contained in:
Kartik
2026-09-25 20:46:24 +05:30
committed by GitHub
parent 8127e8bd47
commit 947ac79818
5 changed files with 93 additions and 57 deletions
@@ -5,6 +5,12 @@ description: "Use pgvector as a vector store in Mem0 for PostgreSQL-based vector
[pgvector](https://github.com/pgvector/pgvector) is an open-source vector similarity search extension for Postgres. After connecting to Postgres, run `CREATE EXTENSION IF NOT EXISTS vector;` to create the vector extension.
The TypeScript SDK loads the `pg` driver only when you use this store, so install it alongside `mem0ai`:
```bash
npm install pg
```
### Usage
<CodeGroup>