Provide a way to override query building logic #54

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

Originally created by @Voileexperiments on GitHub (Oct 27, 2024).

Currently __query_collection is double underscore prefixed, which means it takes some extra effort to override the logic for building the queries.

This makes the class completely inextensible and non-customizable. It's also very strange, since if I'm using postgres (compared to something infinitely easier to setup and use, like ChromaDB) to operate embedding data, obviously I'm trying to utilize its RDBMS features, which means I might want to customize my queries to join tables. With the current design it's not "intended" for users to do this in the first place, which makes the class very useless.

Originally created by @Voileexperiments on GitHub (Oct 27, 2024). Currently `__query_collection` is double underscore prefixed, which means it takes some extra effort to override the logic for building the queries. This makes the class completely inextensible and non-customizable. It's also very strange, since if I'm using postgres (compared to something infinitely easier to setup and use, like ChromaDB) to operate embedding data, obviously I'm trying to utilize its RDBMS features, which means I might want to customize my queries to join tables. With the current design it's not "intended" for users to do this in the first place, which makes the class very useless.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langchain-postgres#54