langchain-postgres
langchain-postgres copied to clipboard
LangChain abstractions backed by Postgres Backend
Description: Add support to filter by IS NULL criteria in the metadata Issue: N/A Dependencies: N/A Twitter handle: @martinferenaz This PR fixes the problem when you want to search if...
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used...
This PR adds the **async** approach for pgvector. Some remarks: - We use assert to check invocations and not if. Thus, in production, it is possible to remove these checks...
The constructor of `PostgresChatMessageHistory` accepts only sync or async connection, and not an Engine. First, the connection was open in get_session_history, and pending during the life cycle of `RunnableWithMessageHistory`. So,...
This is the error message I got: ``` - couldn't import psycopg 'c' implementation: No module named 'psycopg_c' - couldn't import psycopg 'binary' implementation: No module named 'psycopg_binary' - couldn't...
Hello, I was getting the following error while indexing my embeddings onto PGVector. It did not throw such errors when I was using the old langchain-community implementation. Wondering if the...
The SQL for enabling the `vector` extension is hardcoded at https://github.com/langchain-ai/langchain-postgres/blob/07053067c7013b4b57c035f6caa94b2b63bfe404/langchain_postgres/vectorstores.py#L344 But when using Azure Cosmos DB for PostgreSQL, it's necessary to use `SELECT create_extension('vector');` From [relevant docs](https://learn.microsoft.com/en-us/azure/cosmos-db/postgresql/reference-extensions): ``` If...
in previous versions of the langchain postgres implementation i was able to get sub-second latency on queries that filtered by a string id in the embedding metadata ... something like,...
Curious if anyone was thinking about re-writing the table schemas such that collections map to different tables (and would therefore support indexing different embedding vector sizes) ? ``` embedding_length: The...