Fix/entity extraction strategy (#1046)

* fix strategy config in entity_extraction

* update init content

---------

Co-authored-by: KylinMountain <kose2livs@gmail.com>
This commit is contained in:
Alonso Guevara 2024-08-28 17:33:05 -06:00 committed by GitHub
parent ee734e6003
commit 480181769c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,4 @@
{
"type": "patch",
"description": "fix strategy config in entity_extraction"
}

View File

@ -429,6 +429,7 @@ def create_graphrag_config(
or defs.ENTITY_EXTRACTION_ENTITY_TYPES,
max_gleanings=max_gleanings,
prompt=reader.str("prompt", Fragment.prompt_file),
strategy=entity_extraction_config.get("strategy"),
encoding_model=reader.str(Fragment.encoding_model),
)

View File

@ -89,6 +89,8 @@ reporting:
# container_name: <azure_blob_storage_container_name>
entity_extraction:
## strategy: fully override the entity extraction strategy.
## type: one of graph_intelligence, graph_intelligence_json and nltk
## llm: override the global llm settings for this task
## parallelization: override the global parallelization settings for this task
## async_mode: override the global async_mode settings for this task