-
Notifications
You must be signed in to change notification settings - Fork 85
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
python: add Client.similar_examples() and Client.index_dataset() #924
Conversation
) | ||
langchain_client.index_dataset(dataset_id=dataset.id) | ||
# Need to wait for indexing to finish. | ||
time.sleep(5) |
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.
we need to figure out a way to not make people need to do this...
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.
yea ideally you could poll it till its done. but also this is a one-time thing for any dataset so wonder if it's that high prio.
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.
Is there an indicator in the output to read_dataset
we could use?
Add methods for interacting with
datasets/{dataset_id}/index
anddatasets/{dataset_id}/search
endpoints.Indexing takes a second so the integration test is skipped by default. Could turn it on or could update to use an existing index instead of creating one as part of the test.