feat: implement Document AI functions & support custom IK dictionaries#1064
Open
breeze-wink wants to merge 9 commits into
Open
feat: implement Document AI functions & support custom IK dictionaries#1064breeze-wink wants to merge 9 commits into
breeze-wink wants to merge 9 commits into
Conversation
Add LOAD_FILE support for reading BLOB data from local locations and implement AI_SPLIT_DOCUMENT as a table function with text, markdown, sentence, word, max, and overlap handling. Register the parser, resolver, expression, and execution paths, and add a one-command runner for the official mysqltests. Tests: ./tools/deploy/run_document_ai_tests.sh --no-build
Member
Document AI & IK Custom Dictionary ScoreDocument AI Functions Score =========================== score: 100.00 / 100 load_file: 50 / 50 ai_split_document: 50 / 50 IK Custom Dictionary Score ========================== score: 100.00 / 100 ik_custom_dict: 100 / 100 FTS Large Benchmark ScoreFTS Large Benchmark Score ========================= score: 57.78 / 100 mean_improvement: 28.89% full_score_improvement: 50.00% build_improvement: 31.13% build_ik_all_sec: baseline=35.2836, current=24.454, improvement=30.69% build_ik_content_sec: baseline=28.3764, current=19.298, improvement=31.99% build_beng_en_sec: baseline=14.7578, current=10.225, improvement=30.71% tokenize_improvement: 7.72% tokenize_ik_avg_ms: baseline=0.76478, current=0.6992, improvement=8.58% tokenize_beng_avg_ms: baseline=0.42262, current=0.3936, improvement=6.87% query_improvement: 47.81% query_cn_avg_ms: baseline=16.6628, current=7.5294, improvement=54.81% query_beng_avg_ms: baseline=24.3042, current=10.562, improvement=56.54% query_mixed_avg_ms: baseline=17.5593, current=8.2204, improvement=53.18% query_limit_avg_ms: baseline=16.2334, current=11.8961, improvement=26.72% FTS Large Benchmark Report======================================== FTS Large Benchmark Report ======================================== timestamp: 2026-07-15 12:07:12 label: vldb-ci-29412330403-1 git_head: f73618b git_dirty: 0 rows: 20000 batch: 500 rounds: 3000 query_rounds: 200 samples: 3 warmup: 30 skip_load: 0 ---------------------------------------- select1_avg_ms: 0.2194 select1_stdev_ms: 0.0230 raw_load_sec: 1.459 raw_load_rows_per_sec: 13708.0 build_ik_all_sec: 24.454 build_ik_content_sec: 19.298 build_beng_en_sec: 10.225 build_total_sec: 53.989 ---------------------------------------- tokenize_ik_avg_ms: 0.6992 tokenize_ik_median_ms: 0.6990 tokenize_ik_stdev_ms: 0.0011 tokenize_beng_avg_ms: 0.3936 tokenize_beng_median_ms:0.3828 tokenize_beng_stdev_ms: 0.0181 ---------------------------------------- query_cn_hits: 8001 query_cn_avg_ms: 7.5294 query_cn_stdev_ms: 0.0047 query_beng_hits: 11000 query_beng_avg_ms: 10.5620 query_beng_stdev_ms: 0.0106 query_mixed_hits: 7332 query_mixed_avg_ms: 8.2204 query_mixed_stdev_ms: 0.0130 query_limit_hits: 20 query_limit_avg_ms: 11.8961 query_limit_stdev_ms: 0.0243 ======================================== |
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.
Task Description
2026数据库暑期学校测试:湘桂粉丝队
Release Note