mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 08:47:21 +00:00
Improved the parallelization number handling by considering wherever agent options are preselected
This commit is contained in:
1 file changed
+4
-1
@@ -159,7 +159,10 @@ public sealed class AgentRetrievalContextValidation (ILogger<AgentRetrievalConte
|
||||
var validationTasks = new List<Task<RetrievalContextValidationResult>>(retrievalContexts.Count);
|
||||
|
||||
// Read the number of parallel validations:
|
||||
var numParallelValidations = this.SettingsManager.ConfigurationData.AgentRetrievalContextValidation.NumParallelValidations;
|
||||
var numParallelValidations = 3;
|
||||
if(this.SettingsManager.ConfigurationData.AgentRetrievalContextValidation.PreselectAgentOptions)
|
||||
numParallelValidations = this.SettingsManager.ConfigurationData.AgentRetrievalContextValidation.NumParallelValidations;
|
||||
|
||||
numParallelValidations = Math.Max(1, numParallelValidations);
|
||||
|
||||
// Use a semaphore to limit the number of parallel validations:
|
||||
|
||||
Reference in new issue
Block a user