From 526d7ff5d21a9bd567f7df0f4dfc7a236410d7e5 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Wed, 9 Apr 2025 08:24:26 +0300 Subject: [PATCH] Update default number of code suggestions per chunk from 4 to 3 --- docs/docs/index.md | 3 ++- docs/docs/tools/custom_prompt.md | 2 +- docs/docs/tools/improve.md | 4 ++-- pr_agent/settings/configuration.toml | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/docs/index.md b/docs/docs/index.md index 4dc69af9..5bdc8030 100644 --- a/docs/docs/index.md +++ b/docs/docs/index.md @@ -66,7 +66,8 @@ PR-Agent and Qodo Merge offers extensive pull request functionalities across var | | [PR interactive actions](https://www.qodo.ai/images/pr_agent/pr-actions.mp4) 💎 | ✅ | ✅ | | | | | [Impact Evaluation](https://qodo-merge-docs.qodo.ai/core-abilities/impact_evaluation/) 💎 | ✅ | ✅ | | | -💎 marks a feature available only in [Qodo Merge](https://www.codium.ai/pricing/){:target="_blank"}, and not in the open-source version. +!!! note "💎 means Qodo Merge only" + All along the documentation, 💎 marks a feature available only in [Qodo Merge](https://www.codium.ai/pricing/){:target="_blank"}, and not in the open-source version. ## Example Results diff --git a/docs/docs/tools/custom_prompt.md b/docs/docs/tools/custom_prompt.md index 7b31a5a5..31823c8e 100644 --- a/docs/docs/tools/custom_prompt.md +++ b/docs/docs/tools/custom_prompt.md @@ -53,6 +53,6 @@ Results obtained with the prompt above: - `prompt`: the prompt for the tool. It should be a multi-line string. -- `num_code_suggestions_per_chunk`: number of code suggestions provided by the 'custom_prompt' tool, per chunk. Default is 4. +- `num_code_suggestions_per_chunk`: number of code suggestions provided by the 'custom_prompt' tool, per chunk. Default is 3. - `enable_help_text`: if set to true, the tool will display a help text in the comment. Default is true. diff --git a/docs/docs/tools/improve.md b/docs/docs/tools/improve.md index 97a1cc39..ed361865 100644 --- a/docs/docs/tools/improve.md +++ b/docs/docs/tools/improve.md @@ -379,7 +379,7 @@ Qodo Merge uses a dynamic strategy to generate code suggestions based on the siz - Each chunk contains up to `pr_code_suggestions.max_context_tokens` tokens (default: 14,000). #### 2. Generating suggestions -- For each chunk, Qodo Merge generates up to `pr_code_suggestions.num_code_suggestions_per_chunk` suggestions (default: 4). +- For each chunk, Qodo Merge generates up to `pr_code_suggestions.num_code_suggestions_per_chunk` suggestions (default: 3). This approach has two main benefits: @@ -456,7 +456,7 @@ Note: Chunking is primarily relevant for large PRs. For most PRs (up to 500 line num_code_suggestions_per_chunk - Number of code suggestions provided by the 'improve' tool, per chunk. Default is 4. + Number of code suggestions provided by the 'improve' tool, per chunk. Default is 3. max_number_of_calls diff --git a/pr_agent/settings/configuration.toml b/pr_agent/settings/configuration.toml index e44a465c..1a58cc0b 100644 --- a/pr_agent/settings/configuration.toml +++ b/pr_agent/settings/configuration.toml @@ -143,7 +143,7 @@ new_score_mechanism_th_high=9 new_score_mechanism_th_medium=7 # params for '/improve --extended' mode auto_extended_mode=true -num_code_suggestions_per_chunk=4 +num_code_suggestions_per_chunk=3 max_number_of_calls = 3 parallel_calls = true @@ -167,7 +167,7 @@ The code suggestions should focus only on the following: ... """ suggestions_score_threshold=0 -num_code_suggestions_per_chunk=4 +num_code_suggestions_per_chunk=3 self_reflect_on_custom_suggestions=true enable_help_text=false