Indexer
Object Hierarchy:
Description:
public class Indexer :
VectorBase
Main indexing orchestrator.
Integrates Tree, Analysis, and VectorBuilder components to process files and folders for vector indexing. Implements incremental update
logic and folder-based indexing with recursion support.
The indexing pipeline processes files through three layers: 1. Tree: Extracts code structure using tree-sitter 2. Analysis: Generates one
-line descriptions using LLM 3. VectorBuilder: Converts to embeddings and stores in FAISS
Supports incremental indexing by checking file modification times and skipping unchanged files (unless force=true).
Usage Example
// Create indexer
var indexer = new OLLMvector.Indexing.Indexer(
analysis_client,
embed_client,
vector_db,
sql_db,
project_manager
);
// Index a file or folder
yield indexer.index_filebase(file_or_folder, recurse: true, force: false);
Content:
Creation methods:
Methods:
Signals:
Inherited Members:
All known members inherited from class OLLMvector.VectorBase
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref