Conversation
…arkdown - Add TIKA_CONTENT_HANDLER_TYPE metadata property to TikaCoreProperties so downstream components (inference pipeline, emitters) can determine what format tika:content is in without guessing. - Add getHandlerTypeName() to ContentHandlerFactory interface with default "UNKNOWN"; BasicContentHandlerFactory returns the HANDLER_TYPE enum name (TEXT, MARKDOWN, HTML, XML). - Record handler type in RecursiveParserWrapperHandler and ParseHandler. - Switch default content handler from TEXT to MARKDOWN in BasicContentHandlerFactory and TikaLoader. Markdown preserves structural boundaries (headings, lists, code blocks) which enables higher-quality chunking in the inference pipeline. Co-authored-by: Cursor <cursoragent@cursor.com>
- Add tika-inference module with markdown-aware chunking (MarkdownChunker), chunk serialization, OpenAI embedding filter/parser, and vector serialization for downstream search/RAG pipelines. - Add locator abstractions (paginated, spatial, temporal, text) for tracking chunk provenance within source documents. - Add migration docs: chunk strategies and inference handler requirements. Co-authored-by: Cursor <cursoragent@cursor.com>
…odule # Conflicts: # tika-core/src/main/java/org/apache/tika/sax/BasicContentHandlerFactory.java # tika-core/src/main/java/org/apache/tika/sax/ContentHandlerFactory.java # tika-core/src/main/java/org/apache/tika/sax/RecursiveParserWrapperHandler.java # tika-pipes/tika-pipes-core/src/main/java/org/apache/tika/pipes/core/server/ParseHandler.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thanks for your contribution to Apache Tika! Your help is appreciated!
Before opening the pull request, please verify that
TIKA-XXXX)[TIKA-XXXX] Issue or pull request title)./mvnw clean testmainbranch. If there are conflicts, please try to rebase the pull request branch on top of a freshly pulledmainbranchtika-bom/pom.xml.We will be able to faster integrate your pull request if these conditions are met. If you have any questions how to fix your problem or about using Tika in general, please sign up for the Tika mailing list. Thanks!