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

Harrison/matching engine vectorstore #3350

Merged
merged 50 commits into from
May 31, 2023

Conversation

hwchase17
Copy link
Contributor

No description provided.

@hwchase17
Copy link
Contributor Author

@tomaspiaggio i tried to update this and get it to pass lint - how does it look?

Copy link
Contributor

@tomaspiaggio tomaspiaggio left a comment

Choose a reason for hiding this comment

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

@hwchase17 some minor details. Otherwise, it lgtm. lmk if you need anything else from me!

langchain/vectorstores/matching_engine.py Outdated Show resolved Hide resolved
**kwargs: Any,
) -> "MatchingEngine":
"""Use from components instead."""
raise NotImplementedError(
Copy link
Contributor

Choose a reason for hiding this comment

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

@hwchase17 why was this removed? Previously, it would have worked regardless if the developer called from_texts or from_components

Copy link
Contributor

Choose a reason for hiding this comment

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

think the from_texts interface doesn't fit super well, since it only allows texts and embedding as args, whereas the init and from_components both expect a number of args. we could technically pipe all kwargs for from_text into one of those two but it's pretty hacky. also there's no real value to using from_texts for this class, since it'd just be wrapping instantiation and calling add_texts

langchain/vectorstores/matching_engine.py Show resolved Hide resolved
langchain/vectorstores/matching_engine.py Show resolved Hide resolved
langchain/vectorstores/matching_engine.py Outdated Show resolved Hide resolved
langchain/vectorstores/matching_engine.py Outdated Show resolved Hide resolved
@Jflick58
Copy link
Contributor

Jflick58 commented May 8, 2023

@hwchase17 really interested in seeing this get merged! Open to me fixing tomaspiaggio's comments?

@dev2049 dev2049 self-assigned this May 10, 2023
@dev2049 dev2049 requested a review from tomaspiaggio May 10, 2023 22:53
@dev2049 dev2049 merged commit 470b282 into master May 31, 2023
@dev2049 dev2049 deleted the harrison/matching-engine-vectorstore branch May 31, 2023 09:28
vowelparrot pushed a commit that referenced this pull request May 31, 2023
Co-authored-by: Tom Piaggio <tomaspiaggio@google.com>
Co-authored-by: scafati98 <jupyter@matchingengine.us-central1-a.c.scafati-joonix.internal>
Co-authored-by: scafati98 <scafatieugenio@gmail.com>
Co-authored-by: Dev 2049 <dev.dev2049@gmail.com>
@danielchalef danielchalef mentioned this pull request Jun 5, 2023
Undertone0809 pushed a commit to Undertone0809/langchain that referenced this pull request Jun 19, 2023
Co-authored-by: Tom Piaggio <tomaspiaggio@google.com>
Co-authored-by: scafati98 <jupyter@matchingengine.us-central1-a.c.scafati-joonix.internal>
Co-authored-by: scafati98 <scafatieugenio@gmail.com>
Co-authored-by: Dev 2049 <dev.dev2049@gmail.com>
This was referenced Jun 25, 2023
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.

6 participants