mirror of
https://github.com/langchain-ai/langchain-postgres.git
synced 2026-07-16 01:33:18 -04:00
Feature Request: Support for Read-Only Endpoints in PG Vector Vector Store #35
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @juliangrueber on GitHub (Aug 6, 2024).
Issue Description:
As of now, the vector store for PG Vector requires the usage of a read and write endpoint. However, there are situations where read-only functionality is sufficient. Introducing support for read-only endpoints in the vector store would provide the following benefits:
Least Privilege Permissions:
Improved Scalability and Reduced Latency:
Proposed Change:
Modify the vector store initialization to support read-only endpoints by allowing conditional creation and checking of the vector extension and collection.
Current Code Reference:
https://github.com/langchain-ai/langchain-postgres/blob/88831295acfb7bae3184c124ba82aaf2000dd3a9/langchain_postgres/vectorstores.py#L445-L446