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
↓ 4 callers
Method
get_combined_content
Combine all content into a single text block
graphrag-core/src/generation/mod.rs:526
↓ 4 callers
Method
get_compression
(&self)
graphrag-core/src/persistence/parquet.rs:1174
↓ 4 callers
Method
get_entities_metadata
Get entity metadata for entities in a community # Arguments `entity_names` - List of entity names # Returns Vec of EntityMetadata for the entities
graphrag-core/src/graph/leiden.rs:92
↓ 4 callers
Function
hash_embedding
Hash-based TF embedding implementation (Same as CandleEmbedder::embed() in graphrag-wasm/src/embedder.rs)
examples/test_real_embeddings.rs:125
↓ 4 callers
Function
hash_embedding
Generate hash-based TF embedding (same as graphrag-wasm)
examples/multi_document_pipeline.rs:442
↓ 4 callers
Method
heuristic_merge_decision
(&self, entity_group: &[Entity])
graphrag-core/src/entity/semantic_merging.rs:133
↓ 4 callers
Function
hideLoading
()
examples/wasm-multi-doc-demo/app.js:451
↓ 4 callers
Method
index_graph
Index a knowledge graph for retrieval
graphrag-core/src/retrieval/mod.rs:129
↓ 4 callers
Function
init
()
graphrag-wasm/src/lib.rs:73
↓ 4 callers
Method
is_available
(&self)
graphrag-core/src/core/traits.rs:1342
↓ 4 callers
Method
jaccard_similarity
Compute token-based Jaccard similarity
graphrag-core/src/entity/string_similarity_linker.rs:325
↓ 4 callers
Method
load_graph
Load knowledge graph from Parquet files
graphrag-core/src/persistence/parquet.rs:166
↓ 4 callers
Method
magnitude
(&self)
graphrag-wasm/src/components/force_layout.rs:26
↓ 4 callers
Method
match_query_to_concepts
Match a query to ranked concepts Returns concepts sorted by relevance to the query, combining: - Original ranking score - Query-concept match score
graphrag-core/src/lightrag/query_concepts.rs:135
↓ 4 callers
Method
max_capacity
Set the maximum capacity (number of entries)
graphrag-core/src/caching/cache_config.rs:240
↓ 4 callers
Method
node_count
Get the number of nodes in the graph
graphrag-core/src/graph/pagerank.rs:504
↓ 4 callers
Method
node_degree
Get node degree in snapshot
graphrag-core/src/graph/temporal.rs:184
↓ 4 callers
Method
normalize_string
Normalize string for comparison
graphrag-core/src/entity/string_similarity_linker.rs:168
↓ 4 callers
Method
record_hit
Record a cache hit with time saved
graphrag-core/src/caching/stats.rs:53
↓ 4 callers
Method
record_query
Record query metric # Arguments `query_type` - Type of query (e.g., "semantic", "keyword", "hybrid") `latency_ms` - Query latency in milliseconds
graphrag-server/src/observability.rs:159
↓ 4 callers
Method
remove
Remove a value from the cache
graphrag-core/src/caching/persistent.rs:200
↓ 4 callers
Method
retrieve_at_level
Retrieve relevant communities at a specific hierarchical level # Arguments `query` - User query string `graph` - The original graph `level` - Hierarc
graphrag-core/src/graph/leiden.rs:359
↓ 4 callers
Method
save_graph
Save knowledge graph to Parquet files
graphrag-core/src/persistence/parquet.rs:143
↓ 4 callers
Method
search
Perform iterative deepening search Returns search results with relevant chunks and search statistics
graphrag-core/src/lightrag/iterative_deepening.rs:112
↓ 4 callers
Method
search
Search for documents matching the query
graphrag-core/src/retrieval/bm25.rs:115
↓ 4 callers
Method
serialize
Serialize the index for storage (returns JSON)
graphrag-wasm/src/voy_bindings.rs:281
↓ 4 callers
Method
set_from_json
Set configuration from JSON
graphrag-server/src/config_handler.rs:32
↓ 4 callers
Method
size
Get the number of indexed embeddings (if available)
graphrag-wasm/src/voy_bindings.rs:293
↓ 4 callers
Method
stats
Get collection statistics
graphrag-server/src/qdrant_store.rs:326
↓ 4 callers
Method
sub
(&self, other: &Vec2)
graphrag-wasm/src/components/force_layout.rs:49
↓ 4 callers
Method
suggest_level
Suggest hierarchical level for query
graphrag-core/src/query/adaptive_routing.rs:216
↓ 4 callers
Method
summarize
Generate a summary of the given text # Arguments `text` - The input text to summarize `max_length` - Maximum character length of the summary # Retur
graphrag-core/src/text/extractive_summarizer.rs:30
↓ 4 callers
Method
to_embedding_config
Convert TOML config to EmbeddingConfig
graphrag-core/src/embeddings/config.rs:86
↓ 4 callers
Method
to_graphrag_config
Convert to the existing Config format for compatibility
graphrag-core/src/config/setconfig.rs:1819
↓ 4 callers
Method
validate_entity
Validate imported data
graphrag-core/src/pipeline/data_import.rs:861
↓ 4 callers
Method
weight_results
Apply strategy weight to results
graphrag-core/src/retrieval/adaptive.rs:216
↓ 4 callers
Method
with_embedding
Set embedding vector for this relationship (Phase 2.2)
graphrag-core/src/core/mod.rs:338
↓ 4 callers
Method
with_metadata
Add metadata to the cache key
graphrag-core/src/caching/cache_key.rs:39
↓ 4 callers
Method
with_ollama
Configure for Ollama LLM (enables semantic extraction) This transitions the builder to the `HasLlm` state. Sets up Ollama with default localhost:1143
graphrag-core/src/builder/mod.rs:127
↓ 4 callers
Method
with_ollama
Enable Ollama with sensible defaults (localhost:11434, llama3.2:3b).
graphrag-core/src/config/mod.rs:1562
↓ 4 callers
Method
with_parallel_processing
( chunk_size: usize, chunk_overlap: usize, parallel_processor: ParallelProcessor,
graphrag-core/src/text/mod.rs:92
↓ 4 callers
Method
with_top_k
Set the top-k results for retrieval (optional)
graphrag-core/src/builder/mod.rs:201
↓ 4 callers
Method
workspace_dir
Get workspace directory
graphrag-cli/src/workspace.rs:60
↓ 3 callers
Method
acquire_llm_permit
Acquires a permit for making an LLM API call Blocks until both concurrency and rate limits allow the call to proceed. The permit must be held for the
graphrag-core/src/async_processing/rate_limiting.rs:173
↓ 3 callers
Method
add_cluster
Add a cluster to this level
graphrag-core/src/graph/hierarchical_relationships.rs:102
↓ 3 callers
Method
add_example
Add example entity
graphrag-core/src/nlp/custom_ner.rs:49
↓ 3 callers
Method
add_query
(&mut self, query: String, duration_ms: u128, results_count: usize)
graphrag-cli/src/ui/components/info_panel.rs:82
↓ 3 callers
Method
build
Build the warming configuration without validation
graphrag-core/src/caching/warming.rs:152
↓ 3 callers
Method
build
Build the evaluable query result
graphrag-core/src/evaluation/mod.rs:407
↓ 3 callers
Method
build
Build the processor
graphrag-core/src/rograg/processor.rs:260
↓ 3 callers
Method
build_index
Build the index from all added vectors
graphrag-core/src/vector/mod.rs:114
↓ 3 callers
Method
build_registry
Create a registry builder from this configuration This method creates service instances based on the configuration and available features. Services a
graphrag-core/src/core/registry.rs:361
↓ 3 callers
Method
build_report
Build report from current graph state
graphrag-core/src/pipeline_executor.rs:123
↓ 3 callers
Method
build_reset_vector
(&self, reset_probabilities: &HashMap<EntityId, f64>)
graphrag-core/src/graph/pagerank.rs:409
↓ 3 callers
Method
cache_health
Get cache health status
graphrag-core/src/caching/client.rs:178
↓ 3 callers
Method
calculate_coherence
Calculate coherence from sentence embeddings Uses a combination of: 1. Adjacent sentence similarity (weighted higher) 2. All-pairs average similarity
graphrag-core/src/text/semantic_coherence.rs:160
↓ 3 callers
Method
calculate_cohesion
Calculate cohesion score for a cluster Uses internal edge density to measure how tightly connected relationships within the cluster are. Cohesion =
graphrag-core/src/graph/hierarchical_relationships.rs:586
↓ 3 callers
Method
calculate_difference
(&self, scores1: &[f64], scores2: &[f64])
graphrag-core/src/graph/pagerank.rs:477
↓ 3 callers
Method
calculate_idf
Calculate inverse document frequency (IDF) IDF = log(total_documents / documents_containing_term) If term is not in corpus, uses a default IDF (assu
graphrag-core/src/text/keyword_extraction.rs:112
↓ 3 callers
Method
calculate_relevance
Calculate relevance score for an anchor Combines entity count, PageRank scores, and semantic similarity
graphrag-core/src/retrieval/symbolic_anchoring.rs:337
↓ 3 callers
Method
can_decompose
(&self, query: &str)
graphrag-core/src/rograg/decomposer.rs:444
↓ 3 callers
Method
chunk_count
Get the total number of unique chunks
graphrag-core/src/entity/bidirectional_index.rs:267
↓ 3 callers
Method
clean_text
Clean and normalize text
graphrag-core/src/text/mod.rs:349
↓ 3 callers
Method
clear
Clear all pending updates and reset state
graphrag-core/src/incremental/lazy_propagation.rs:531
↓ 3 callers
Method
combine_scores
Combine multiple scoring signals with configurable weights
graphrag-core/src/graph/pagerank.rs:563
↓ 3 callers
Method
complete
Complete a prompt with caching support (synchronous version)
graphrag-core/src/caching/client.rs:325
↓ 3 callers
Method
complete_operation
Marks an operation as complete with results
graphrag-core/src/graph/incremental/helpers.rs:424
↓ 3 callers
Method
compute_property_changes
( &self, before: &HashMap<String, String>, after: &HashMap<String, String>, )
graphrag-core/src/incremental/delta_computation.rs:575
↓ 3 callers
Method
compute_similarities_sequential
Sequential similarity computation (fallback)
graphrag-core/src/vector/mod.rs:463
↓ 3 callers
Method
contains
(&self, item: &str)
graphrag-core/src/incremental/delta_computation.rs:260
↓ 3 callers
Function
convert_raw_config
Convert raw configuration to the main Config struct
graphrag-core/src/config/loader.rs:458
↓ 3 callers
Method
convert_to_entities
( &self, entity_data: &[EntityData], chunk_id: &ChunkId, chunk_text: &str,
graphrag-core/src/entity/llm_extractor.rs:379
↓ 3 callers
Function
cosine_similarity
Cosine similarity implementation (Exact same algorithm as graphrag-wasm/src/lib.rs:50-64)
examples/symposium_real_search.rs:239
↓ 3 callers
Method
count_keyword_matches
Count matching keywords between chunk and query
graphrag-core/src/retrieval/enriched.rs:320
↓ 3 callers
Method
create_change_record
( &self, change_type: ChangeType, operation: Operation, change_data: ChangeDat
graphrag-core/src/graph/incremental/store.rs:154
↓ 3 callers
Method
create_change_record
Create a new change record
graphrag-core/src/graph/incremental/manager.rs:143
↓ 3 callers
Function
create_embedder
Auto-detect and create the best available embedder Priority: 1. Burn WebGPU (if available and feature enabled) 2. Candle CPU (fallback) # Arguments
graphrag-wasm/src/embedder.rs:516
↓ 3 callers
Method
create_leaf_nodes_sequential
Sequential leaf node creation (fallback)
graphrag-core/src/summarization/mod.rs:392
↓ 3 callers
Function
create_messy_text
(word_count: usize)
benches/text_processing.rs:232
↓ 3 callers
Function
create_multilingual_text
(word_count: usize)
benches/text_processing.rs:361
↓ 3 callers
Function
create_test_graph
()
graphrag-core/src/retrieval/symbolic_anchoring.rs:481
↓ 3 callers
Function
create_test_graph
()
graphrag-core/src/rograg/processor.rs:965
↓ 3 callers
Function
create_test_graph
()
graphrag-core/tests/dynamic_weighting_tests.rs:10
↓ 3 callers
Function
create_test_response
()
graphrag-core/src/rograg/quality_metrics.rs:1522
↓ 3 callers
Function
create_test_vectors
Helper function to create test vectors
benches/vector_search.rs:160
↓ 3 callers
Function
default_auto_save_interval
()
graphrag-core/src/config/mod.rs:1442
↓ 3 callers
Function
default_confidence_threshold
()
graphrag-core/src/config/setconfig.rs:1204
↓ 3 callers
Function
default_config
()
graphrag-cli/src/config.rs:79
↓ 3 callers
Function
default_max_versions
()
graphrag-core/src/config/mod.rs:1445
↓ 3 callers
Function
default_similarity_threshold
()
graphrag-core/src/config/mod.rs:1305
↓ 3 callers
Function
default_top_k
()
graphrag-core/src/config/mod.rs:1327
↓ 3 callers
Method
depth
Get the depth of the section number (number of components)
graphrag-core/src/text/document_structure.rs:325
↓ 3 callers
Method
detect_communities
Detect hierarchical communities in graph
graphrag-core/src/graph/leiden.rs:477
↓ 3 callers
Method
ego_network
Extract K-hop ego-network around an entity An ego-network is a subgraph containing all entities within K hops of the source entity. This is useful fo
graphrag-core/src/graph/traversal.rs:242
↓ 3 callers
Method
embed_batch
(&self, texts: &[&str])
graphrag-core/src/core/test_utils.rs:70
↓ 3 callers
Method
enrich_document_chunks
( &self, document: &Document, chunks: &[TextChunk], )
graphrag-core/src/text/contextual_enricher.rs:213
↓ 3 callers
Method
entities
Get reference to entities (for internal use)
graphrag-wasm/src/lib.rs:751
↓ 3 callers
Method
entity_count
Get the total number of unique entities
graphrag-core/src/entity/bidirectional_index.rs:262
↓ 3 callers
Method
evaluate_with_heuristics
Evaluate query quality using heuristic metrics Provides fast, deterministic evaluation without requiring LLM calls.
graphrag-core/src/optimization/graph_weight_optimizer.rs:357
↓ 3 callers
Method
eviction_policy
Set the eviction policy
graphrag-core/src/caching/cache_config.rs:258
← previous
next →
301–400 of 4,223, ranked by callers