Adds description to context in graph completion and its subclasses (#934)

<!-- .github/pull_request_template.md -->

## Description
Adds description to context in graph completion and its subclasses

## DCO Affirmation
I affirm that all code in every commit of this pull request conforms to
the terms of the Topoteretes Developer Certificate of Origin.
This commit is contained in:
hajdul88 2025-06-09 15:54:07 +02:00 committed by GitHub
parent 4eb71ccaf4
commit ac0711defb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,7 +50,7 @@ class GraphCompletionRetriever(BaseRetriever):
content = text
else:
name = node.attributes.get("name", "Unnamed Node")
content = name
content = node.attributes.get("description", name)
nodes[node.id] = {"node": node, "name": name, "content": content}
return nodes