class

Xerp::Config

Inherits Reference < Object

Constructors

from_env(workspace_root : String | Nil = nil) : Config

Creates a Config from environment variables and defaults.

Source
new(workspace_root : String, db_path : String | Nil = nil)
Source

Instance methods

cache_dir

Returns the cache directory path.

Source
db_path

Path to the SQLite database file

Source
db_path=(db_path : String)

Path to the SQLite database file

Source
default_top_k
Source
default_top_k=(default_top_k : Int32)
Source
ensure_cache_dir!

Ensures the cache directory exists.

Source
expansion_top_k
Source
expansion_top_k=(expansion_top_k : Int32)
Source
max_block_lines

Block settings

Source
max_block_lines=(max_block_lines : Int32)

Block settings

Source
max_candidates

Query settings

Source
max_candidates=(max_candidates : Int32)

Query settings

Source
max_token_len
Source
max_token_len=(max_token_len : Int32)
Source
min_similarity
Source
min_similarity=(min_similarity : Float64)
Source
tab_width

Tokenization settings

Source
tab_width=(tab_width : Int32)

Tokenization settings

Source
window_overlap
Source
window_overlap=(window_overlap : Int32)
Source
window_size
Source
window_size=(window_size : Int32)
Source
workspace_root

Workspace root directory (project being indexed)

Source
workspace_root=(workspace_root : String)

Workspace root directory (project being indexed)

Source