Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/automataIA/graphrag-rs
/ functions
Functions
4,223 in github.com/automataIA/graphrag-rs
⨍
Functions
4,223
◇
Types & classes
1,087
↓ 9 callers
Method
build_graph
(&mut self)
graphrag-core/src/graphrag/build.rs:28
↓ 9 callers
Method
cache_statistics
Get cache statistics
graphrag-core/src/caching/client.rs:173
↓ 9 callers
Method
detect_boundaries
Detect all semantic boundaries in text
graphrag-core/src/text/boundary_detection.rs:131
↓ 9 callers
Method
dynamic_weight
Calculate dynamic weight for a relationship based on query context (Phase 2.2) Combines multiple factors: - Base weight: relationship.confidence - Se
graphrag-core/src/core/mod.rs:1003
↓ 9 callers
Method
extract_keywords
Extract keywords using simple frequency analysis
graphrag-core/src/text/mod.rs:476
↓ 9 callers
Method
find_entity_by_name
Find entity by name (fuzzy matching)
graphrag-core/src/rograg/logic_form/executor.rs:634
↓ 9 callers
Method
generate_key
Generate a cache key for a prompt
graphrag-core/src/caching/cache_key.rs:139
↓ 9 callers
Method
get
Get value from cache Checks L1 cache first, then L2 (Redis), with automatic promotion. # Arguments `key` - Cache key # Returns Option with cached v
graphrag-server/src/distributed_cache.rs:206
↓ 9 callers
Method
get_chunk
Get a chunk by ID
graphrag-core/src/core/mod.rs:430
↓ 9 callers
Method
has_documents
Check if documents have been added
graphrag-core/src/graphrag/stats.rs:28
↓ 9 callers
Function
hash_embedding
Helper function: Replicates the hash-based embedding algorithm This is the same algorithm implemented in CandleEmbedder::embed()
graphrag-wasm/tests/real_pipeline_test.rs:246
↓ 9 callers
Function
load_config
Load GraphRAG configuration from file (supports JSON5, JSON, TOML)
graphrag-cli/src/config.rs:11
↓ 9 callers
Method
parse
(&self, content: &str)
graphrag-core/src/text/parsers/html.rs:147
↓ 9 callers
Method
publish_event
(&self, event: ChangeEvent)
graphrag-core/src/graph/incremental/store.rs:150
↓ 9 callers
Method
should_use_parallel
Determine if parallel processing should be used
graphrag-core/src/parallel/mod.rs:126
↓ 9 callers
Function
showError
(message)
examples/wasm-multi-doc-demo/app.js:455
↓ 9 callers
Method
validate_triple
( &self, source: &str, relation_type: &str, target: &str, source_text:
graphrag-core/src/entity/llm_relationship_extractor.rs:281
↓ 8 callers
Method
add_vector
Add a vector to the store Vectors are added to a pending queue and indexed when `build_index()` is called. # Arguments `id` - Unique identifier for
graphrag-core/src/vector/voy_store.rs:88
↓ 8 callers
Method
calculate_improvement_percentage
Calculate improvement percentage
graphrag-core/src/rograg/quality_metrics.rs:1409
↓ 8 callers
Function
check_webgpu_support
()
graphrag-wasm/src/lib.rs:81
↓ 8 callers
Method
clear
Clear all documents and reset the index
graphrag-wasm/src/lib.rs:282
↓ 8 callers
Method
count_paragraphs
Count paragraphs in text
graphrag-core/src/nlp/semantic_chunking.rs:523
↓ 8 callers
Method
counter
(&self, name: &str, value: u64, tags: Option<&[(&str, &str)]>)
graphrag-core/src/monitoring/metrics_collector.rs:147
↓ 8 callers
Method
create_snapshot
Create a snapshot of the current graph state Used for delta computation to calculate minimal diffs.
graphrag-core/src/incremental/mod.rs:693
↓ 8 callers
Method
create_snapshot
Create a snapshot from current graph state
graphrag-core/src/incremental/delta_computation.rs:663
↓ 8 callers
Function
create_test_graph
()
graphrag-core/src/retrieval/pagerank_retrieval.rs:684
↓ 8 callers
Function
create_test_node
(id: &str, props: Vec<(&str, &str)>)
graphrag-core/src/incremental/delta_computation.rs:741
↓ 8 callers
Function
create_test_ollama_config
()
graphrag-core/tests/triple_validation_tests.rs:7
↓ 8 callers
Method
error
Get style for error messages
graphrag-cli/src/theme.rs:101
↓ 8 callers
Method
find_causal_chains
Find all causal chains between cause and effect # Arguments `cause` - Starting entity ID `effect` - Target entity ID `max_depth` - Maximum chain len
graphrag-core/src/retrieval/causal_analysis.rs:225
↓ 8 callers
Method
generate_with_params
( &self, prompt: &str, params: OllamaGenerationParams, )
graphrag-core/src/ollama/mod.rs:309
↓ 8 callers
Method
get_entity_relationships
Get entity relationships
graphrag-core/src/core/mod.rs:786
↓ 8 callers
Method
is_capitalized
Check if a word is capitalized
graphrag-core/src/entity/mod.rs:634
↓ 8 callers
Method
is_initialized
Check if GraphRAG is initialized
graphrag-cli/src/handlers/graphrag.rs:60
↓ 8 callers
Method
len
Get the number of vectors in the store
graphrag-core/src/vector/voy_store.rs:207
↓ 8 callers
Method
register_function
Register a new function
graphrag-core/src/function_calling/mod.rs:100
↓ 8 callers
Method
search
(&self, query_vector: &[f32], k: usize)
graphrag-core/src/core/test_utils.rs:239
↓ 8 callers
Method
update_scrollbar
Update scrollbar state
graphrag-cli/src/ui/components/raw_results_viewer.rs:100
↓ 8 callers
Method
validate
(&self)
graphrag-core/src/config/validation.rs:50
↓ 8 callers
Method
with_causal_strength
Set causal strength for this relationship
graphrag-core/src/core/mod.rs:332
↓ 8 callers
Method
with_pagerank_config
Create new system with custom PageRank configuration
graphrag-core/src/retrieval/pagerank_retrieval.rs:77
↓ 8 callers
Method
with_temporal_range
Set temporal range for this relationship
graphrag-core/src/core/mod.rs:326
↓ 7 callers
Method
add_intent_pattern
Add an intent pattern
graphrag-core/src/rograg/intent_classifier.rs:477
↓ 7 callers
Method
border
Get style for borders (normal)
graphrag-cli/src/theme.rs:121
↓ 7 callers
Method
border_focused
Get style for borders (focused)
graphrag-cli/src/theme.rs:126
↓ 7 callers
Method
calculate_num_ctx
Calculate the required `num_ctx` for a document and its chunks Formula: ```text num_ctx = tokens(prompt_instructions) // ~100 fixed tokens + tokens
graphrag-core/src/text/contextual_enricher.rs:141
↓ 7 callers
Method
complete
(&self, prompt: &str)
graphrag-core/src/generation/async_mock_llm.rs:369
↓ 7 callers
Method
cosine_similarity
Calculate cosine similarity between two embedding vectors
graphrag-core/src/text/semantic_coherence.rs:358
↓ 7 callers
Function
create_philosophy_graph
Helper to create a test graph with philosophical entities and relationships
graphrag-core/tests/advanced_features_integration.rs:26
↓ 7 callers
Function
create_test_graph
Helper to create a test graph with relationships
graphrag-core/benches/advanced_features_benchmark.rs:28
↓ 7 callers
Function
create_test_response
()
graphrag-core/src/rograg/validator.rs:1010
↓ 7 callers
Method
default
()
graphrag-cli/src/theme.rs:40
↓ 7 callers
Method
delete
(&self, store_name: &str, key: &str)
graphrag-wasm/src/storage.rs:355
↓ 7 callers
Method
generate
(&self, prompt: &str)
graphrag-core/src/ollama/mod.rs:284
↓ 7 callers
Method
get
Get a value from the cache
graphrag-core/src/caching/persistent.rs:121
↓ 7 callers
Method
get_neighbors
Get neighbors of an entity
graphrag-core/src/core/mod.rs:476
↓ 7 callers
Method
get_statistics
Get processing statistics
graphrag-core/src/parallel/mod.rs:121
↓ 7 callers
Method
has
(&self, key: &str)
graphrag-wasm/src/storage.rs:545
↓ 7 callers
Method
hash
Compute the hash of this cache key based on key_hash and display_key
graphrag-core/src/caching/cache_key.rs:21
↓ 7 callers
Function
idb_request_to_promise
Helper function to convert IdbRequest to Promise
graphrag-wasm/src/storage.rs:31
↓ 7 callers
Function
parse_markdown
Parse a markdown string into ratatui `Line` values ready for rendering.
graphrag-cli/src/ui/markdown.rs:12
↓ 7 callers
Method
query
(&self, query: &str)
graphrag-core/src/api/rest.rs:154
↓ 7 callers
Method
update
(&mut self, content: Vec<String>)
graphrag-core/src/core/test_utils.rs:347
↓ 7 callers
Method
update
Update application state based on action
graphrag-cli/src/app.rs:340
↓ 7 callers
Method
workspace_path
Get workspace directory path
graphrag-core/src/persistence/workspace.rs:105
↓ 6 callers
Method
add_document
Add a document to the knowledge graph
graphrag-core/src/core/mod.rs:372
↓ 6 callers
Method
add_document_to_corpus
Update document frequencies with a new document (for corpus-level IDF)
graphrag-core/src/text/keyword_extraction.rs:139
↓ 6 callers
Method
add_edge
Add an edge to the layout
graphrag-wasm/src/components/force_layout.rs:165
↓ 6 callers
Method
add_rule
Add extraction rule
graphrag-core/src/nlp/custom_ner.rs:130
↓ 6 callers
Method
add_template
Add a response template
graphrag-core/src/rograg/streaming.rs:291
↓ 6 callers
Method
add_vector
( &mut self, id: String, vector: Vec<f32>, _metadata: VectorMetadata, )
graphrag-core/src/core/test_utils.rs:210
↓ 6 callers
Method
build_from_chunks
Build the hierarchical tree from text chunks
graphrag-core/src/summarization/mod.rs:289
↓ 6 callers
Method
calculate_scores
Calculate personalized PageRank scores with performance optimizations
graphrag-core/src/graph/pagerank.rs:186
↓ 6 callers
Method
chunk_and_enrich
Convenience method: chunk and enrich with auto-detected format
graphrag-core/src/text/mod.rs:225
↓ 6 callers
Method
clear
Clear all indexed data
graphrag-core/src/retrieval/bm25.rs:232
↓ 6 callers
Method
compute_delta
Compute delta between two snapshots
graphrag-core/src/incremental/delta_computation.rs:317
↓ 6 callers
Function
cosine_similarity
Cosine similarity implementation (Same as in graphrag-wasm/src/lib.rs)
examples/test_real_embeddings.rs:178
↓ 6 callers
Function
create_test_graph
()
graphrag-core/src/graph/traversal.rs:573
↓ 6 callers
Function
create_test_temporal_graph
()
graphrag-core/src/graph/temporal.rs:522
↓ 6 callers
Method
decompose
(&self, query: &str)
graphrag-core/src/rograg/decomposer.rs:373
↓ 6 callers
Method
ensure_initialized
Ensure system is initialized
graphrag-core/src/graphrag/mod.rs:76
↓ 6 callers
Method
extension
Get file extension for this format
graphrag-core/src/config/json5_loader.rs:131
↓ 6 callers
Method
extract
(&self, text: &str)
graphrag-core/src/core/entity_adapters.rs:64
↓ 6 callers
Function
fetch_tokenizer_json
Helper: Fetch tokenizer JSON from server
graphrag-wasm/examples/onnx_embeddings_demo.rs:29
↓ 6 callers
Method
generate_cache_key
Generate cache key for a request
graphrag-core/src/caching/client.rs:153
↓ 6 callers
Method
handle_action
(&mut self, action: &Action)
graphrag-cli/src/ui/components/status_bar.rs:66
↓ 6 callers
Method
has_graph
Check if graph has been built
graphrag-core/src/graphrag/stats.rs:37
↓ 6 callers
Method
hybrid_query
Advanced hybrid query with strategy selection and hierarchical integration
graphrag-core/src/retrieval/mod.rs:270
↓ 6 callers
Method
infer_entity_type
Infer entity type from name (placeholder implementation)
graphrag-core/src/corpus/entity_linker.rs:539
↓ 6 callers
Method
initialize
Initialize the GraphRAG system. When `auto_save.enabled = true` and a `base_dir` is configured, attempts to load an existing graph from the workspace
graphrag-core/src/graphrag/lifecycle.rs:64
↓ 6 callers
Method
neighbors
Get neighbors of a node
graphrag-core/src/graph/embeddings.rs:116
↓ 6 callers
Method
register_function_in_category
Register a function in a specific category
graphrag-core/src/function_calling/enhanced_registry.rs:61
↓ 6 callers
Method
render
(&mut self, f: &mut Frame, area: Rect)
graphrag-cli/src/ui/components/status_bar.rs:92
↓ 6 callers
Method
rewrite_query
Rewrite and expand a query # Arguments `query` - The original query string # Returns RewrittenQuery with expanded terms and detected query type
graphrag-core/src/query/intelligence.rs:92
↓ 6 callers
Method
score_chunk_coherence
Score the semantic coherence of a text chunk Returns a score between 0.0 (incoherent) and 1.0 (highly coherent). High coherence = high cosine similar
graphrag-core/src/text/semantic_coherence.rs:118
↓ 6 callers
Method
stats
Get storage statistics
graphrag-core/src/storage/mod.rs:83
↓ 6 callers
Method
update_snapshot
Update the last snapshot to current state Should be called after significant updates to enable delta computation.
graphrag-core/src/incremental/mod.rs:773
↓ 6 callers
Method
with_line_number
Create heading with line number
graphrag-core/src/text/document_structure.rs:45
↓ 6 callers
Method
with_temporal_type
Set temporal type for this relationship
graphrag-core/src/core/mod.rs:313
↓ 5 callers
Method
add_document
(&mut self, doc: Document)
examples/multi_document_pipeline.rs:396
← previous
next →
101–200 of 4,223, ranked by callers