Skip to content

Commit

Permalink
Fix/entity extraction strategy (#1046)
Browse files Browse the repository at this point in the history
* fix strategy config in entity_extraction

* update init content

---------

Co-authored-by: KylinMountain <kose2livs@gmail.com>
  • Loading branch information
AlonsoGuevara and KylinMountain committed Aug 28, 2024
1 parent ee734e6 commit 4801817
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .semversioner/next-release/patch-20240712071506108985.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "patch",
"description": "fix strategy config in entity_extraction"
}
1 change: 1 addition & 0 deletions graphrag/config/create_graphrag_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ def hydrate_parallelization_params(
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),
)

Expand Down
2 changes: 2 additions & 0 deletions graphrag/index/init_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@
# 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
Expand Down

0 comments on commit 4801817

Please sign in to comment.