add nlq to OpenMetadataApplicationConfig#27988
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. |
🔴 Playwright Results — 1 failure(s), 15 flaky✅ 4069 passed · ❌ 1 failed · 🟡 15 flaky · ⏭️ 86 skipped
Genuine Failures (failed on all attempts)❌
|
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 |
|
|



Summary by Gitar
nlqHybridSearchtoOpenMetadataApplicationConfig.maxConcurrentEmbeddingRequeststomaxConcurrentRequestsin configurations and code to support both embedding and NLQ providers.elasticSearchConfiguration.jsonwith new tuning parameters forbedrockandopenai(timeout, max tokens, temperature).filterExtractorandhybridSearchsettings to support advanced NLQ and search pipeline configurations.This will update automatically on new commits.