Skip to content

feat(lark-doc): add synonym rewriting and bitable/wiki drill-down rules#531

Closed
arnold9672 wants to merge 1 commit into
larksuite:mainfrom
arnold9672:feat/lark-doc-search-improvements
Closed

feat(lark-doc): add synonym rewriting and bitable/wiki drill-down rules#531
arnold9672 wants to merge 1 commit into
larksuite:mainfrom
arnold9672:feat/lark-doc-search-improvements

Conversation

@arnold9672

@arnold9672 arnold9672 commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add synonym rewriting rule: enforce 1-2 rounds of synonym/near-synonym rewriting for topic-style queries before locking an answer, covering expected sources with alternate title phrasings
  • Add BITABLE/WIKI drill-down rule: inspect semantic fields (tags, summary, description) beyond just title when drilling into bitable records or wiki sub-nodes after docs +search hit

Test plan

  • Verify topic-style search queries (e.g. "XX 优秀案例") trigger synonym rewriting rounds
  • Verify BITABLE hits drill down into non-title fields via base +field-list
  • Verify WIKI hits inspect sub-node structure via wiki +node-list
  • No regression on existing search decision rules

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated search documentation with enhanced synonym rewriting rules for improved query accuracy and result convergence.
    • Enhanced BITABLE/WIKI search documentation with field-level semantic matching to locate records more effectively.

Add two search methodology rules to lark-doc-search.md:
- Synonym rewriting: enforce 1-2 rounds of synonym/near-synonym
  rewriting for topic-style queries before locking an answer
- BITABLE/WIKI drill-down: inspect semantic fields beyond title
  when drilling into bitable records or wiki sub-nodes

Driven by eval-search findings F-001 and F-002.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@CLAassistant

CLAassistant commented Apr 17, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@coderabbitai

coderabbitai Bot commented Apr 17, 2026

Copy link
Copy Markdown

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

Documentation update to search decision rules adding requirements for synonym rewriting convergence checks in concept-style queries and field-level introspection when searching BITABLE/WIKI nodes.

Changes

Cohort / File(s) Summary
Search Decision Rules Documentation
skills/lark-doc/references/lark-doc-search.md
Added synonym rewriting rule requiring 1–2 rewrite rounds with convergence validation for topic/concept queries; added BITABLE/WIKI node introspection rule to match on non-title semantic fields via field-list/node-list introspection instead of title-only filtering.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested labels

size/M, domain/ccm

Suggested reviewers

  • fangshuyu-768

Poem

🐰 Through synonym woods we hop and bound,
Each round converging to solid ground,
WIKI fields whisper their hidden tale,
Beyond mere titles, we will not fail!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately and concisely describes the two main features being added: synonym rewriting and BITABLE/WIKI drill-down rules for lark-doc search functionality.
Description check ✅ Passed The description covers all required template sections: Summary (motivations), Changes (main features), Test Plan (verification steps), and includes appropriate detail about the new rules and expected behavior.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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 domain/ccm PR touches the ccm domain size/M Single-domain feat or fix with limited business impact labels Apr 17, 2026
@arnold9672 arnold9672 closed this Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain/ccm PR touches the ccm domain size/M Single-domain feat or fix with limited business impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants