Skip to content

Conversation

@yukiharada1228
Copy link
Contributor

The connection string example in README.md is incorrect.

Currently, README.md shows:

CONNECTION_STRING = "postgresql+psycopg3://langchain:langchain@localhost:6024/langchain"

However, this format causes the following error:

NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:postgresql.psycopg3

The actual example files (examples/vectorstore.ipynb, examples/pg_vectorstore.ipynb, etc.) use the correct format postgresql+psycopg://, which works correctly.

The examples/vectorstore.ipynb also explicitly states: "the driver name is psycopg not psycopg3, but it'll use psycopg3."

Proposed fix:
Line 46 in README.md should be changed from:

CONNECTION_STRING = "postgresql+psycopg3://langchain:langchain@localhost:6024/langchain"

to:

CONNECTION_STRING = "postgresql+psycopg://langchain:langchain@localhost:6024/langchain"

Copy link
Collaborator

@averikitsch averikitsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@averikitsch averikitsch merged commit c97cff5 into langchain-ai:main Nov 14, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants