[PR #91] Add support for HNSW and IVFFlat indexes, add tests #157

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langchain-postgres/pull/91
Author: @Sachin-Bhat
Created: 7/18/2024
Status: 🔄 Open

Base: mainHead: feature-add-indexes


📝 Commits (2)

  • 86b520e Add support for HNSW and IVFFlat indexes, add tests
  • fceafd2 Modify query to only select from embedding column

📊 Changes

2 files changed (+233 additions, -1 deletions)

View changed files

📝 langchain_postgres/vectorstores.py (+148 -1)
📝 tests/unit_tests/test_vectorstore.py (+85 -0)

📄 Description

Hey @eyurtsev

Added support for HNSW and IVFFlat index via a control pane as mentioned in #85. Added a few test cases for the same as well. Please let me know what other changes have to be made and I can do the same. Merging this closes #89.

Cheers,
Sachin


🔄 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/91 **Author:** [@Sachin-Bhat](https://github.com/Sachin-Bhat) **Created:** 7/18/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feature-add-indexes` --- ### 📝 Commits (2) - [`86b520e`](https://github.com/langchain-ai/langchain-postgres/commit/86b520ebb3177ff6740f910b83aa01633764986b) Add support for HNSW and IVFFlat indexes, add tests - [`fceafd2`](https://github.com/langchain-ai/langchain-postgres/commit/fceafd2239228e2ccf58607823f88b4b9093be42) Modify query to only select from embedding column ### 📊 Changes **2 files changed** (+233 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `langchain_postgres/vectorstores.py` (+148 -1) 📝 `tests/unit_tests/test_vectorstore.py` (+85 -0) </details> ### 📄 Description Hey @eyurtsev Added support for HNSW and IVFFlat index via a control pane as mentioned in #85. Added a few test cases for the same as well. Please let me know what other changes have to be made and I can do the same. Merging this closes #89. Cheers, Sachin --- <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:47 -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#157