mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 12:19:47 +00:00
Improved the parallelization number handling by considering wherever agent options are preselected
This commit is contained in:
parent
06e9f8c170
commit
5d91e7c414
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user