chore: bootstrap repository with governance docs
Initialize git, add Apache-2.0 LICENSE, .gitattributes (LF line endings), AGENTS.md (entry points, stack, discovery order, baseline checks), RUNBOOK.md (dev boot, prod deploy with overlay, ingestion, failures, rollback, scaling notes), .env.prod.example with rotated credential placeholders, and dev-only warnings on .env.example. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
24
scripts/reindex_document.py
Normal file
24
scripts/reindex_document.py
Normal file
@@ -0,0 +1,24 @@
|
||||
"""Re-run the pipeline for a single document by ID."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
import uuid
|
||||
|
||||
import click
|
||||
|
||||
from app.ingestion.pipeline import process_document_id
|
||||
from app.logging_config import configure_logging
|
||||
|
||||
configure_logging()
|
||||
|
||||
|
||||
@click.command()
|
||||
@click.option("--document-id", required=True, type=str)
|
||||
def main(document_id: str) -> None:
|
||||
result = process_document_id(uuid.UUID(document_id))
|
||||
click.echo(result)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main(standalone_mode=True) or 0)
|
||||
Reference in New Issue
Block a user