Conversation
Implement sort_contexts utility function that sorts Context objects by relative_path, start_line_number, and end_line_number. This ensures consistent, predictable ordering of contexts across all retrieval nodes, improving debuggability and result stability. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
# Conflicts: # prometheus/lang_graph/nodes/context_extraction_node.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several improvements and refactorings to the context retrieval and issue answering workflow, adds support for a new Athena semantic memory service, and updates Docker Compose configuration for better data management. The main changes can be grouped into improvements to context retrieval nodes, issue answering workflow, configuration updates, and Docker Compose refactoring.
Context Retrieval Node Improvements:
AddContextRefinedQueryMessageNodeandAddResultContextNode, which handle refined query message formatting and context deduplication/sorting, respectively. [1] [2]ContextExtractionNodeto use a more structured approach for formatting human messages and extracting contexts, now supporting refined queries with extra requirements and purpose. Output is nownew_contextsinstead of directly updatingcontext. [1] [2] [3]ContextRefineStructuredOutputto includequery,extra_requirements, andpurposefields for richer context refinement.Issue Answering Workflow Updates:
repository_idthrough the API and service layers, and into the issue graph and subgraph nodes, to support repository-specific context and memory. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]Configuration and Environment Updates:
ATHENA_BASE_URLsetting inconfig.pyand corresponding environment variable inexample.env. [1] [2]Docker Compose Refactoring:
Minor Cleanups:
Let me know if you want to dive deeper into any specific change!