Skip to content

Commit

Permalink
docs: add dynamic context strategy documentation and update configura…
Browse files Browse the repository at this point in the history
…tion settings
  • Loading branch information
mrT23 committed Sep 12, 2024
1 parent 2cb0dd2 commit 0ba81e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/core-abilities/dynamic_context.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0ba81e1

Please sign in to comment.