Skip to content

Confused about the sample code #21

@zjffdu

Description

@zjffdu

It looks like the graph is built manually in the sample code. I previously thought the graph is built by LLM. If the knowledge is built manually, then what does knowledge graph studio do? Does knowledge graph studio focus on knowledge exploration and retrieval ?

# Create triple(s)
triples = [
    Triple(
        head=Node(
            name="Sam Altman",
            label="Person",
            properties={"title": "CEO"}
        ),
        relation=Relation(
            name="runs",
        ),
        tail=Node(
            name="OpenAI",
            label="Business",
            properties={"market cap": "$157 Billion"}
        ),
        chunk_ids=[c.chunk_id for c in chunk]
    )
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions