mirror of
https://github.com/microsoft/graphrag.git
synced 2025-12-12 15:31:24 +00:00
Fix img for autotune (#1060)
* Fix img for autotune * Add line breaks to tune docs * More line breaks
This commit is contained in:
parent
6fc452b954
commit
7ffce8d7ba
@ -0,0 +1,4 @@
|
||||
{
|
||||
"type": "patch",
|
||||
"description": "Fix img for auto tune"
|
||||
}
|
||||
@ -11,7 +11,7 @@ GraphRAG provides the ability to create domain adapted prompts for the generatio
|
||||
These are generated by loading the inputs, splitting them into chunks (text units) and then running a series of LLM invocations and template substitutions to generate the final prompts. We suggest using the default values provided by the script, but in this page you'll find the detail of each in case you want to further explore and tweak the prompt tuning algorithm.
|
||||
|
||||
<p align="center">
|
||||
<img src="../../img/auto-tune-diagram.png" alt="Figure 1: Auto Tuning Conceptual Diagram." width="450" align="center" />
|
||||
<img src="../../../img/auto-tune-diagram.png" alt="Figure 1: Auto Tuning Conceptual Diagram." width="450" align="center" />
|
||||
</p>
|
||||
<p align="center">
|
||||
Figure 1: Auto Tuning Conceptual Diagram.
|
||||
@ -26,7 +26,9 @@ Before running auto tuning make sure you have already initialized your workspace
|
||||
You can run the main script from the command line with various options:
|
||||
|
||||
```bash
|
||||
python -m graphrag.prompt_tune [--root ROOT] [--domain DOMAIN] [--method METHOD] [--limit LIMIT] [--language LANGUAGE] [--max-tokens MAX_TOKENS] [--chunk-size CHUNK_SIZE] [--n-subset-max N_SUBSET_MAX] [--k K] [--min-examples-required MIN_EXAMPLES_REQUIRED] [--no-entity-types] [--output OUTPUT]
|
||||
python -m graphrag.prompt_tune [--root ROOT] [--domain DOMAIN] [--method METHOD] [--limit LIMIT] [--language LANGUAGE] \
|
||||
[--max-tokens MAX_TOKENS] [--chunk-size CHUNK_SIZE] [--n-subset-max N_SUBSET_MAX] [--k K] \
|
||||
[--min-examples-required MIN_EXAMPLES_REQUIRED] [--no-entity-types] [--output OUTPUT]
|
||||
```
|
||||
|
||||
## Command-Line Options
|
||||
@ -60,7 +62,9 @@ python -m graphrag.prompt_tune [--root ROOT] [--domain DOMAIN] [--method METHOD
|
||||
## Example Usage
|
||||
|
||||
```bash
|
||||
python -m graphrag.prompt_tune --root /path/to/project --config /path/to/settings.yaml --domain "environmental news" --method random --limit 10 --language English --max-tokens 2048 --chunk-size 256 --min-examples-required 3 --no-entity-types --output /path/to/output
|
||||
python -m graphrag.prompt_tune --root /path/to/project --config /path/to/settings.yaml --domain "environmental news" \
|
||||
--method random --limit 10 --language English --max-tokens 2048 --chunk-size 256 --min-examples-required 3 \
|
||||
--no-entity-types --output /path/to/output
|
||||
```
|
||||
|
||||
or, with minimal configuration (suggested):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user