Replies: 1 comment
-
@hwchase17 👋 how can I turn this idea into a feature? I'd like to add the code changes and open a PR. Do I have to follow a process? Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked
Feature request
As a user of LangChain, I want to be able to specify a custom database schema at runtime when initializing the PGVector class.
This feature proposal aims to enhance the LangChain framework by enabling dynamic specification of database schema names when initializing the PGVector class. This functionality will allow users to set custom schemas for their database tables directly through the class constructor, thereby facilitating decoupling.
Relevant Discussion: #18883
Motivation
In current implementations of the LangChain framework, the database table name is hardcoded without a schema name being specified, therefore having it default to
public
. This makes the PGVector connector lack the flexibility needed for dynamic configuration during runtime. This limitation poses challenges such as multi-tenant architectures where different clients or projects may require separate schemas.It is frustrating to have to manually adjust the selected database schema within the codebase.
Relevant Discussion: #18883
Proposal (If applicable)
schema_name
parameter to the PGVector constructor.schema_name
parameter in an instance variable for use in the _get_embedding_collection_store function.schema_name
as a parameter.Beta Was this translation helpful? Give feedback.
All reactions