-
Notifications
You must be signed in to change notification settings - Fork 155
feat(ai): support graph consolidate algorithm #729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
# Conflicts: # geaflow-ai/pom.xml # geaflow-ai/src/main/java/org/apache/geaflow/ai/GraphMemoryServer.java # geaflow-ai/src/main/java/org/apache/geaflow/ai/common/ErrorCode.java # geaflow-ai/src/main/java/org/apache/geaflow/ai/common/config/Constants.java # geaflow-ai/src/main/java/org/apache/geaflow/ai/graph/MemoryMutableGraph.java # geaflow-ai/src/main/java/org/apache/geaflow/ai/graph/MutableGraph.java # geaflow-ai/src/main/java/org/apache/geaflow/ai/graph/io/MemoryGraph.java # geaflow-ai/src/main/java/org/apache/geaflow/ai/operator/GraphSearchStore.java # geaflow-ai/src/main/java/org/apache/geaflow/ai/operator/SearchUtils.java # geaflow-ai/src/main/java/org/apache/geaflow/ai/operator/SessionOperator.java # geaflow-ai/src/main/java/org/apache/geaflow/ai/session/SessionManagement.java # geaflow-ai/src/main/java/org/apache/geaflow/ai/verbalization/SubgraphSemanticPromptFunction.java # geaflow-ai/src/test/java/org/apache/geaflow/ai/MutableGraphTest.java
Appointat
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
|
||
| if (null == mutableGraph.getSchema().getSchema( | ||
| Constants.CONSOLIDATE_KEYWORD_RELATION_LABEL)) { | ||
| int code = mutableGraph.addEdgeSchema(new EdgeSchema( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the graph schema is changed or updated inside a function rather than being created by the caller before execution, is there a risk that the updated schema will not be visible to subsequent steps?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The modification and synchronization of the mutableGraph are entirely managed by the external HTAP graph engine. The Server side of the GraphMemory component is not responsible for this logic. Currently, there is only one instance of ConsolidateServer in the system, so there are no data synchronization or conflict issues between multiple instances.
| import org.slf4j.LoggerFactory; | ||
|
|
||
| @Controller | ||
| public class GeaFlowMemoryServer { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a need for an API to start the ConsolidateServer? I don't see any explicit startup command for it.
Description
The current context memory system lacks support for unstructured data types such as text, images, video, and audio. These data formats do not come with pre-built graph structures, requiring a mechanism to dynamically extract and model relationships from raw data.
Solution
Implement a
ConsolidateFunctioncomponent that will: