[PR #168] [MERGED] feat: Add the PGVectorStore class #199

Closed
opened 2026-02-16 05:16:56 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langchain-postgres/pull/168
Author: @dishaprakash
Created: 3/19/2025
Status: Merged
Merged: 4/4/2025
Merged by: @averikitsch

Base: pg-vectorstoreHead: upstream-langchain


📝 Commits (10+)

📊 Changes

32 files changed (+7116 additions, -801 deletions)

View changed files

examples/migrate_pgvector_to_pgvectorstore.md (+174 -0)
📝 examples/vectorstore.ipynb (+101 -41)
📝 langchain_postgres/__init__.py (+6 -0)
langchain_postgres/utils/pgvector_migrator.py (+321 -0)
langchain_postgres/v2/__init__.py (+0 -0)
langchain_postgres/v2/async_vectorstore.py (+1248 -0)
langchain_postgres/v2/engine.py (+351 -0)
langchain_postgres/v2/indexes.py (+155 -0)
langchain_postgres/v2/vectorstores.py (+842 -0)
📝 poetry.lock (+767 -757)
📝 pyproject.toml (+3 -2)
📝 tests/unit_tests/fake_embeddings.py (+1 -0)
📝 tests/unit_tests/fixtures/filtering_test_cases.py (+1 -0)
tests/unit_tests/fixtures/metadata_filtering_data.py (+249 -0)
📝 tests/unit_tests/test_imports.py (+4 -0)
tests/unit_tests/v1/__init__.py (+0 -0)
📝 tests/unit_tests/v1/test_chat_histories.py (+0 -0)
📝 tests/unit_tests/v1/test_vectorstore.py (+1 -0)
📝 tests/unit_tests/v1/test_vectorstore_standard_tests.py (+1 -1)
tests/unit_tests/v2/__init__.py (+0 -0)

...and 12 more files

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langchain-postgres/pull/168 **Author:** [@dishaprakash](https://github.com/dishaprakash) **Created:** 3/19/2025 **Status:** ✅ Merged **Merged:** 4/4/2025 **Merged by:** [@averikitsch](https://github.com/averikitsch) **Base:** `pg-vectorstore` ← **Head:** `upstream-langchain` --- ### 📝 Commits (10+) - [`a21a8e2`](https://github.com/langchain-ai/langchain-postgres/commit/a21a8e27c5d6f488d274de4114bbf380f3e98dab) feat: Add the PGVectorStore class - [`926f417`](https://github.com/langchain-ai/langchain-postgres/commit/926f417d2f940b392728c9b3b9193cf484df03a3) Linter and format fix - [`a34ddbe`](https://github.com/langchain-ai/langchain-postgres/commit/a34ddbea3cb6eef2b1186b54cbc3c37091cfcebe) update poetry lock - [`bdd2bf6`](https://github.com/langchain-ai/langchain-postgres/commit/bdd2bf67a2dbeba5183110782ad2d5c6e5dd27ed) minor variable name change - [`239b1c3`](https://github.com/langchain-ai/langchain-postgres/commit/239b1c3cd3cac52034849bb16cff53a7de05a315) Fix import test - [`544cade`](https://github.com/langchain-ai/langchain-postgres/commit/544cade6539ea6dc7010d224ffab4b587ee4ae87) enabled socket in one test file - [`03dcac1`](https://github.com/langchain-ai/langchain-postgres/commit/03dcac16f9be29263c5c510a53ebf1921a338958) enabled socket in all test files - [`7b4fa7f`](https://github.com/langchain-ai/langchain-postgres/commit/7b4fa7f1b88630d26484cfe6799efee158addeee) Debug tests being skipped - [`1d42314`](https://github.com/langchain-ai/langchain-postgres/commit/1d42314e3f812517ba6ca6302d478dd23efd75ec) Debug tests being skipped - [`dc9a5b8`](https://github.com/langchain-ai/langchain-postgres/commit/dc9a5b8b3eed71b894a1d3d0ca2f059ba7bfe568) Debug tests being skipped ### 📊 Changes **32 files changed** (+7116 additions, -801 deletions) <details> <summary>View changed files</summary> ➕ `examples/migrate_pgvector_to_pgvectorstore.md` (+174 -0) 📝 `examples/vectorstore.ipynb` (+101 -41) 📝 `langchain_postgres/__init__.py` (+6 -0) ➕ `langchain_postgres/utils/pgvector_migrator.py` (+321 -0) ➕ `langchain_postgres/v2/__init__.py` (+0 -0) ➕ `langchain_postgres/v2/async_vectorstore.py` (+1248 -0) ➕ `langchain_postgres/v2/engine.py` (+351 -0) ➕ `langchain_postgres/v2/indexes.py` (+155 -0) ➕ `langchain_postgres/v2/vectorstores.py` (+842 -0) 📝 `poetry.lock` (+767 -757) 📝 `pyproject.toml` (+3 -2) 📝 `tests/unit_tests/fake_embeddings.py` (+1 -0) 📝 `tests/unit_tests/fixtures/filtering_test_cases.py` (+1 -0) ➕ `tests/unit_tests/fixtures/metadata_filtering_data.py` (+249 -0) 📝 `tests/unit_tests/test_imports.py` (+4 -0) ➕ `tests/unit_tests/v1/__init__.py` (+0 -0) 📝 `tests/unit_tests/v1/test_chat_histories.py` (+0 -0) 📝 `tests/unit_tests/v1/test_vectorstore.py` (+1 -0) 📝 `tests/unit_tests/v1/test_vectorstore_standard_tests.py` (+1 -1) ➕ `tests/unit_tests/v2/__init__.py` (+0 -0) _...and 12 more files_ </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 05:16:56 -05:00
yindo closed this issue 2026-02-16 05:16:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langchain-postgres#199