mirror of
https://github.com/langchain-ai/langchain-postgres.git
synced 2026-07-16 01:33:18 -04:00
issues while running quickstart for pgvector #72
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 @eyurtsev on GitHub (Apr 7, 2025).
the line that initializes the table uses the wrong variable (engine instead of pg_engine) and uses a public method, but the method is actually private
initializing twice raises an exception (should we have create if not exists semantics as well?) Users may want to have the code live in their app lifespan for simplicity (instead of doing some logic on server deployment)
cohere embeddings fails due to cohere model not being specified.
using pgvectorstore create fails w/ an exception (
AttributeError: 'AsyncEngine' object has no attribute '_run_as_async')
got stuck at this stage
@averikitsch commented on GitHub (Apr 7, 2025):
@eyurtsev commented on GitHub (Apr 7, 2025):
yep confirmed was an issue just b/c of engine vs. pg_engine
OK skipping
not sure can try again, i running through the cells one by one
@dishaprakash commented on GitHub (Apr 7, 2025):
& 4. Are being caused by the use of variable engine instead of pg_engine.
The PGVector example notebook mentioned this way of initializing the cohere embedding so I left that in. I'll update it to mention the model name.
Sorry about the oversight. I'll make the changes
@dishaprakash commented on GitHub (Apr 7, 2025):
The above changes are being made in https://github.com/langchain-ai/langchain-postgres/pull/183