We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc4d87a commit 4b39851Copy full SHA for 4b39851
docs/source/user_guide_kg_builder.rst
@@ -903,6 +903,10 @@ It can be used in this way:
903
from neo4j_graphrag.experimental.components.entity_relation_extractor import (
904
LLMEntityRelationExtractor,
905
)
906
+ from neo4j_graphrag.experimental.components.types import (
907
+ TextChunks,
908
+ TextChunk
909
+ )
910
from neo4j_graphrag.llm import OpenAILLM
911
912
extractor = LLMEntityRelationExtractor(
@@ -914,7 +918,7 @@ It can be used in this way:
914
918
},
915
919
916
920
917
- await extractor.run(chunks=TextChunks(chunks=[TextChunk(text="some text")]))
921
+ await extractor.run(chunks=TextChunks(chunks=[TextChunk(text="some text", index=0)]))
922
923
924
.. warning::
0 commit comments