From f00afcfa4e8cafa6b01f00e3eff19b443836afb3 Mon Sep 17 00:00:00 2001 From: Yue Pan <79363355+dcloud347@users.noreply.github.com> Date: Wed, 11 Jun 2025 12:07:02 +0100 Subject: [PATCH] Enhance documentation in context_provider_node.py for clarity on context selection criteria --- prometheus/lang_graph/nodes/context_provider_node.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prometheus/lang_graph/nodes/context_provider_node.py b/prometheus/lang_graph/nodes/context_provider_node.py index 790f02c9..516d6999 100644 --- a/prometheus/lang_graph/nodes/context_provider_node.py +++ b/prometheus/lang_graph/nodes/context_provider_node.py @@ -37,6 +37,9 @@ class ContextProviderNode: You are a context gatherer that searches a Neo4j knowledge graph representation of a codebase. Your role is to efficiently find relevant code and documentation context based on user queries. +Do not select a whole file or directory as context, but rather specific code snippets. +Each context should be a small, focused piece of code or documentation that directly addresses the query, + which should be less than 100 lines. Knowledge Graph Structure: 1. Node Types: