Skip to content

feat: Table Enrichment - Descriptions and Indexing #292

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Nikhil200030
Copy link

Implemented code to retrieve table descriptions using LLMs and insert them back into the markdown file at the appropriate indices.

Copy link

mergify bot commented May 13, 2025

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟢 Enforce conventional commit

Wonderful, this rule succeeded.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?(!)?:

@Nikhil200030
Copy link
Author

image

Signed-off-by: Nikhil Khandelwal <nikhil.khandelwal3@ibm.com>
@@ -282,9 +329,24 @@ def _serialize_image_part(
text_res = image_placeholder
else:
text_res = f"![Image]({str(item.image.uri)})"

elif image_mode == ImageRefMode.DESCRIPTION:
Copy link
Contributor

Choose a reason for hiding this comment

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

ImageRefMode is not supposed to be used for switching to the description output.
We recently introduced the concept of Serializers exactly for this purpose.

See docs at: https://docling-project.github.io/docling/concepts/serialization/
Examples at: https://docling-project.github.io/docling/examples/serialization/

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.

2 participants