We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To make resource management easier, add __enter__ and __exit__ methods to the Embeddings instance. The __exit__ method should call close.
__enter__
__exit__
Embeddings
close
This change will enable the following patterns.
with Embeddings() as embeddings: embeddings.index(...) embeddings.save(path) with Embeddings().load(path) as embeddings: embeddings.search(query)
The text was updated successfully, but these errors were encountered:
e215ea1
Add docs for embeddings context manager #832
69aa23c
davidmezzetti
No branches or pull requests
To make resource management easier, add
__enter__
and__exit__
methods to theEmbeddings
instance. The__exit__
method should callclose
.This change will enable the following patterns.
The text was updated successfully, but these errors were encountered: