[PR #147] Added latest PGVector features #187

Open
opened 2026-02-16 05:16:54 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langchain-postgres/pull/147
Author: @danielfornarini
Created: 12/10/2024
Status: 🔄 Open

Base: mainHead: main


📝 Commits (8)

  • 3e885dd 🆕 added latest pgvector features
  • 7bdf7ff :fix: prevent SQL injection when using full text search
  • c32f6be Merge remote-tracking branch 'upstream/main'
  • b1eeb8c :fix: partition creation
  • 1c453ee :fix: partition creation
  • 915c00d :fix: partition creation
  • 99a2572 :fix: add embeddings
  • 402b88e reduce chunk to 500

📊 Changes

13 files changed (+2342 additions, -250 deletions)

View changed files

📝 .github/workflows/ci.yml (+2 -2)
.tool-versions (+1 -0)
📝 README.md (+180 -0)
📝 docker-compose.yml (+1 -1)
📝 langchain_postgres/__init__.py (+3 -1)
📝 langchain_postgres/_utils.py (+5 -0)
📝 langchain_postgres/vectorstores.py (+737 -100)
📝 poetry.lock (+146 -70)
📝 pyproject.toml (+3 -3)
📝 tests/unit_tests/query_constructors/test_pgvector.py (+1004 -1)
📝 tests/unit_tests/test_imports.py (+2 -0)
📝 tests/unit_tests/test_vectorstore.py (+224 -72)
📝 tests/utils.py (+34 -0)

📄 Description

  • Added IVFFlat and HNSW index
  • Added Iterative Scan for HNSW and IVFFlat index
  • Added Iterative Scan max_scan_tuples and scan_mem_multiplier options for HNSW index
  • Added ef_contruction and m options for HNSW index creation
  • Added binary quantization
  • Added partitioning by collection_id
  • Added full text search

🔄 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/147 **Author:** [@danielfornarini](https://github.com/danielfornarini) **Created:** 12/10/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (8) - [`3e885dd`](https://github.com/langchain-ai/langchain-postgres/commit/3e885dde03a65d91ecf5e2659a71489cad4d6cc2) :new: added latest pgvector features - [`7bdf7ff`](https://github.com/langchain-ai/langchain-postgres/commit/7bdf7ff72788b1175ee66ade68abd53ff88874a0) :fix: prevent SQL injection when using full text search - [`c32f6be`](https://github.com/langchain-ai/langchain-postgres/commit/c32f6beb108e37aad615ee3cbd4c6bd4a693a76d) Merge remote-tracking branch 'upstream/main' - [`b1eeb8c`](https://github.com/langchain-ai/langchain-postgres/commit/b1eeb8c15b9c8632cda66fdc81ae5686b31f7067) :fix: partition creation - [`1c453ee`](https://github.com/langchain-ai/langchain-postgres/commit/1c453eeb947e720ffea997b0cd9c374c0c326ef8) :fix: partition creation - [`915c00d`](https://github.com/langchain-ai/langchain-postgres/commit/915c00da3d57dd6bf1016062a95d8207bf905d29) :fix: partition creation - [`99a2572`](https://github.com/langchain-ai/langchain-postgres/commit/99a2572fe9b6ebe229df823f66313a26b7e78952) :fix: add embeddings - [`402b88e`](https://github.com/langchain-ai/langchain-postgres/commit/402b88ee426c4ef27ba80ed008818a736028f2d4) reduce chunk to 500 ### 📊 Changes **13 files changed** (+2342 additions, -250 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/ci.yml` (+2 -2) ➕ `.tool-versions` (+1 -0) 📝 `README.md` (+180 -0) 📝 `docker-compose.yml` (+1 -1) 📝 `langchain_postgres/__init__.py` (+3 -1) 📝 `langchain_postgres/_utils.py` (+5 -0) 📝 `langchain_postgres/vectorstores.py` (+737 -100) 📝 `poetry.lock` (+146 -70) 📝 `pyproject.toml` (+3 -3) 📝 `tests/unit_tests/query_constructors/test_pgvector.py` (+1004 -1) 📝 `tests/unit_tests/test_imports.py` (+2 -0) 📝 `tests/unit_tests/test_vectorstore.py` (+224 -72) 📝 `tests/utils.py` (+34 -0) </details> ### 📄 Description - Added IVFFlat and HNSW index - Added Iterative Scan for HNSW and IVFFlat index - Added Iterative Scan `max_scan_tuples` and `scan_mem_multiplier` options for HNSW index - Added `ef_contruction` and `m` options for HNSW index creation - Added binary quantization - Added partitioning by `collection_id` - Added full text search --- <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:54 -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#187