def test__parse_triplet_response(doc_triplets_with_text_around: List[Document]) -> None:
    """Test build knowledge graph with triplet response in other format."""
    parsed_triplets = []
    for doc_triplet in doc_triplets_with_text_around:
        parsed_triplets.append(
            KnowledgeGraphIndex._parse_triplet_response(doc_triplet.text)
        )
    assert len(parsed_triplets) == 1
    assert len(parsed_triplets[0]) == 3
    # Expecting Capitalized triplet Outputs
    assert ("Foo", "Is", "Bar") in parsed_triplets[0]
    assert ("Hello", "Is not", "World") in parsed_triplets[0]
    assert ("Jane", "Is mother of", "Bob") in parsed_triplets[0]
Test build knowledge graph with triplet response in other format.
llama-index-core/tests/indices/knowledge_graph/test_base.py