Skip to content

[BUG] Not Getting an Answer #22

@RohithDAces

Description

@RohithDAces

Describe the bug

A clear and concise description of what the bug is.

I followed all the steps — the chunks are stored correctly, and the graphs are successfully created using the sample code. However, when I query the graph, I receive the response: "Unfortunately, we couldn’t find an answer this time. Feel free to ask another question or provide additional context!" for every question I ask.

Additional context

Add any other context about the problem here, such as possible causes, workarounds, or links to related issues.
code which I used:
Create chunk(s)
chunk = client.chunks.create(
workspace_id=workspace.workspace_id,
chunks=[Chunk(
content="preneur and visionary, Rohith serves as the CEO of Bleubird , leading advancements in artificicial intelligence"
)]
)

print("Chunk created", chunk)

Create triple(s)

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

print("Triples created", triples)

Create graph

graph = client.graphs.create_graph_from_triples(
name="Rohith Test",
workspace_id=workspace.workspace_id,
triples=triples
)

print("Graph created", graph)

Query graph

query = client.graphs.query_unstructured(
graph_id=graph.graph_id,
query="Who is Rohith?"
)
print("Graph queried", query)

Logs and Error Reports

If applicable, include any relevant console logs or error reports to help diagnose the issue.

Results for the sample data:

Chunk created : [Chunk(chunk_id='680a3c366a50344512907974', created_at=datetime.datetime(2025, 4, 24, 13, 27, 6, 921000), updated_at=datetime.datetime(2025, 4, 24, 13, 27, 6, 921000), document_id=None, workspace_ids=['680a3c2a6a50344512907973'], metadata=ChunkMetadata(language='en', length=95, size=144, data_source_type='manual', index=None, page=None, start=None, end=None), content='preneur and visionary, Sam Altman serves as the CEO of OpenAI, leading advancements in artifici', embedding=None, tags={}, user_metadata={})]

Triples created : [Triple(triple_id=None, head=Node(node_id=None, label='Person', name='Sam Altman', chunk_ids=None, properties={'title': 'CEO'}, created_at=None, updated_at=None, graph_id=None), tail=Node(node_id=None, label='Business', name='OpenAI', chunk_ids=None, properties={'market cap': '$157 Billion'}, created_at=None, updated_at=None, graph_id=None), relation=Relation(name='runs', properties=None), chunk_ids=['680a3c366a50344512907974'], created_at=None, updated_at=None, properties=None, graph_id=None, embedding=None)]

Graph created : graph_id='680a3c376a50344512907975' name='Rohith Test' workspace_id='680a3c2a6a50344512907973' created_at=datetime.datetime(2025, 4, 24, 13, 27, 19, 397000) updated_at=datetime.datetime(2025, 4, 24, 13, 27, 19, 397000) schema_id='680a3c376a50344512907976' status='ready' errors=[] public=False

Graph queried query_id='680a3c3f6a50344512907978' graph_id='680a3c376a50344512907975' answer='Unfortunately, we couldn’t find an answer this time. Feel free to ask another question or provide additional context!' status='success' nodes=[] triples=[] created_at=datetime.datetime(2025, 4, 24, 13, 27, 27, 159000) updated_at=datetime.datetime(2025, 4, 24, 13, 27, 27, 159000)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions