Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .semversioner/next-release/patch-20240919000033794082.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "patch",
"description": "Fix prompt tune output path"
}
2 changes: 1 addition & 1 deletion graphrag/prompt_tune/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
)
parser.add_argument(
"--output",
help="Directory to save generated prompts to. Default: 'prompts'",
help="Directory to save generated prompts to, relative to the root directory. Default: 'prompts'",
type=str,
default="prompts",
)
Expand Down
4 changes: 2 additions & 2 deletions graphrag/prompt_tune/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async def prompt_tune(
- chunk_size: The chunk token size to use.
- language: The language to use for the prompts.
- skip_entity_types: Skip generating entity types.
- output: The output folder to store the prompts.
- output: The output folder to store the prompts. Relative to the root directory.
- n_subset_max: The number of text chunks to embed when using auto selection method.
- k: The number of documents to select when using auto selection method.
- min_examples_required: The minimum number of examples required for entity extraction prompts.
Expand All @@ -67,7 +67,7 @@ async def prompt_tune(
k=k,
)

output_path = Path(output).resolve()
output_path = (root_path / output).resolve()
if output_path:
reporter.info(f"Writing prompts to {output_path}")
output_path.mkdir(parents=True, exist_ok=True)
Expand Down