Conversation
| dimension, | ||
| endpoint, | ||
| isAzure, | ||
| new NaturalLanguageSearchConfiguration().getMaxConcurrentRequests()); |
There was a problem hiding this comment.
💡 Quality: Instantiating config object just to read a default value
The change replaces DEFAULT_MAX_CONCURRENT_REQUESTS (a clear constant with value 10) with new NaturalLanguageSearchConfiguration().getMaxConcurrentRequests(). This instantiates a full configuration POJO solely to retrieve a JSON-schema default value. This is less readable and less efficient than referencing the existing constant in EmbeddingClient. The parent class EmbeddingClient already has resolveMaxConcurrent() which falls back to DEFAULT_MAX_CONCURRENT_REQUESTS when the config value is null/non-positive, so the indirection through a fresh config object is unnecessary.
Suggested fix:
Replace with the existing constant:
this(
httpClient,
apiKey,
modelId,
dimension,
endpoint,
isAzure,
DEFAULT_MAX_CONCURRENT_REQUESTS);
Was this helpful? React with 👍 / 👎 | Reply gitar fix to apply this suggestion
✅ TypeScript Types Auto-UpdatedThe generated TypeScript types have been automatically updated based on JSON schema changes in this PR. |
Code Review 👍 Approved with suggestions 1 resolved / 2 findingsIntegrates NLQ configuration into the application core and updates client settings for Bedrock and OpenAI providers. Refactor the instantiation of NaturalLanguageSearchConfiguration to avoid object creation when retrieving default values. 💡 Quality: Instantiating config object just to read a default valueThe change replaces Suggested fix✅ 1 resolved✅ Quality: Untyped JsonNode config loses validation and discoverability
🤖 Prompt for agentsOptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|
🟡 Playwright Results — all passed (15 flaky)✅ 4013 passed · ❌ 0 failed · 🟡 15 flaky · ⏭️ 86 skipped
🟡 15 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |



Summary by Gitar
maxConcurrentEmbeddingRequeststomaxConcurrentRequestsinopenmetadata.yamland service logic.timeoutSeconds,maxTokens,temperature) forbedrockandopenaiconfigurations.filterExtractorfor NLQ cache tuning andhybridSearchsettings for OpenSearch scoring and pagination parameters.OpenAIEmbeddingClientto usemaxConcurrentRequestsfromNaturalLanguageSearchConfigurationduring initialization.nlqHybridSearchfield toOpenMetadataApplicationConfigto support new NLQ configurations.elasticSearchConfiguration.tsandsettings.tsin the UI to reflect new NLQ and configuration schema changes.This will update automatically on new commits.