Skip to content

feat: remove code#1404

Merged
earayu merged 1 commit intomainfrom
remove_useless_graph_index_code
Nov 12, 2025
Merged

feat: remove code#1404
earayu merged 1 commit intomainfrom
remove_useless_graph_index_code

Conversation

@earayu
Copy link
Copy Markdown
Collaborator

@earayu earayu commented Nov 12, 2025

Note

Removes legacy query paths (kg/naive and LightRAG.aquery) and introduces a new context-only aquery_context, while cleaning prompts and simplifying types.

  • RAG Query APIs:
    • Remove kg_query and naive_query from operate.py and their usage/imports.
    • Remove LightRAG.aquery(...) method.
    • Add LightRAG.aquery_context(...) to build and return sanitized KG/DC context (strips file_path).
  • Context Building:
    • Extend vector context to include file_path/created_at; propagate file_path through entity/relation/text contexts.
  • Prompts:
    • Remove PROMPTS["DEFAULT_USER_PROMPT"] and deprecated similarity_check prompt.
  • Types/Cleanup:
    • Drop AsyncIterator type hints and related return types.
    • Minor logging/validation improvements and consistency tweaks across context construction.

Written by Cursor Bugbot for commit adc0e58. This will update automatically on new commits. Configure here.

@earayu earayu requested a review from iziang as a code owner November 12, 2025 06:40
@apecloud-bot apecloud-bot added the size/L Denotes a PR that changes 100-499 lines. label Nov 12, 2025
@apecloud-bot
Copy link
Copy Markdown
Collaborator

This branch name is not following the standards: feature/|bugfix/|release/|hotfix/|support/|releasing/|dependabot/

2 similar comments
@apecloud-bot
Copy link
Copy Markdown
Collaborator

This branch name is not following the standards: feature/|bugfix/|release/|hotfix/|support/|releasing/|dependabot/

@apecloud-bot
Copy link
Copy Markdown
Collaborator

This branch name is not following the standards: feature/|bugfix/|release/|hotfix/|support/|releasing/|dependabot/

@earayu earayu merged commit 0e6419f into main Nov 12, 2025
12 of 15 checks passed
@earayu earayu deleted the remove_useless_graph_index_code branch November 12, 2025 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L Denotes a PR that changes 100-499 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants