-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
31 lines (25 loc) · 855 Bytes
/
Copy pathmain.py
File metadata and controls
31 lines (25 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"""Run the RFPilot extraction pipeline for a folder of RFP files."""
import argparse
import asyncio
from pathlib import Path
from rfpilot.llm.deepseek_client import init_llm
from rfpilot.runners.pipeline_runner import run_pipeline_for_folder
def _parse_args() -> argparse.Namespace:
"""Parse command-line arguments."""
parser = argparse.ArgumentParser(
description=(
"Run the RFPilot pipeline on a folder of .md, .pdf, or .html files."
),
)
parser.add_argument(
"input_dir",
type=Path,
help="Folder containing the files to process.",
)
return parser.parse_args()
if __name__ == "__main__":
# Disabled the commandline arguments temporary
# args = _parse_args()
init_llm()
input_dir = "docs/test_docs/Bid2"
asyncio.run(run_pipeline_for_folder(input_dir))