Skip to content
trkbt10 avatar

Indexion Segment

Splits text into contextual chunks for RAG and embedding pipelines using window, TF-IDF, punctuation, or hybrid strategies.

CCM score
57 of 100
skills.sh installs
4.9K
GitHub stars
2
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers sliding-window divergence, TF-IDF topic-change detection, and punctuation-based sentence boundary segmentation
  • Includes --min-size, --max-size, and --target-size controls, plus --threshold and --adaptive for divergence tuning
  • Provides an --hybrid mode that blends NCD and TF-IDF scores using --ncd-weight and --tfidf-weight
  • Designed for preparing documents as sub-document segments before embedding or similarity analysis

Install

$ npx -y skills add trkbt10/indexion-skills --skill indexion-segment -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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/

Details

Repository
github.com/trkbt10/indexion-skills
Categories
AI Agents & LLM Apps, Data Science & Analytics
First seen
Jul 14, 2026

Questions

What does the indexion-segment skill do?

The indexion-segment skill splits text into contextual segments for RAG and embedding pipelines, using divergence-based, TF-IDF, or punctuation strategies. It can also extract sections from a document so each chunk stays meaningful for similarity analysis.

How do I install the indexion-segment skill?

Run npx -y skills add trkbt10/indexion-skills --skill indexion-segment -y in your project. Once installed, the agent can run indexion segment to split a text file into segments in an output directory.

What do I need before using indexion-segment?

The indexion binary must be installed and available in your PATH, using the install script from the indexion repository. The skill then calls indexion segment with an input file and an output directory.

Which segmentation strategy should I pick?

The default window strategy uses sliding window divergence detection, while tfidf detects topic changes and punctuation splits on sentence boundaries. For mixed-content documents, the skill suggests the hybrid mode with NCD and TF-IDF weights.

Where does indexion-segment stand in its category?

indexion-segment is listed in the AI Agents & LLM Apps category on Claude Marketplaces. It sits alongside other skills there such as microsoft-foundry and azure-ai, and it focuses on splitting text into chunks for retrieval pipelines.

More from trkbt10/indexion-skills

All 8

Similar to Indexion Segment

More AI Agents & LLM Apps