cocoindex/examples/code_embedding at main · cocoindex-io/cocoindex
CocoIndex provides built-in support for codebase chunking using Tree-sitter to maintain syntax boundaries. This example demonstrates building a real-time code index by ingesting a codebase, performing chunking and embedding on each file, and storing the results in PostgreSQL with PGVector. The system enables semantic code search through SQL queries that reuse the embedding operations from the indexing pipeline.