Skip to content

docs: add FileContent data class page#11444

Open
jdoughty04 wants to merge 2 commits into
deepset-ai:mainfrom
jdoughty04:docs/filecontent-data-class
Open

docs: add FileContent data class page#11444
jdoughty04 wants to merge 2 commits into
deepset-ai:mainfrom
jdoughty04:docs/filecontent-data-class

Conversation

@jdoughty04
Copy link
Copy Markdown

Related Issues

Proposed Changes:

Adds a dedicated FileContent concept page to the data classes docs. The page covers what the dataclass stores, how to create it from a local file, URL, or existing base64 data, how to use it inside ChatMessage, and how serialization works.

I also linked the new page from the Data Classes overview and sidebar for both the unstable docs and the latest stable versioned docs.

How did you test it?

  • npm.cmd run build from docs-website (passes)
  • node -e "import('./docs-website/sidebars.js').then(...)" to verify the new sidebar entry is present
  • node -e "JSON.parse(...version-2.29-sidebars.json...)" to verify the versioned sidebar JSON parses
  • git diff --check

Notes for the reviewer

This keeps the page focused on user-facing usage and links to the generated API reference for the complete method signatures.

AI assistance disclosure: this PR was prepared with OpenAI Codex. I reviewed the changes and ran the relevant docs checks.

Checklist

  • I have read the contributors guidelines and the code of conduct.
  • The related issue is linked with fixes #10571; I did not add a separate issue comment.
  • I have added unit tests and updated the docstrings. N/A, docs-only change.
  • I've used one of the conventional commit types for my PR title: fix:, feat:, build:, chore:, ci:, docs:, style:, refactor:, perf:, test: and added ! in case the PR includes breaking changes.
  • I have documented my code. N/A, docs-only change.
  • I have added a release note file, following the contributors guidelines. N/A, docs-only change.
  • I have run pre-commit hooks and fixed any issue. N/A, docs-only change; npm.cmd run build passed.

@jdoughty04 jdoughty04 requested a review from a team as a code owner May 31, 2026 17:40
@jdoughty04 jdoughty04 requested review from bogdankostic and removed request for a team May 31, 2026 17:40
@vercel
Copy link
Copy Markdown

vercel Bot commented May 31, 2026

@jdoughty04 is attempting to deploy a commit to the deepset Team on Vercel.

A member of the Team first needs to authorize it.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 31, 2026

CLA assistant check
All committers have signed the CLA.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
haystack-docs Ready Ready Preview, Comment Jun 1, 2026 12:42pm

Request Review

Copy link
Copy Markdown
Contributor

@bogdankostic bogdankostic left a comment

Choose a reason for hiding this comment

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

Thank you so much for your PR @jdoughty04!

It looks already good, but we released v2.30 in the meantime. Can you make sure that the pages are also present in the latest version? Thanks :)

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.

Docs: Add a docs page for FileContent

3 participants