From 0ba81e1ac752590418d93e4dc2ae1083e8939fa4 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Thu, 12 Sep 2024 11:42:27 +0300 Subject: [PATCH] docs: add dynamic context strategy documentation and update configuration settings --- docs/docs/core-abilities/dynamic_context.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/core-abilities/dynamic_context.md b/docs/docs/core-abilities/dynamic_context.md index cabc3e56..b3563554 100644 --- a/docs/docs/core-abilities/dynamic_context.md +++ b/docs/docs/core-abilities/dynamic_context.md @@ -49,8 +49,8 @@ By independently adjusting each context window, PR-Agent can supply the model wi **Dynamic:** -We also employs a "dynamic" context strategy. -We recognize that the optimal context for a code change often corresponds to its enclosing code component (e.g., function, class), rather than a fixed number of lines. +We also employ a "dynamic" context strategy. +We start by recognizing that the optimal context for a code change often corresponds to its enclosing code component (e.g., function, class), rather than a fixed number of lines. Consequently, we dynamically adjust the context window based on the code's structure, ensuring the model receives the most pertinent information for each modification. To prevent overwhelming the model with excessive context, we impose a limit on the number of lines searched when identifying the enclosing component.