Every index needs a docstore, so you can't specify without it
You can insert your own triplets according to this notebook:
https://github.com/jerryjliu/llama_index/blob/main/examples/knowledge_graph/KnowledgeGraphDemo.ipynbHowever, you'll notice each set of triplets requires a
Node
object. This is because the default behvior is to map triplets to the chunk of text they were extracted from
Then at query time, it either uses both the triplets and their associated text to generate an answer
include_text=True
or you can use only the triplets with
include_text=False