You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Return the string representation of the enum value."""
26
-
returnself.value
27
-
11
+
from .generatorimportMAX_TOKEN_COUNT
12
+
from .loaderimportMIN_CHUNK_SIZE
28
13
29
14
if__name__=="__main__":
30
-
parser=argparse.ArgumentParser()
15
+
parser=argparse.ArgumentParser(
16
+
prog="python -m graphrag.prompt_tune",
17
+
description="The graphrag auto templating module.",
18
+
)
19
+
20
+
parser.add_argument(
21
+
"--config",
22
+
help="Configuration yaml file to use when generating prompts",
23
+
required=True,
24
+
type=str,
25
+
)
31
26
32
27
parser.add_argument(
33
28
"--root",
34
-
help="The data project root. Including the config yml, json or .env",
29
+
help="Data project root. Default: current directory",
35
30
required=False,
36
31
type=str,
37
32
default=".",
38
33
)
39
34
40
35
parser.add_argument(
41
36
"--domain",
42
-
help="The domain your input data is related to. For example 'space science', 'microbiology', 'environmental news'. If left empty, the domain will be inferred from the input data.",
37
+
help="Domain your input data is related to. For example 'space science', 'microbiology', 'environmental news'. If not defined, the domain will be inferred from the input data.",
43
38
required=False,
44
39
default="",
45
40
type=str,
46
41
)
47
42
48
43
parser.add_argument(
49
-
"--method",
50
-
help="The method to select documents, one of: all, random, top or auto",
0 commit comments