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

Create async copy of from_text() inside GraphIndexCreator. #5214

Merged
merged 1 commit into from
May 25, 2023

Conversation

maspotts
Copy link
Contributor

Copies GraphIndexCreator.from_text() to make an async version called GraphIndexCreator.afrom_text().

This is (should be) a trivial change: it just adds a copy of GraphIndexCreator.from_text() which is async and awaits a call to chain.apredict() instead of chain.predict(). There is no unit test for GraphIndexCreator, and I did not create one, but this code works for me locally.

@agola11 @hwchase17

Copy link
Contributor

@hwchase17 hwchase17 left a comment

Choose a reason for hiding this comment

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

lgtm! thanks

@hwchase17 hwchase17 merged commit 95c9aa1 into langchain-ai:master May 25, 2023
@danielchalef danielchalef mentioned this pull request Jun 5, 2023
Undertone0809 pushed a commit to Undertone0809/langchain that referenced this pull request Jun 19, 2023
…-ai#5214)

Copies `GraphIndexCreator.from_text()` to make an async version called
`GraphIndexCreator.afrom_text()`.

This is (should be) a trivial change: it just adds a copy of
`GraphIndexCreator.from_text()` which is async and awaits a call to
`chain.apredict()` instead of `chain.predict()`. There is no unit test
for GraphIndexCreator, and I did not create one, but this code works for
me locally.

@agola11 @hwchase17
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.

2 participants