()
| 278 | |
| 279 | # Argument parsing functions |
| 280 | def parse_args(): |
| 281 | import argparse |
| 282 | parser = argparse.ArgumentParser(description="Self-RAG method") |
| 283 | parser.add_argument('--path', type=str, default='../data/Understanding_Climate_Change.pdf', |
| 284 | help='Path to the PDF file for vector store') |
| 285 | parser.add_argument('--query', type=str, default='What is the impact of climate change on the environment?', |
| 286 | help='Query to be processed') |
| 287 | return parser.parse_args() |
| 288 | |
| 289 | |
| 290 | # Main entry point |
nothing calls this directly
no outgoing calls
no test coverage detected