Skip to content

Conversation

@gRedHeadphone
Copy link
Contributor

@gRedHeadphone gRedHeadphone commented Oct 13, 2025

Fixes #249

@dishaprakash
Copy link
Collaborator

Can we add documentation related to this PR into https://github.com/langchain-ai/langchain-postgres/blob/main/examples/pg_vectorstore_how_to.ipynb ?

@gRedHeadphone
Copy link
Contributor Author

Can we add documentation related to this PR into https://github.com/langchain-ai/langchain-postgres/blob/main/examples/pg_vectorstore_how_to.ipynb ?

@dishaprakash done

-e POSTGRES_PASSWORD=langchain \
-e POSTGRES_DB=langchain_test \
-p 6024:5432 pgvector/pgvector:pg16 \
-p 5432:5432 pgvector/pgvector:pg16 \
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
-p 5432:5432 pgvector/pgvector:pg16 \
-p 6024:5432 pgvector/pgvector:pg16 \

Document(
page_content=texts[i],
metadata=(
METADATAS[i] | {f"{key}_json": value for key, value in METADATAS[i].items()}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of adding more metadata to each doc, can we make a special test case to test this?

bool: "BOOLEAN",
datetime.date: "DATE",
datetime.datetime: "TIMESTAMP",
datetime.time: "TIME",
Copy link
Collaborator

Choose a reason for hiding this comment

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

We may need to convert Python None to Null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AsyncPGVectorStore Metadata Filtering Not Working

3 participants