-
Notifications
You must be signed in to change notification settings - Fork 103
chore(docs): Add sample notebook and documentation for PGVectorStore #172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(docs): Add sample notebook and documentation for PGVectorStore #172
Conversation
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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
averikitsch
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with nits
|
Merging into the langchain-ai:pg-vectorstore branch. |
No description provided.