Skip to content
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

Extends 6413 #6452

Merged
merged 3 commits into from
Aug 7, 2024
Merged

Extends 6413 #6452

merged 3 commits into from
Aug 7, 2024

Conversation

jacoblee93
Copy link
Collaborator

Extends #6413

CC @clemenspeters

Copy link

vercel bot commented Aug 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2024 10:20pm
langchainjs-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2024 10:20pm

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. auto:improvement Medium size change to existing code to handle new use-cases labels Aug 7, 2024
@jacoblee93 jacoblee93 merged commit 3a2c713 into main Aug 7, 2024
34 checks passed
@jacoblee93 jacoblee93 deleted the 6413 branch August 7, 2024 23:00
* @returns A new instance of `PGVectorStore`.
*/
static async initialize(
embeddings: EmbeddingsInterface,
config: PGVectorStoreArgs
config: PGVectorStoreArgs & { dimensions?: number }
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it make sense to add the optional dimensions to the PGVectorStoreArgs type directly? 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah I can now see how it's not convenient - I can just make the constructor Omit dimensions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:improvement Medium size change to existing code to handle new use-cases size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants