Skip to content

Conversation

@dishaprakash
Copy link
Collaborator

No description provided.

@dishaprakash dishaprakash changed the base branch from main to pg-vectorstore March 19, 2025 22:44
README.md Outdated
metadatas = [{"len": len(t)} for t in all_texts]
ids = [str(uuid.uuid4()) for _ in all_texts]

await store.aadd_texts(all_texts, metadatas=metadatas, ids=ids)
Copy link
Collaborator

@eyurtsev eyurtsev Mar 20, 2025

Choose a reason for hiding this comment

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

FYI -- we have some sample usage here: https://github.com/langchain-ai/langchain-postgres/blob/main/examples/vectorstore.ipynb


Preferred patterns is through add_documents rather than add_texts

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added just some sample basic usage in the readme. The ipynb file contains more indepth functionality details.

Changed the add_texts to add_documents

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.

Approved with nits

@dishaprakash dishaprakash marked this pull request as ready for review April 2, 2025 23:22
@averikitsch
Copy link
Collaborator

Merging into the langchain-ai:pg-vectorstore branch.

@averikitsch averikitsch merged commit 016f1a3 into langchain-ai:pg-vectorstore Apr 4, 2025
5 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.

3 participants