Skip to main content

Crate colgrep

Crate colgrep 

Source
Expand description

colgrep: Semantic code search powered by ColBERT

This crate provides semantic code search using:

  • next-plaid - Multi-vector search (ColBERT/PLAID)
  • next-plaid-onnx - ONNX-based ColBERT encoding
  • tree-sitter - Multi-language code parsing

Re-exports§

pub use config::Config;
pub use config::DEFAULT_BATCH_SIZE;
pub use config::DEFAULT_MAX_RECURSION_DEPTH;
pub use config::DEFAULT_POOL_FACTOR;
pub use embed::build_embedding_text;
pub use index::paths::acquire_index_lock;
pub use index::paths::find_parent_index;
pub use index::paths::get_colgrep_data_dir;
pub use index::paths::get_index_dir_for_project;
pub use index::paths::get_vector_index_path;
pub use index::paths::ParentIndexInfo;
pub use index::paths::ProjectMetadata;
pub use index::state::IndexState;
pub use index::bre_to_ere;
pub use index::escape_literal_braces;
pub use index::index_exists;
pub use index::path_contains_ignored_dir;
pub use index::IndexBuilder;
pub use index::SearchResult;
pub use index::Searcher;
pub use index::UpdatePlan;
pub use index::UpdateStats;
pub use index::CONFIRMATION_THRESHOLD;
pub use model::ensure_model;
pub use model::DEFAULT_MODEL;
pub use onnx_runtime::ensure_onnx_runtime;
pub use onnx_runtime::is_cudnn_available;
pub use parser::build_call_graph;
pub use parser::detect_language;
pub use parser::extract_units;
pub use parser::is_text_format;
pub use parser::CodeUnit;
pub use parser::Language;
pub use parser::UnitType;
pub use install::install_claude_code;
pub use install::install_codex;
pub use install::install_opencode;
pub use install::uninstall_all;
pub use install::uninstall_claude_code;
pub use install::uninstall_codex;
pub use install::uninstall_opencode;
pub use signal::check_interrupted;
pub use signal::is_interrupted;
pub use signal::is_interrupted_outside_critical;
pub use signal::setup_signal_handler;
pub use signal::CriticalSectionGuard;

Modules§

config
User configuration persistence
embed
index
install
model
onnx_runtime
ONNX Runtime auto-setup
parser
Code parsing module with 5-layer analysis.
signal
Signal handling for graceful interruption during indexing
stderr
Utilities for suppressing stderr output.