MCPcopy Create free account

hub / github.com/MarchLiu/hypatia / functions

Functions397 in github.com/MarchLiu/hypatia

↓ 2 callersMethodtable_name
(&self)
src/model/query.rs:69
↓ 2 callersMethodunregister
Unregister a shelf by name.
src/storage/shelf_registry.rs:41
↓ 2 callersMethodupdate_knowledge
(&self, name: &str, content: &Content)
src/storage/duckdb_store.rs:129
↓ 2 callersMethodvector_search_statements
Search statement entries by vector similarity (cosine distance). Returns (triple, content_json, distance) tuples sorted by similarity.
src/storage/duckdb_store.rs:414
↓ 1 callersMethodapi_key
(&self)
src/embedding/provider.rs:342
↓ 1 callersFunctionast_to_value
Convert an AST node back to a JSON value (for $quote).
src/engine/evaluator.rs:283
↓ 1 callersMethodbackfill_vectors
Generate embedding vectors for all entries that don't have one yet. Idempotent: entries that already have vectors are skipped.
src/lab.rs:241
↓ 1 callersFunctionbuild_provider
Build the appropriate provider from config.
src/embedding/provider.rs:487
↓ 1 callersMethodclear_knowledge_embedding
Clear the embedding vector for a knowledge entry.
src/storage/duckdb_store.rs:357
↓ 1 callersFunctioncompute_f1
Compute token-level F1 between predicted text and gold answer.
scripts/locomo_eval.py:79
↓ 1 callersFunctioncompute_ndcg_at_k
NDCG@k for binary relevance.
scripts/longmemeval_eval.py:79
↓ 1 callersFunctioncompute_recall_at_k
Whether any expected item appears in top-k retrieved items.
scripts/longmemeval_eval.py:71
↓ 1 callersFunctioncontains_chinese
Check whether the text contains any CJK Unified Ideographs (U+4E00..U+9FFF).
src/text.rs:36
↓ 1 callersFunctioncopy_dir_recursive
Recursively copy a directory tree.
src/storage/shelf_manager.rs:325
↓ 1 callersFunctioncopy_dir_recursive
(src: &Path, dest: &Path)
src/embedding/config.rs:468
↓ 1 callersFunctioncsv_escape
Escape a field for CSV: wrap in quotes if it contains comma, quote, or newline.
src/model/statement.rs:56
↓ 1 callersFunctioncsv_split
Split a CSV line respecting quoted fields.
src/model/statement.rs:65
↓ 1 callersFunctiondefault_shelf_dir
()
tests/longmemeval.rs:108
↓ 1 callersFunctiondefault_shelf_dir
()
tests/locomo.rs:112
↓ 1 callersMethoddimensions
Effective dimensions for the active provider.
src/embedding/config.rs:551
↓ 1 callersFunctiondirs_home
()
src/storage/shelf_manager.rs:317
↓ 1 callersFunctiondirs_home
()
src/storage/shelf_registry.rs:68
↓ 1 callersFunctiondirs_home
()
src/embedding/embedder.rs:16
↓ 1 callersFunctiondownload
(variant: str, output_dir: Path)
scripts/longmemeval_download.py:31
↓ 1 callersMethodensure_default
Ensure the default shelf is registered and connected.
src/storage/shelf_manager.rs:301
↓ 1 callersMethodensure_loaded
(&self)
src/embedding/provider.rs:95
↓ 1 callersFunctionevaluate_retrieval
Compute retrieval metrics grouped by ability and question type.
scripts/longmemeval_eval.py:92
↓ 1 callersFunctionexecute_command
(lab: &mut Lab, cmd: Commands)
src/cli/commands.rs:210
↓ 1 callersMethodexecute_khop
( &self, _subject: &str, _predicate: Option<&str>, _depth: i64
src/engine/evaluator.rs:352
↓ 1 callersFunctionexecute_model_command
(cmd: ModelCommands)
src/cli/commands.rs:477
↓ 1 callersMethodexecute_search
(&self, query: &str, opts: &SearchOpts)
src/storage/shelf_manager.rs:37
↓ 1 callersFunctionextract_embedding
Extract embedding from model output. `needs_pooling` is true when using token_embeddings (index 0), false for sentence_embedding (index 1). `pooling`
src/embedding/provider.rs:231
↓ 1 callersFunctionextract_sessions
(conv_data: &ConversationData)
tests/locomo.rs:81
↓ 1 callersFunctionfind_latest_snapshot
Find the best snapshot directory in HF cache. Tries snapshots in mtime order (newest first), but only returns one that actually contains usable model
src/embedding/config.rs:250
↓ 1 callersMethodgenerate
(&mut self)
tests/bench_data.rs:183
↓ 1 callersFunctiongenerate_answers
Generate answers using an LLM with retrieved context.
scripts/longmemeval_eval.py:209
↓ 1 callersMethodgenerate_knowledge
(&mut self)
tests/bench_data.rs:268
↓ 1 callersMethodgenerate_needles
(&mut self)
tests/bench_data.rs:232
↓ 1 callersMethodgenerate_queries
(&mut self)
tests/bench_data.rs:321
↓ 1 callersMethodgenerate_statements
(&mut self)
tests/bench_data.rs:292
↓ 1 callersMethodget_archive_path
Get the absolute path for an archive file by its relative path.
src/lab.rs:217
↓ 1 callersFunctionget_judge_prompt
(question_type: str, question: str, answer: str, hypothesis: str)
scripts/longmemeval_eval.py:324
↓ 1 callersMethodhandle_dot_command
(&mut self, input: &str)
src/cli/repl.rs:58
↓ 1 callersMethodhandle_jse
(&mut self, input: &str)
src/cli/repl.rs:126
↓ 1 callersMethodinit_schema
(&self, dimensions: usize)
src/storage/duckdb_store.rs:84
↓ 1 callersMethodinit_schema
(&self)
src/storage/sqlite_store.rs:102
↓ 1 callersFunctionis_duplicate_column_error
(e: &rusqlite::Error)
src/storage/sqlite_store.rs:228
↓ 1 callersFunctionjudge_single
Get LLM judge score for a single QA pair.
scripts/locomo_eval.py:113
↓ 1 callersFunctionknowledge_to_row
(k: &crate::model::Knowledge)
src/storage/shelf_manager.rs:117
↓ 1 callersMethodknowledge_with_embeddings
Get all knowledge entries that have embeddings. Returns (name, content_json) pairs for backfill skip detection.
src/storage/duckdb_store.rs:448
↓ 1 callersFunctionl2_normalize
L2 normalize a vector.
src/embedding/provider.rs:310
↓ 1 callersMethodlist
List all registered shelves as (name, path) pairs.
src/storage/shelf_registry.rs:46
↓ 1 callersMethodlist_archives
List all archive files in the shelf's archives/ directory (relative paths).
src/lab.rs:224
↓ 1 callersFunctionlist_archives_recursive
(base: &Path, dir: &Path, results: &mut Vec<String>)
src/lab.rs:301
↓ 1 callersFunctionlist_local_models
List all models in ~/.hypatia/models/. Returns (name, path) pairs, e.g. ("BAAI/bge-m3", "~/.hypatia/models/BAAI/bge-m3").
src/embedding/config.rs:288
↓ 1 callersFunctionload_onnx_model
Load ONNX model and tokenizer from files.
src/embedding/provider.rs:165
↓ 1 callersMethodlocal_files_exist
Check if the local model files exist.
src/embedding/config.rs:559
↓ 1 callersFunctionmain
()
scripts/locomo_eval.py:308
↓ 1 callersFunctionmain
()
scripts/longmemeval_download.py:64
↓ 1 callersFunctionmain
()
scripts/longmemeval_eval.py:437
↓ 1 callersMethodparse
Parse a JSON value into an AstNode.
src/engine/parser.rs:21
↓ 1 callersFunctionprint_qa_report
(judge_results: dict)
scripts/longmemeval_eval.py:395
↓ 1 callersFunctionprint_report
Print formatted report.
scripts/locomo_eval.py:215
↓ 1 callersFunctionprint_retrieval_report
(results: list[dict], metrics: dict)
scripts/longmemeval_eval.py:131
↓ 1 callersMethodquery_knowledge
( &self, sql: &str, params: Vec<serde_json::Value>, )
src/storage/duckdb_store.rs:161
↓ 1 callersMethodquery_statements
( &self, sql: &str, params: Vec<serde_json::Value>, )
src/storage/duckdb_store.rs:289
↓ 1 callersMethodrandom_sentence
(&mut self)
tests/bench_data.rs:206
↓ 1 callersMethodrandom_tags
(&mut self)
tests/bench_data.rs:201
↓ 1 callersMethodrequest_with_retry
Send an embedding request with timeout and retry.
src/embedding/provider.rs:352
↓ 1 callersFunctionresolve_field
Resolve a field name to its SQL column reference.
src/engine/operators.rs:408
↓ 1 callersFunctionresolve_field_like
Resolve a field name for LIKE operations (requires VARCHAR). Timestamp columns are CAST to VARCHAR since DuckDB's LIKE doesn't accept TIMESTAMP.
src/engine/operators.rs:421
↓ 1 callersMethodrestore_registered
Restore all shelves from the registry (except "default", already connected).
src/storage/shelf_manager.rs:180
↓ 1 callersFunctionrun
()
src/cli/commands.rs:197
↓ 1 callersFunctionrun_judge
Run LLM-as-judge evaluation.
scripts/longmemeval_eval.py:343
↓ 1 callersFunctionrun_llm_judge
Run LLM judge on all results.
scripts/locomo_eval.py:163
↓ 1 callersFunctionrun_onnx_inference
Run ONNX model inference on a single text input.
src/embedding/provider.rs:181
↓ 1 callersFunctionsanitize_fts_query
Sanitize a query string for SQLite FTS5 by removing special characters that cause parse errors. Replaces them with spaces and collapses whitespace.
src/storage/sqlite_store.rs:237
↓ 1 callersMethodsearch
(&self, shelf: &str, query: &str, opts: SearchOpts)
src/lab.rs:121
↓ 1 callersMethodsearch
(&self, query: &str, opts: &SearchOpts)
src/service/search.rs:14
↓ 1 callersMethodsegment
(&self, text: &str)
src/text.rs:26
↓ 1 callersFunctionsetup_model_files
(shelf_path: &std::path::Path)
tests/longmemeval.rs:117
↓ 1 callersFunctionsetup_model_files
(shelf_path: &std::path::Path)
tests/locomo.rs:121
↓ 1 callersMethodsimilar
( &self, shelf: &str, query: &str, target: &str, limit: i64, )
src/lab.rs:130
↓ 1 callersFunctionsimple_stem
Approximate Porter stemming for English words.
scripts/locomo_eval.py:34
↓ 1 callersMethodstatements_without_embeddings
Get all statement entries that do NOT have embeddings. Returns (triple, content_json) pairs for backfill.
src/storage/duckdb_store.rs:492
↓ 1 callersMethodstore_archive
Store a file in the shelf's archives/ directory. `dest_relative` is the target path relative to archives/ (e.g., "euclid/fig1.png"). Returns the absol
src/lab.rs:204
↓ 1 callersMethodupdate
(&mut self, name: &str, content: Content)
src/service/knowledge.rs:52
↓ 1 callersMethodupdate_statement
( &self, key: &StatementKey, content: &Content, tr_start: Option<NaiveDateTime
src/storage/duckdb_store.rs:247
↓ 1 callersFunctionwalk
Recursive fallback: any .onnx file (excluding .onnx.data external data files)
src/embedding/config.rs:205
Functionalias_knowledge_columns_handles_combined
()
src/engine/evaluator.rs:578
Functionalias_knowledge_columns_preserves_name
()
src/engine/evaluator.rs:571
Functionalias_knowledge_columns_replaces_content
()
src/engine/evaluator.rs:557
Functionalias_knowledge_columns_replaces_created_at
()
src/engine/evaluator.rs:564
Functionand_operator
()
src/engine/operators.rs:482
Functionbackward_compat_no_synonyms
()
src/model/content.rs:177
Functionbm25_weights_key_over_data
()
src/storage/sqlite_store.rs:395
Methodbuild_fts_doc
(content: &Content, name: &str)
src/service/knowledge.rs:14
Methodbuild_fts_doc
(content: &Content, csv_key: &str)
src/service/statement.rs:16
Functionbuild_key_match_knowledge
()
src/engine/evaluator.rs:484
Functionbuild_key_match_statement
()
src/engine/evaluator.rs:494
← previousnext →101–200 of 397, ranked by callers