Skip to content

fix(kb): Ingest Content rename, ingest-open-by-default, deprecated badge for Google/IBM embeddings#12915

Open
keval718 wants to merge 3 commits intorelease-1.10.0from
fix/kb-ingest-content-naming
Open

fix(kb): Ingest Content rename, ingest-open-by-default, deprecated badge for Google/IBM embeddings#12915
keval718 wants to merge 3 commits intorelease-1.10.0from
fix/kb-ingest-content-naming

Conversation

@keval718
Copy link
Copy Markdown
Collaborator

@keval718 keval718 commented Apr 28, 2026

Summary

Tightens the Knowledge Base upload UX and surfaces unsupported embedding models without misleading users.

  • Rename Configure Sources heading → Ingest Content and the dropdown trigger Add SourcesAdd Files in the KB upload modal.
  • Drop the Hide Configuration footer toggle so the ingest section is open by default; chunk size/overlap/separator inputs render disabled until at least one source is added.
  • Match the Add Files dropdown's focus-visible ring to border-input so the Radix-managed focus return no longer flashes a black outline after the menu closes.
  • Flag all Google Generative AI (3) and IBM WatsonX (4) embedding models with deprecated=True in the unified model catalog. They are not natively supported by KB ingestion, so users were attempting invalid configurations.
  • KB upload picker (ModelList) and Model Providers modal (ModelSelection) now fetch with include_deprecated=true and render a Deprecated badge so the models stay visible but are clearly marked as unsupported.

Anthropic still has no embedding models — they don't ship an embedding API.

Fixes #12277

Files touched

  • src/lfx/src/lfx/base/models/google_generative_ai_constants.py
  • src/lfx/src/lfx/base/models/watsonx_constants.py
  • src/frontend/src/modals/knowledgeBaseUploadModal/**
  • src/frontend/src/modals/modelProviderModal/components/{ModelSelection,ProviderList}.tsx
  • src/frontend/src/modals/modelProviderModal/hooks/useProviderConfiguration.ts
  • src/frontend/src/components/core/parameterRenderComponent/components/modelInputComponent/components/ModelList.tsx

Test plan

  • npx jest src/components/core/parameterRenderComponent/components/modelInputComponent src/modals/modelProviderModal src/modals/knowledgeBaseUploadModal — 144/144 pass
  • Backend restart, then verify /api/v1/models?include_deprecated=true&model_type=embeddings returns Google + IBM entries with metadata.deprecated == true
  • Open KB upload modal: heading reads Ingest Content, dropdown reads Add Files, chunking inputs are disabled before any file is added, no Hide Configuration button in footer
  • Click Add Files, close the menu, confirm no black focus ring stays on the trigger
  • Open Model Providers modal → IBM WatsonX and Google Generative AI tabs show their embedding models with a grey Deprecated badge
  • Open KB embedding picker → Google + IBM entries appear with Deprecated badge; OpenAI/Ollama remain unbadged

…ault

Rename "Configure Sources" heading to "Ingest Content" and the dropdown
trigger from "Add Sources" to "Add Files". Drop the "Hide Configuration"
footer toggle so the ingest section is always visible. Chunk size,
overlap, and separator inputs render disabled until at least one source
is added. Match the Add Files focus-visible ring to border-input so the
Radix-managed focus return no longer flashes a black outline.
Flag the Google Generative AI and IBM WatsonX embedding model entries in
the unified model catalog as deprecated. They are not natively supported
by Knowledge Base ingestion, so users were attempting invalid
configurations. The KB upload picker and Model Providers modal now fetch
with include_deprecated=true and render a "Deprecated" badge so the
models stay visible but are clearly flagged as unsupported.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 28, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 5c237a0d-6a52-4106-9f66-3c3288f220c7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/kb-ingest-content-naming

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Apr 28, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

❌ Patch coverage is 77.96610% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 53.89%. Comparing base (2860e0e) to head (07764ff).
⚠️ Report is 2 commits behind head on release-1.10.0.

Files with missing lines Patch % Lines
...nents/modelInputComponent/components/ModelList.tsx 30.00% 7 Missing ⚠️
...s/modelProviderModal/components/ModelSelection.tsx 50.00% 5 Missing ⚠️
...delProviderModal/hooks/useProviderConfiguration.ts 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                 @@
##           release-1.10.0   #12915      +/-   ##
==================================================
+ Coverage           53.82%   53.89%   +0.07%     
==================================================
  Files                2045     2045              
  Lines              185870   185946      +76     
  Branches            27938    27938              
==================================================
+ Hits               100041   100223     +182     
+ Misses              84728    84613     -115     
- Partials             1101     1110       +9     
Flag Coverage Δ
backend 57.01% <ø> (+0.10%) ⬆️
frontend 54.08% <77.58%> (+0.06%) ⬆️
lfx 49.94% <100.00%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...wledgeBaseUploadModal/KnowledgeBaseUploadModal.tsx 98.03% <100.00%> (-1.97%) ⬇️
...geBaseUploadModal/components/StepConfiguration.tsx 97.06% <100.00%> (+0.75%) ⬆️
...ledgeBaseUploadModal/hooks/useKnowledgeBaseForm.ts 87.66% <100.00%> (+1.87%) ⬆️
...als/modelProviderModal/components/ProviderList.tsx 95.65% <100.00%> (+0.09%) ⬆️
.../lfx/base/models/google_generative_ai_constants.py 100.00% <100.00%> (ø)
src/lfx/src/lfx/base/models/watsonx_constants.py 100.00% <ø> (ø)
...delProviderModal/hooks/useProviderConfiguration.ts 29.14% <0.00%> (-0.28%) ⬇️
...s/modelProviderModal/components/ModelSelection.tsx 95.40% <50.00%> (-2.45%) ⬇️
...nents/modelInputComponent/components/ModelList.tsx 78.78% <30.00%> (-5.49%) ⬇️

... and 52 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Apr 28, 2026
Only mark text-embedding-004 and embedding-001 as deprecated; the
gemini-embedding-001 model is still served by the Google Generative AI
v1beta endpoint, so leave it visible without the badge.
@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Apr 28, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Frontend Unit Test Coverage Report

Coverage Summary

Lines Statements Branches Functions
Coverage: 36%
36.31% (41896/115370) 67.79% (5748/8478) 36.27% (966/2663)

Unit Test Results

Tests Skipped Failures Errors Time
4089 0 💤 0 ❌ 0 🔥 7m 58s ⏱️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant