| 20 | from src.logger import logger |
| 21 | |
| 22 | def parse_args(): |
| 23 | parser = argparse.ArgumentParser(description='main') |
| 24 | parser.add_argument("--config", default=os.path.join(root, "configs", "tool_calling_agent.py"), help="config file path") |
| 25 | |
| 26 | parser.add_argument( |
| 27 | '--cfg-options', |
| 28 | nargs='+', |
| 29 | action=DictAction, |
| 30 | help='override some settings in the used config, the key-value pair ' |
| 31 | 'in xxx=yyy format will be merged into config file. If the value to ' |
| 32 | 'be overwritten is a list, it should be like key="[a,b]" or key=a,b ' |
| 33 | 'It also allows nested list/tuple values, e.g. key="[(a,b),(c,d)]" ' |
| 34 | 'Note that the quotation marks are necessary and that no white space ' |
| 35 | 'is allowed.') |
| 36 | args = parser.parse_args() |
| 37 | return args |
| 38 | |
| 39 | class FaissTester: |
| 40 | """Comprehensive test suite for FAISS functionality.""" |