Skip to content

Commit 4cbf2dd

Browse files
jerryjliuJerry Liu
and
Jerry Liu
authored
update KG docstring (#456)
Co-authored-by: Jerry Liu <jerry@robustintelligence.com>
1 parent 3fb00be commit 4cbf2dd

File tree

1 file changed

+10
-1
lines changed
  • gpt_index/indices/knowledge_graph

1 file changed

+10
-1
lines changed

gpt_index/indices/knowledge_graph/base.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,16 @@
2929

3030

3131
class GPTKnowledgeGraphIndex(BaseGPTIndex[KG]):
32-
"""GPT KG Index."""
32+
"""GPT Knowledge Graph Index.
33+
34+
Build a KG by extracting triplets, and leveraging the KG during query-time.
35+
36+
Args:
37+
kg_triple_extract_template (KnowledgeGraphPrompt): The prompt to use for
38+
extracting triplets.
39+
max_triplets_per_chunk (int): The maximum number of triplets to extract.
40+
41+
"""
3342

3443
index_struct_cls = KG
3544

0 commit comments

Comments
 (0)