| enum Metric / enum Pooling | Metric: L2, IP, COSINE; Pooling: MEAN, CLS, MAX, NONE. |
| fn onnx_embedder / onnx_mlp_embedder / onnx_pretrained / onnx_load | Construct or load an OnnxModel embedding graph. |
| OnnxModel | opset(), ir_version(), input_dim(), output_dim(), node_count(), node_op(int), pooling(Pooling), normalize(bool), transform_rule(string), check(), summary(), save(path), embed_text(s), embed_tokens(IntList), embed_vector(FloatList), emit(label), model_id(), cache_path(), cached(). |
| fn autotuner(nb_vectors: int, dim: int) -> AutoTuner | AutoTuner: metric(Metric), max_memory(string), max_query_ms(float), min_neighbors(int), direct_map(bool), memory_mappable(bool), force_pq(bool), policy_rule(string), plan() -> AutoPlan, candidate_keys() -> StrList. |
| AutoPlan / IndexMetrics | AutoPlan: index_key(), index_type(), metric(), nb_vectors(), dim(), nb_clusters(), train_size(), estimated_bytes(), training_memory_bytes(), max_memory_bytes(), compression_ratio(), recommended_params(), recommended_nprobe(), recommended_ef_search(), description(), emit(label); IndexMetrics: recall_1_at_k(), recall_k_at_k(), reconstruction_error(), size_bytes(), compression_ratio(), ms_per_query(), param_string(), emit(label). |
| fn faiss_index / auto_index / flat_index / hnsw_index / ivf_flat_index / ivf_pq_index / load_index | Construct or load a FaissIndex instance. |
| FaissIndex | dim(), ntotal(), is_trained(), index_key(), metric(), embedder(OnnxModel), set_params(s), nprobe(int), ef_search(int), ef_construction(int), filter_rule(s), rerank_rule(s), file_filter_rule(s), ignore_rule(s), respect_gitignore(bool), include_hidden(bool), filter_ext(s), filter_path_prefix(s), filter_path_contains(s), filter_exclude_path(s), filter_text_contains(s), filter_field(k,v), filter_size_range(min,max), filter_min_score(f), filter_max_distance(f), clear_rules(), train(DocumentList), add(id, vec), add_doc(Document), add_text(id, s), add_file(path), add_dir(path), add_paths(StrList), add_lazy_path(path), add_lazy_paths(StrList), lazy_query(q, k), refine_view(k), search(vec, k), search_text(q, k), range_search(vec, radius), reconstruct(id), autotune(gt, recall), evaluate(gt), save(path). |
| Document / SearchResults / SearchHit | Document: id(), text(), set_text(s), field(k,v), get(k), has(k), number(k,f), get_number(k), vector(FloatList), values(), path(), filename(), ext(), size(), is_dir(), in_git(); SearchResults: len(), at(int), query_text(), params(), ids(), distances(), scores(), emit(label); SearchHit: rank(), id(), distance(), score(), text(), document(), path(). |
| RestClient (fn rest_client(url: string)) | url(), status(), add_path(p), add_paths(StrList), query(q, k), requery(k), filter_ext(s), filter_path_prefix(s), filter_path_contains(s), filter_exclude_path(s), filter_text_contains(s), filter_field(k,v), filter_min_score(f), filter_max_distance(f), filter_size_range(min,max), filter_dsl(path), clear_filter(), from_cache(), newly_embedded(), cached_broad_hits(), shutdown(). |
| Vector math & Git helpers | l2_distance(a,b), inner_product(a,b), cosine_similarity(a,b), l2_normalize(v), synthetic_vector(dim, cluster, seed, noise), git_is_repo(p), git_is_worktree(p), git_worktree_branch(p), git_is_merged(p, target), git_is_clean(p), dir_size_mb(p). |