I

indexion-segment

by @trkbt10v
4.4(120)

この Skill は、ウィンドウ、TF-IDF、句読点、またはハイブリッド戦略を用いて、テキストを文脈的に意味のあるチャンクにインテリジェントに分割します。主に RAG(検索拡張生成)や埋め込みパイプライン用のデータ準備に利用され、テキストコンテンツが効果的に整理されることで、AI モデルが長文ドキュメントを理解し処理する能力を向上させます。

text-segmentationragllm-optimizationdata-preparationnlpGitHub
インストール方法
npx skills add https://github.com/trkbt10/indexion-skills --skill indexion-segment
compare_arrows

Before / After 効果比較

1
使用前

この Skill がない場合、ユーザーは RAG や埋め込みモデルの入力要件に合わせて長文テキストを手動または単純なスクリプトで分割する必要がありました。このプロセスは時間がかかるだけでなく、分割されたコンテキストの品質を保証することが難しく、AI モデルが複雑なドキュメントを正確に理解できず、最終的な生成結果に影響を与えていました。

使用後

この Skill は、テキストを文脈的に意味のあるチャンクに自動的かつインテリジェントに分割し、データ前処理にかかる時間と労力を大幅に削減します。テキストブロックの品質を最適化することで、この Skill は RAG システムの検索精度と AI モデルの長文ドキュメント理解能力を向上させ、アプリケーション全体のパフォーマンスを高めます。

SKILL.md

indexion segment

Split text into contextual segments using divergence-based, TF-IDF, or punctuation strategies.

When to Use

  • User needs to chunk text for RAG or embedding pipelines
  • User wants to split a document into meaningful sections
  • User asks to segment text for processing
  • Preparing text for similarity analysis at sub-document level

Usage

# Default window divergence strategy
indexion segment <input-file> <output-dir>

# TF-IDF based segmentation
indexion segment --strategy=tfidf <input-file> <output-dir>

# Punctuation-based segmentation
indexion segment --strategy=punctuation <input-file> <output-dir>

# Custom segment sizes
indexion segment --min-size=200 --max-size=3000 --target-size=800 document.txt output/

# Custom divergence threshold
indexion segment --threshold=0.5 document.txt output/

# Adaptive threshold mode (default)
indexion segment --adaptive document.txt output/

# Hybrid NCD+TF-IDF mode
indexion segment --hybrid --ncd-weight=0.6 --tfidf-weight=0.4 document.txt output/

# Custom window size
indexion segment --window-size=5 document.txt output/

# Custom output prefix
indexion segment --prefix=chunk document.txt output/

Options

OptionDefaultDescription
--strategy=NAMEwindowStrategy: window, tfidf, punctuation
--min-size=INT100Minimum segment characters
--max-size=INT2000Maximum segment characters
--target-size=INT500Target segment characters
--threshold=FLOAT0.42Divergence threshold
--window-size=INT3Window size
--adaptivetrueAdaptive threshold mode
--hybridfalseNCD+TF-IDF hybrid mode
--ncd-weight=FLOAT0.5NCD weight in hybrid mode
--tfidf-weight=FLOAT0.5TF-IDF weight in hybrid mode
--prefix=NAMEsegmentOutput file prefix

Strategies

StrategyDescription
window (default)Sliding window divergence detection
tfidfTF-IDF based topic change detection
punctuationPunctuation/sentence boundary based

Workflow

  1. Run indexion segment <input-file> <output-dir> to split text with defaults
  2. Adjust --threshold and --target-size to tune segmentation granularity
  3. Use --hybrid mode for better accuracy on mixed-content documents

ユーザーレビュー (0)

レビューを書く

効果
使いやすさ
ドキュメント
互換性

レビューなし

統計データ

インストール数4.9K
評価4.4 / 5.0
バージョン
更新日2026年6月30日
比較事例1 件

ユーザー評価

4.4(120)
5
37%
4
43%
3
13%
2
5%
1
2%

この Skill を評価

0.0

対応プラットフォーム

🤖claude-code

タイムライン

作成2026年6月9日
最終更新2026年6月30日
🎁 Agent 知識カード
アンケート