Skip to content

feat(kb): Add PDF and DOCX ingestion support for Knowledge Bases - #12063

Closed
Cristhianzl wants to merge 3 commits into
release-1.8.0from
cz/add-pdf-docx
Closed

feat(kb): Add PDF and DOCX ingestion support for Knowledge Bases #12063
Cristhianzl wants to merge 3 commits into
release-1.8.0from
cz/add-pdf-docx

Conversation

@Cristhianzl

Copy link
Copy Markdown
Member

Objective
Enable Knowledge Base ingestion and preview of PDF and DOCX files using existing project dependencies.

Changes

  • Add pdf and docx to accepted file types in KB upload modal
  • Create centralized extract_text_from_bytes() in data utils for binary file parsing
  • Replace raw UTF-8 decode with extract_text_from_bytes() in ingestion and preview endpoints
  • Add error handling with ValueError for corrupted PDF/DOCX files
  • Add 22 unit tests covering happy path, adversarial, and edge cases

@coderabbitai

coderabbitai Bot commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

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: ddab053a-e96b-4743-a440-0d2c38782ca0

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
  • Post copyable unit tests in a comment
  • Commit unit tests in branch cz/add-pdf-docx

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 the enhancement New feature or request label Mar 5, 2026
@Cristhianzl Cristhianzl closed this Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant