From 636d76c6994eb908a88314a8f88b261f3b2befb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B8=D1=80=D0=B8=D0=BB=D0=BB=20=D0=A0=D0=BE=D0=BC?= =?UTF-8?q?=D0=B0=D0=BD=D0=BE=D0=B2?= Date: Fri, 5 Jun 2026 11:28:24 +0000 Subject: [PATCH] Add main.py --- main.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..dea4247 --- /dev/null +++ b/main.py @@ -0,0 +1,24 @@ +"""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) \ No newline at end of file