docetl.cli
docetl.cli.run(yaml_file=typer.Argument(..., help='Path to the YAML file containing the pipeline configuration'), max_threads=typer.Option(None, help='Maximum number of threads to use for running operations'))
Run the configuration specified in the YAML file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
yaml_file
|
Path
|
Path to the YAML file containing the pipeline configuration. |
Argument(..., help='Path to the YAML file containing the pipeline configuration')
|
max_threads
|
Optional[int]
|
Maximum number of threads to use for running operations. |
Option(None, help='Maximum number of threads to use for running operations')
|
Source code in docetl/cli.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
|
docetl.cli.build(yaml_file=typer.Argument(..., help='Path to the YAML file containing the pipeline configuration'), max_threads=typer.Option(None, help='Maximum number of threads to use for running operations'), model=typer.Option('gpt-4o', help='Model to use for optimization'), resume=typer.Option(False, help='Resume optimization from a previous build that may have failed'), timeout=typer.Option(60, help='Timeout for optimization operations in seconds'))
Build and optimize the configuration specified in the YAML file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
yaml_file
|
Path
|
Path to the YAML file containing the pipeline configuration. |
Argument(..., help='Path to the YAML file containing the pipeline configuration')
|
max_threads
|
Optional[int]
|
Maximum number of threads to use for running operations. |
Option(None, help='Maximum number of threads to use for running operations')
|
model
|
str
|
Model to use for optimization. Defaults to "gpt-4o". |
Option('gpt-4o', help='Model to use for optimization')
|
resume
|
bool
|
Whether to resume optimization from a previous run. Defaults to False. |
Option(False, help='Resume optimization from a previous build that may have failed')
|
timeout
|
int
|
Timeout for optimization operations in seconds. Defaults to 60. |
Option(60, help='Timeout for optimization operations in seconds')
|
Source code in docetl/cli.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|
docetl.cli.clear_cache()
Clear the LLM cache stored on disk.
Source code in docetl/cli.py
83 84 85 86 87 88 |
|