MCPcopy Create free account

hub / github.com/MarchLiu/hypatia / functions

Functions397 in github.com/MarchLiu/hypatia

↓ 86 callersMethodget
(&self, name: &str)
src/service/knowledge.rs:48
↓ 51 callersMethodget
(&self, name: &str)
src/storage/shelf_manager.rs:253
↓ 18 callersMethodcontains
Check whether a shelf name is registered.
src/storage/shelf_registry.rs:58
↓ 18 callersFunctionsetup
()
src/storage/duckdb_store.rs:610
↓ 16 callersMethodinsert_statement
( &self, key: &StatementKey, content: &Content, tr_start: Option<NaiveDateTime
src/storage/duckdb_store.rs:192
↓ 15 callersMethodupsert_doc
(&self, catalog: &str, key: &str, doc: &FtsDoc)
src/storage/sqlite_store.rs:146
↓ 13 callersMethodconnect
Connect to a shelf and persist the registration.
src/storage/shelf_manager.rs:197
↓ 13 callersFunctionevaluate_operator
Evaluate an operator AST node against its operands. Returns the SQL contribution of this operator.
src/engine/operators.rs:32
↓ 13 callersMethodexecute
Parse a JSE JSON expression and evaluate it against storage.
src/engine/evaluator.rs:13
↓ 13 callersMethodget_mut
(&mut self, name: &str)
src/storage/shelf_manager.rs:257
↓ 12 callersMethodinsert_knowledge
(&self, name: &str, content: &Content)
src/storage/duckdb_store.rs:93
↓ 12 callersMethodto_csv_key
Format as CSV row for FTS key / triple column (handles commas and quotes).
src/model/statement.rs:22
↓ 12 callersMethodwith_tags
(mut self, tags: Vec<String>)
src/model/content.rs:71
↓ 11 callersMethodregister
Register a shelf name with its filesystem path. Overwrites if name already exists.
src/storage/shelf_registry.rs:36
↓ 11 callersMethodto_json_string
(&self)
src/model/content.rs:110
↓ 10 callersFunctionformat_pct
(numerator: int, denominator: int)
scripts/longmemeval_eval.py:125
↓ 9 callersMethodcreate
(&mut self, name: &str, content: Content)
src/service/knowledge.rs:25
↓ 9 callersMethodembed
(&self, text: &str)
src/embedding/provider.rs:140
↓ 9 callersFunctionexpect_literal
Extract a literal value from an AST node.
src/engine/operators.rs:399
↓ 9 callersFunctiontest_doc
(key: &str, data: &str, tags: &str)
src/storage/sqlite_store.rs:279
↓ 8 callersMethodadd_condition
(&mut self, fragment: String, params: Vec<serde_json::Value>)
src/engine/sql_builder.rs:23
↓ 8 callersMethodexecute_similar
( &self, _query_text: &str, _opts: &SearchOpts, _target: Query
src/engine/evaluator.rs:343
↓ 8 callersMethodsearch
(&self, query: &str, opts: &SearchOpts)
src/storage/sqlite_store.rs:188
↓ 8 callersMethodupsert_knowledge_embedding
Store an embedding vector for a knowledge entry.
src/storage/duckdb_store.rs:331
↓ 7 callersFunctionalias_knowledge_columns
Qualify knowledge column references for LEFT JOIN context. Replaces bare `content` in json_extract_string calls and `created_at` in CAST expressions w
src/engine/evaluator.rs:276
↓ 7 callersFunctionbuild_key_match_condition
Build a SQL condition that matches keys from FTS results against the target table. For Knowledge: `name IN (?, ?, ...)` For Statement: `triple IN (?,
src/engine/evaluator.rs:263
↓ 7 callersMethodexecute_search
(&self, _query: &str, _opts: &SearchOpts)
src/engine/evaluator.rs:339
↓ 7 callersMethodpick
(&mut self, slice: &'a [T])
tests/bench_data.rs:190
↓ 7 callersFunctionsegment_for_fts
Segment text for FTS indexing or querying. For text without Chinese characters, returns the input unchanged. For mixed Chinese/English text, Chinese
src/text.rs:45
↓ 7 callersFunctionsetup
()
src/storage/sqlite_store.rs:272
↓ 6 callersFunctioncomparison_op
Handle comparison operators: $eq, $ne, $gt, $lt, $gte, $lte
src/engine/operators.rs:363
↓ 6 callersFunctioncompute_recall
(top_keys: &[String], expected: &[String], k: usize)
tests/locomo.rs:210
↓ 6 callersFunctioncompute_session_recall
(top_sessions: &[String], expected_sessions: &[String], k: usize)
tests/longmemeval.rs:216
↓ 6 callersMethodembedding_text
Build the text used for embedding vector generation. Combines tags, name, and data into a single string for semantic search.
src/model/content.rs:142
↓ 6 callersFunctionfind_onnx_file
Find the ONNX model file in a directory, preferring specific names. Searches top-level first, then standard subdirectories (onnx/, ONNX/, model/), the
src/embedding/config.rs:179
↓ 6 callersMethodget_knowledge
(&self, name: &str)
src/storage/duckdb_store.rs:104
↓ 6 callersMethodquery_khop
Execute a k-hop forward graph traversal using a recursive CTE. Starting from `subject`, follows `subject → object` edges up to `depth` hops. If `predi
src/storage/duckdb_store.rs:518
↓ 6 callersFunctionresolve_model
Resolve a model reference to concrete file paths. Resolution order: 1. Absolute path → use directly as model directory 2. HF name like "BAAI/bge-m3"
src/embedding/config.rs:108
↓ 6 callersFunctionshelf_dir
()
src/embedding/embedder.rs:12
↓ 6 callersMethodwith_synonyms
(mut self, synonyms: Option<Synonyms>)
src/model/content.rs:81
↓ 5 callersMethodarchives_path
Get the absolute path to a shelf's archives directory.
src/storage/shelf_manager.rs:294
↓ 5 callersMethodbuild
Build the final SQL and parameter list. Uses CAST for timestamp columns so they're read as strings.
src/engine/sql_builder.rs:38
↓ 5 callersFunctiondirs_home
()
src/embedding/config.rs:460
↓ 5 callersFunctionfind_tokenizer_file
Find tokenizer.json in a directory, checking subdirectories.
src/embedding/config.rs:228
↓ 5 callersMethodget_statement
(&self, key: &StatementKey)
src/storage/duckdb_store.rs:212
↓ 5 callersFunctionmodel_available
()
src/embedding/embedder.rs:23
↓ 5 callersFunctionparse_timestamp
Parse a timestamp string from DuckDB into NaiveDateTime.
src/storage/duckdb_store.rs:63
↓ 5 callersMethodsave
Save registry to a JSON file (pretty-printed).
src/storage/shelf_registry.rs:26
↓ 5 callersMethodupsert_statement_embedding
Store an embedding vector for a statement entry.
src/storage/duckdb_store.rs:344
↓ 4 callersMethodfts_fields
Build decomposed fields for multi-column FTS indexing.
src/model/content.rs:119
↓ 4 callersFunctionis_model_dir
Check if a directory looks like a model directory (has ONNX or tokenizer files).
src/embedding/config.rs:358
↓ 4 callersMethodlist
List all registered shelves with their paths. Returns (name, path, is_connected) tuples.
src/storage/shelf_manager.rs:263
↓ 4 callersMethodmaybe_embed
Try to embed, returning Ok(None) if unavailable.
src/embedding/provider.rs:28
↓ 4 callersFunctionquery_opts_to_search_opts
Convert QueryOpts (from the parent $knowledge/$statement) to SearchOpts for FTS execution.
src/engine/evaluator.rs:251
↓ 4 callersFunctionvector_to_sql_literal
(v: &[f32])
src/storage/duckdb_store.rs:593
↓ 4 callersMethodwith_scopes
(mut self, scopes: Vec<String>)
src/model/content.rs:95
↓ 3 callersFunctioncheck_subcommand
(cmd: &clap::Command)
src/cli/commands.rs:582
↓ 3 callersMethodconnect_internal
Internal connect logic without registry persistence.
src/storage/shelf_manager.rs:205
↓ 3 callersMethoddelete_doc
(&self, catalog: &str, key: &str)
src/storage/sqlite_store.rs:178
↓ 3 callersMethoddelete_knowledge
(&self, name: &str)
src/storage/duckdb_store.rs:147
↓ 3 callersMethoddelete_statement
(&self, key: &StatementKey)
src/storage/duckdb_store.rs:271
↓ 3 callersFunctionexpect_symbol
Extract a symbol name from an AST node.
src/engine/operators.rs:388
↓ 3 callersMethodexport
(&self, name: &str, dest: &Path)
src/storage/shelf_manager.rs:271
↓ 3 callersMethodpick_n
(&mut self, slice: &'a [T], n: usize)
tests/bench_data.rs:195
↓ 3 callersFunctionprint_result
(result: &QueryResult)
src/cli/commands.rs:550
↓ 3 callersMethodquery
(&mut self, shelf_name: &str, jse: &serde_json::Value)
src/lab.rs:47
↓ 3 callersFunctionresolve_model_dir
Within a resolved model directory, find the ONNX model and tokenizer files.
src/embedding/config.rs:150
↓ 3 callersMethodrun
(&mut self)
src/cli/repl.rs:16
↓ 3 callersFunctionsanitize_fts_query
Remove characters that FTS5 would interpret as query operators.
tests/bench_data.rs:136
↓ 3 callersMethodvector_search_knowledge
Search knowledge entries by vector similarity (cosine distance). Returns (name, content_json, distance) tuples sorted by similarity.
src/storage/duckdb_store.rs:380
↓ 3 callersMethodwith_figures
(mut self, figures: Vec<String>)
src/model/content.rs:86
↓ 3 callersMethodwith_format
(mut self, format: Format)
src/model/content.rs:76
↓ 2 callersFunctionast_to_value
Convert an AST node back to a JSON value (for $quote).
src/engine/operators.rs:435
↓ 2 callersFunctioncanonical_question_type
(qtype: &str)
tests/longmemeval.rs:101
↓ 2 callersMethodconnect_shelf
(&mut self, path: &Path, name: Option<&str>)
src/lab.rs:29
↓ 2 callersFunctioncosine_similarity
(a: &[f32], b: &[f32])
src/embedding/embedder.rs:108
↓ 2 callersMethodcreate_knowledge
(&mut self, shelf: &str, name: &str, content: Content)
src/lab.rs:56
↓ 2 callersMethodcreate_statement
( &mut self, shelf: &str, key: &StatementKey, content: Content, tr_sta
src/lab.rs:89
↓ 2 callersMethoddelete
(&mut self, name: &str)
src/service/knowledge.rs:72
↓ 2 callersMethoddisconnect
Disconnect a shelf and remove from the persistent registry.
src/storage/shelf_manager.rs:242
↓ 2 callersMethoddisconnect_shelf
(&mut self, name: &str)
src/lab.rs:33
↓ 2 callersMethodexecute_query
( &self, _target: QueryTarget, sql: &str, _params: Vec<serde_j
src/engine/evaluator.rs:328
↓ 2 callersMethodexport_shelf
(&self, name: &str, dest: &Path)
src/lab.rs:41
↓ 2 callersFunctionextract_query_opts
(metadata: &serde_json::Map<String, serde_json::Value>)
src/engine/evaluator.rs:236
↓ 2 callersFunctionextract_session_id_from_key
(key: &str)
tests/longmemeval.rs:199
↓ 2 callersMethodis_available
(&self)
src/embedding/provider.rs:156
↓ 2 callersMethodkey_column
Primary key column name for this target, used for FTS/vector key matching.
src/model/query.rs:77
↓ 2 callersMethodknowledge_without_embeddings
Get all knowledge entries that do NOT have embeddings. Returns (name, content_json) pairs for backfill.
src/storage/duckdb_store.rs:470
↓ 2 callersMethodlist_shelves
(&self)
src/lab.rs:37
↓ 2 callersFunctionload_results
(path: str)
scripts/longmemeval_eval.py:58
↓ 2 callersFunctionmake_provider
()
src/embedding/embedder.rs:28
↓ 2 callersFunctionmodel_info
Get model info: file listing and total size.
src/embedding/config.rs:406
↓ 2 callersFunctionnormalize_tokens
Tokenize and stem text for F1 comparison.
scripts/locomo_eval.py:56
↓ 2 callersFunctionquestion_type_to_ability
(qtype: &str)
tests/longmemeval.rs:85
↓ 2 callersMethodrandom_content
(&mut self, min_words: usize, max_words: usize)
tests/bench_data.rs:220
↓ 2 callersFunctionregister_model
Register a model by creating a symlink from ~/.hypatia/models/<name> to the source path.
src/embedding/config.rs:363
↓ 2 callersFunctionresolve_legacy_paths
Resolve paths from legacy model_path/tokenizer_path fields or shelf directory defaults.
src/embedding/config.rs:565
↓ 2 callersMethodset_limit
(&mut self, limit: i64)
src/engine/sql_builder.rs:28
↓ 2 callersMethodset_offset
(&mut self, offset: i64)
src/engine/sql_builder.rs:32
↓ 2 callersFunctionstatement_to_row
(s: &crate::model::Statement)
src/storage/shelf_manager.rs:131
next →1–100 of 397, ranked by callers