code-shredding
This commit is contained in:
20
src/knowledge_pipeline/cli.py
Normal file
20
src/knowledge_pipeline/cli.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import logging
|
||||
|
||||
import typer
|
||||
|
||||
from .config import Settings
|
||||
from .pipeline import run_pipeline
|
||||
|
||||
app = typer.Typer()
|
||||
|
||||
|
||||
@app.command()
|
||||
def run_ingestion():
|
||||
"""Main function for the CLI script."""
|
||||
settings = Settings.model_validate({})
|
||||
logging.getLogger("knowledge_pipeline").setLevel(getattr(logging, settings.log_level))
|
||||
run_pipeline(settings)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app()
|
||||
Reference in New Issue
Block a user