Skip to content

[DERCBOT-1791] Expose full footnote metadata and title fallback flag#2005

Merged
assouktim merged 3 commits intotheopenconversationkit:masterfrom
CreditMutuelArkea:upgrade/title-fallback/DERCBOT-1791
Feb 23, 2026
Merged

[DERCBOT-1791] Expose full footnote metadata and title fallback flag#2005
assouktim merged 3 commits intotheopenconversationkit:masterfrom
CreditMutuelArkea:upgrade/title-fallback/DERCBOT-1791

Conversation

@scezen
Copy link
Copy Markdown
Member

@scezen scezen commented Feb 16, 2026

Ticket : DERCBOT-1791

Goal

Let the front-end reliably hide footnotes with fallback titles without relying on hardcoded strings, while still exposing full document metadata for future filtering needs.

Details

  • Added isTitleFallback to RAG footnotes and propagated it from the orchestrator to the bot engine and web connector (camelCase on the client side via snake_case mapping).
  • Exposed full metadata on footnotes so the front-end can filter using any ingested field (including is_title_fallback).
  • Aligned the server-side mapping to read is_title_fallback from document metadata and include it in the footnote payload.

Note :

  • We keep the existing response structure and only add optional fields (backward compatible).
  • metadata keeps original keys from ingestion (often snake_case), while isTitleFallback is a typed convenience field.

Copy link
Copy Markdown
Contributor

@assouktim assouktim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can remove the is_title_fallback attribute, everything is in the metadata. Use it from there.

@assouktim assouktim self-assigned this Feb 16, 2026
@scezen
Copy link
Copy Markdown
Member Author

scezen commented Feb 16, 2026

I think you can remove the is_title_fallback attribute, everything is in the metadata. Use it from there.

Yep, not a mistake I kept the same idea as 'title', which is also in metadata but still exposed as a first‑class field so the front-end has a clear and stable boolean to use. The metadata map is free-form and its keys can change so I tried something a bit more safe.

But I will ajust it ASAP.

Copy link
Copy Markdown
Contributor

@assouktim assouktim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@assouktim assouktim merged commit b118fa5 into theopenconversationkit:master Feb 23, 2026
7 checks passed
@assouktim assouktim deleted the upgrade/title-fallback/DERCBOT-1791 branch February 23, 2026 14:14
@zigzago zigzago added this to the 26.3.0 milestone Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants