mirror of
https://github.com/langchain-ai/langchain-postgres.git
synced 2026-07-16 01:33:18 -04:00
relation "langchain_pg_collection" does not exist #5
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 @joshpopelka20 on GitHub (Apr 22, 2024).
After creating the vector store,
I try to run:
vectorstore.add_documents(docs, ids=[doc.metadata['id'] for doc in docs])I'm getting this error message: relation "langchain_pg_collection" does not exist
I'm using python3.10, psycopg3, and langchain-postgres v0.0.3
@joshpopelka20 commented on GitHub (Apr 23, 2024):
For anyone else facing this issue, I was able to figure it out by running these two commands after vectorstore.drop_tables():