Skip to main content

gobby_code/index/
mod.rs

1pub mod api;
2#[cfg(test)]
3mod api_tests;
4pub mod chunker;
5pub mod hasher;
6pub mod import_resolution;
7pub mod indexer;
8pub mod languages;
9pub mod parser;
10pub mod security;
11pub mod semantic;
12pub mod walker;
13
14/// Maximum file size to index (10 MB).
15pub(crate) const MAX_FILE_SIZE: u64 = 10 * 1024 * 1024;
16
17/// Maximum size for a data-language (JSON/YAML) file to be AST-parsed (1 MiB).
18///
19/// Data languages emit one `property` symbol per key, so a large generated
20/// blob parses to tens of thousands of symbols that bloat the PostgreSQL hub,
21/// FalkorDB graph, and Qdrant vectors. Files above this size are indexed
22/// content-only (BM25 chunks, zero symbols) instead. Hand-authored configs
23/// (`Cargo.lock`, `package.json`, CI YAML) stay well under 1 MiB and keep their
24/// per-key symbols (gobby-cli #678).
25pub(crate) const MAX_DATA_LANGUAGE_AST_SIZE: u64 = 1024 * 1024;