Skip to content

fix(ts-oss): register pgvector in VectorStoreFactory (#3367)#4502

Merged
whysosaket merged 1 commit intomem0ai:mainfrom
Himanshu-Sangshetti:fix/ts-pgvector-factory-3367
Mar 23, 2026
Merged

fix(ts-oss): register pgvector in VectorStoreFactory (#3367)#4502
whysosaket merged 1 commit intomem0ai:mainfrom
Himanshu-Sangshetti:fix/ts-pgvector-factory-3367

Conversation

@Himanshu-Sangshetti
Copy link
Copy Markdown
Contributor

Linked Issue

Closes #3367

Description

Wires pgvector into TypeScript OSS VectorStoreFactory (it was implemented but not registered). Also exports PGVector from mem0ai/oss, triggers initialize() from the constructor like other stores, and updates factory unit tests with a pgvector mock.

Docs: pgvector.mdx - TS snippet comment + note that omitting dbname defaults to vector_store in TS OSS vs postgres in Python. So the same has been mentioned

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • Documentation update

Breaking Changes

N/A

Test Coverage

  • I added/updated unit tests

  • cd mem0-ts/src/oss && npx tsc --noEmit

  • cd mem0-ts && npx jest src/oss/tests/factory.unit.test.ts37 passed (includes pgvector in VectorStoreFactory).

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have added tests that prove my fix/feature works
  • New and existing tests pass locally
  • I have updated documentation if needed

@whysosaket whysosaket merged commit 316dc67 into mem0ai:main Mar 23, 2026
6 of 7 checks passed
jamebobob pushed a commit to jamebobob/mem0-vigil-recall that referenced this pull request Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: typescript - VectorFactory doesn't support "pgvector" as a provider

2 participants