Database for AI powered by a storage format optimized for deep-learning applications.
75
Evaluation — 75%
↑ 1.59xAgent success when using this tile
Build a dataset management service that handles multiple dataset operations concurrently.
Create a Python module that provides a concurrent dataset manager with the following functionality:
The module should leverage async operations to manage multiple datasets efficiently.
create_datasets_async(paths: list[str]) -> list
query_datasets_async(query: str, paths: list[str]) -> list
wait_for_operations(futures: list) -> list
cancel_operation(future) -> bool
@generates
def create_datasets_async(paths: list[str]) -> list:
"""
Create multiple datasets asynchronously.
Args:
paths: List of dataset paths to create
Returns:
List of Future objects for each dataset creation
"""
pass
def query_datasets_async(query: str, paths: list[str]) -> list:
"""
Execute queries on multiple datasets asynchronously.
Args:
query: TQL query string to execute
paths: List of dataset paths to query
Returns:
List of Future objects for each query execution
"""
pass
def wait_for_operations(futures: list) -> list:
"""
Wait for all async operations to complete.
Args:
futures: List of Future objects to wait for
Returns:
List of results from completed operations
"""
pass
def cancel_operation(future) -> bool:
"""
Attempt to cancel an async operation.
Args:
future: Future object to cancel
Returns:
True if cancellation succeeded, False otherwise
"""
passProvides async dataset operations and concurrency support.
Install with Tessl CLI
npx tessl i tessl/pypi-deeplakedocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10