Overview of CocoIndex operation modules
mainCocoIndex includes several specialized operation modules:
- Text operations: Provides code language detection, regex-based
SeparatorSplitter, and syntax-awareRecursiveSplitter(using tree-sitter) that returns position-trackedChunkobjects. - Sentence Transformers: Provides local text embeddings using
sentence-transformerswith model caching, thread-safe GPU access, and optional normalization. - LiteLLM: Provides embeddings and audio transcription via a unified API for 100+ providers (e.g., OpenAI, Azure, Vertex AI, Bedrock, Cohere).
- Entity resolution: Deduplicates entity names using FAISS embedding similarity combined with a pluggable LLM pair-resolver, supporting
PINNEDandPREFERREDcanonical policies.