Files
task-6a02e23da6fe2e4ac16acf65/main.py
T
2026-06-05 11:28:24 +00:00

24 lines
594 B
Python

"""Entry point for the RAG agent.
The script loads documents from a directory, initializes the knowledge base, and
provides a simple CLI for interacting with the agent.
"""
from __future__ import annotations
import argparse
from pathlib import Path
from src.cli import run_cli
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="RAG agent CLI")
parser.add_argument(
"--docs",
type=str,
default="docs",
help="Directory with documents to load into the knowledge base.",
)
args = parser.parse_args()
run_cli(args.docs)