From 6cf26dabce3ac7dd1894f210daaa019229dfc15f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nielson=20Jann=C3=A9?= Date: Mon, 17 Mar 2025 17:48:39 +0100 Subject: [PATCH] Fix a argparse bug --- generic_rag/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generic_rag/app.py b/generic_rag/app.py index c09c5e8..d11f996 100644 --- a/generic_rag/app.py +++ b/generic_rag/app.py @@ -36,6 +36,7 @@ parser.add_argument( "If the path is relative it will be relative to the current working directory.", ) parser.add_argument( + "-u", "--unstructured-pdf", action="store_true", help="Use an unstructered PDF loader. " @@ -53,7 +54,7 @@ parser.add_argument( ) parser.add_argument("--web-chunk-size", type=int, default=200, help="The size of the chunks to split the text into.") parser.add_argument( - "-c", + "-d", "--chroma-db-location", type=Path, default=Path(".chroma_db"),