forked from AI_team/Philosophy-RAG-demo
Fix a argparse bug
This commit is contained in:
parent
bb1bf558f7
commit
6cf26dabce
@ -36,6 +36,7 @@ parser.add_argument(
|
|||||||
"If the path is relative it will be relative to the current working directory.",
|
"If the path is relative it will be relative to the current working directory.",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
"-u",
|
||||||
"--unstructured-pdf",
|
"--unstructured-pdf",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help="Use an unstructered PDF loader. "
|
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("--web-chunk-size", type=int, default=200, help="The size of the chunks to split the text into.")
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-c",
|
"-d",
|
||||||
"--chroma-db-location",
|
"--chroma-db-location",
|
||||||
type=Path,
|
type=Path,
|
||||||
default=Path(".chroma_db"),
|
default=Path(".chroma_db"),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user