Skip to content

Conversation

@lusains
Copy link
Contributor

@lusains lusains commented Nov 3, 2025

…ument()

In v0.7.0, the file_id parameter was added to the knowledge graph loading pipeline to support document-level graph structure tracking. However, the BuiltinKnowledgeGraph.aload_document() method was not updated accordingly.

This commit adds the file_id parameter to match the interface used by:

  • IndexStoreBase.aload_document_with_limit() (caller)
  • VectorStoreBase.aload_document() (correct implementation)
  • CommunitySummaryKnowledgeGraph.aload_document() (correct implementation)

Changes:

  • Added file_id: Optional[str] = None parameter to the method signature
  • Updated docstring to document the new parameter
  • Maintained the # type: ignore comment for base class signature compatibility

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Snapshots:

Include snapshots for easier review.

Checklist:

  • My code follows the style guidelines of this project
  • I have already rebased the commits and make the commit message conform to the project standard.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • Any dependent changes have been merged and published in downstream modules

…ument()

In v0.7.0, the file_id parameter was added to the knowledge graph loading
pipeline to support document-level graph structure tracking. However, the
BuiltinKnowledgeGraph.aload_document() method was not updated accordingly.

This commit adds the file_id parameter to match the interface used by:
- IndexStoreBase.aload_document_with_limit() (caller)
- VectorStoreBase.aload_document() (correct implementation)
- CommunitySummaryKnowledgeGraph.aload_document() (correct implementation)

Changes:
- Added file_id: Optional[str] = None parameter to the method signature
- Updated docstring to document the new parameter
- Maintained the # type: ignore comment for base class signature compatibility
@github-actions github-actions bot added the fix Bug fixes label Nov 3, 2025
Copy link
Collaborator

@Aries-ckt Aries-ckt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.thanks for your contribution.

Copy link
Collaborator

@chenliang15405 chenliang15405 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks for your contribution

@chenliang15405 chenliang15405 merged commit f74311f into eosphoros-ai:main Nov 4, 2025
8 checks passed
@lusains lusains deleted the claude/add-file-id-builtin-kg-011CUkhwWzKkBunzk4t5NQJi branch December 31, 2025 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] [knowledge-graph] BuiltinKnowledgeGraph.aload_document() missing file_id parameter causing TypeError in v0.7.x

4 participants