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
↓ 2 callers
Method
add_embeddings_to_graph
Add embeddings to chunks and entities in the graph with parallel processing
graphrag-core/src/retrieval/mod.rs:325
↓ 2 callers
Method
add_entities
Add entities to the knowledge graph
graphrag-wasm/src/lib.rs:741
↓ 2 callers
Method
add_level
Add a new level to the hierarchy
graphrag-core/src/graph/hierarchical_relationships.rs:37
↓ 2 callers
Method
add_relationships
Add relationships to the knowledge graph
graphrag-wasm/src/lib.rs:746
↓ 2 callers
Method
add_text
Add more text content to analyze
graphrag-core/src/api/easy.rs:47
↓ 2 callers
Method
add_vectors_batch
(&mut self, vectors: VectorBatch)
graphrag-core/src/core/test_utils.rs:232
↓ 2 callers
Method
all_warnings
Get all warnings across all phases
graphrag-core/src/evaluation/pipeline_validation.rs:635
↓ 2 callers
Function
analyze_boundary_preservation
(chunks: &[TextChunk])
graphrag-core/examples/symposium_trait_based_chunking.rs:287
↓ 2 callers
Method
analyze_detailed
Get detailed analysis with explanation
graphrag-core/src/query/adaptive_routing.rs:222
↓ 2 callers
Method
analyze_entity_mentions
Analyze entity mentions (many entities = specific query)
graphrag-core/src/query/adaptive_routing.rs:197
↓ 2 callers
Method
analyze_keywords
Analyze query keywords (-1.0 = very specific, +1.0 = very broad)
graphrag-core/src/query/adaptive_routing.rs:152
↓ 2 callers
Method
analyze_length
Analyze query length (short = specific, long = broad)
graphrag-core/src/query/adaptive_routing.rs:181
↓ 2 callers
Method
answer
Set the answer
graphrag-core/src/evaluation/mod.rs:365
↓ 2 callers
Method
apply_change_internal
(&self, change: ChangeRecord)
graphrag-core/src/graph/incremental/store.rs:250
↓ 2 callers
Function
apply_rrf
Apply Reciprocal Rank Fusion (RRF)
graphrag-server/src/handlers.rs:593
↓ 2 callers
Method
apply_semantic_normalization
Apply semantic normalization (more aggressive)
graphrag-core/src/caching/cache_key.rs:238
↓ 2 callers
Method
ask_explained
(&mut self, query: &str)
graphrag-core/src/graphrag/ask.rs:217
↓ 2 callers
Method
batch_search
Batch search for multiple queries in parallel
graphrag-core/src/vector/mod.rs:349
↓ 2 callers
Method
batch_search
High-performance batch search for multiple queries
graphrag-core/src/retrieval/pagerank_retrieval.rs:392
↓ 2 callers
Method
bfs
Breadth-First Search (BFS) from a source entity BFS explores the graph level by level, guaranteeing shortest paths. Ideal for finding entities within
graphrag-core/src/graph/traversal.rs:86
↓ 2 callers
Method
build
(self)
graphrag-core/src/graph/hierarchical_relationships.rs:251
↓ 2 callers
Method
build_completion_prompt
Build completion check prompt
graphrag-core/src/entity/prompts.rs:258
↓ 2 callers
Method
build_continuation_prompt
Build gleaning continuation prompt
graphrag-core/src/entity/prompts.rs:223
↓ 2 callers
Method
build_extraction_prompt
Build the extraction prompt following Microsoft GraphRAG methodology Creates a detailed prompt that instructs the LLM to extract both entities and re
graphrag-core/src/entity/llm_relationship_extractor.rs:126
↓ 2 callers
Method
build_extraction_prompt
Build initial entity extraction prompt
graphrag-core/src/entity/prompts.rs:213
↓ 2 callers
Method
build_graph
Build the concept graph from all indexed documents This finalizes the graph construction and creates the bidirectional index. Must be called after in
graphrag-core/src/lightrag/lazy_pipeline.rs:154
↓ 2 callers
Method
build_graph_context
Build graph context for a query (top-K relevant entities/relationships)
graphrag-core/src/optimization/graph_weight_optimizer.rs:488
↓ 2 callers
Method
calculate_aggregated_metrics
Calculate aggregated metrics
graphrag-core/src/rograg/quality_metrics.rs:1345
↓ 2 callers
Method
calculate_combined
Calculate combined score with dynamic weights
graphrag-core/src/optimization/graph_weight_optimizer.rs:56
↓ 2 callers
Method
calculate_complexity
Calculate query complexity
graphrag-core/src/rograg/intent_classifier.rs:644
↓ 2 callers
Method
calculate_confidence
Calculate the total confidence of the chain Uses product of step confidences, weighted by causal strengths
graphrag-core/src/retrieval/causal_analysis.rs:99
↓ 2 callers
Method
calculate_degree_centrality
Calculate degree centrality for each concept Degree centrality = number of connections / (total nodes - 1) Normalized to [0, 1] range.
graphrag-core/src/lightrag/concept_selection.rs:191
↓ 2 callers
Method
calculate_entity_importance
Calculate entity importance based on frequency and distribution
graphrag-core/src/corpus/knowledge_graph.rs:291
↓ 2 callers
Method
calculate_entity_weights
Calculate entity weights based on fact relevance Key insight: Entities from high-scoring facts get high weights, but downweighted by how many passage
graphrag-core/src/retrieval/hipporag_ppr.rs:146
↓ 2 callers
Method
calculate_idf
Calculate IDF (Inverse Document Frequency) scores IDF = log(total_documents / document_frequency) Normalized to [0, 1] range using sigmoid-like trans
graphrag-core/src/lightrag/concept_selection.rs:258
↓ 2 callers
Method
calculate_passage_weights
Calculate passage weights from dense retrieval scores
graphrag-core/src/retrieval/hipporag_ppr.rs:198
↓ 2 callers
Method
calculate_percentile_threshold
Calculate threshold based on percentile
graphrag-core/src/text/semantic_chunking.rs:237
↓ 2 callers
Method
calculate_response_quality
Calculate response quality metrics
graphrag-core/src/rograg/quality_metrics.rs:986
↓ 2 callers
Method
calculate_scores_sparse_optimized
Optimized sequential sparse computation
graphrag-core/src/graph/pagerank.rs:281
↓ 2 callers
Method
calculate_source_credibility
Calculate source credibility
graphrag-core/src/rograg/quality_metrics.rs:1104
↓ 2 callers
Method
calculate_statistics
Calculate derived statistics (hit rate and average time)
graphrag-core/src/caching/warming.rs:484
↓ 2 callers
Method
calculate_std_threshold
Calculate threshold based on standard deviation
graphrag-core/src/text/semantic_chunking.rs:248
↓ 2 callers
Method
calculate_string_similarity
Calculate string similarity using edit distance
graphrag-core/src/corpus/entity_linker.rs:480
↓ 2 callers
Method
calculate_text_similarity
Calculate text similarity using multiple metrics
graphrag-core/src/rograg/fuzzy_matcher.rs:540
↓ 2 callers
Method
calculate_tf
Calculate term frequency (TF) using normalized frequency TF = (count of term in document) / (total terms in document)
graphrag-core/src/text/keyword_extraction.rs:90
↓ 2 callers
Method
calculate_word_overlap
Calculate word overlap between two word lists
graphrag-core/src/rograg/fuzzy_matcher.rs:627
↓ 2 callers
Method
call_function
Execute a function call
graphrag-core/src/function_calling/mod.rs:111
↓ 2 callers
Method
call_llm_with_retry
(&self, prompt: &str)
graphrag-core/src/entity/llm_extractor.rs:217
↓ 2 callers
Method
chat_stream
Stream chat response with real-time token generation # Arguments `messages` - Array of chat messages `on_chunk` - Callback for each generated token c
graphrag-wasm/src/webllm.rs:368
↓ 2 callers
Method
check_coherence
Checks the logical flow and coherence of a response. Analyzes the response content for logical flow indicators such as connecting words and smooth tr
graphrag-core/src/rograg/validator.rs:886
↓ 2 callers
Method
check_factual_consistency
Check factual consistency
graphrag-core/src/rograg/validator.rs:523
↓ 2 callers
Function
check_onnx_runtime
()
graphrag-wasm/src/onnx_embedder.rs:556
↓ 2 callers
Method
check_relevance
Checks the relevance between query and response. Analyzes semantic relevance by computing word overlap between the query and response using Jaccard s
graphrag-core/src/rograg/validator.rs:962
↓ 2 callers
Function
check_webgpu_support
()
graphrag-wasm/src/webgpu_check.rs:72
↓ 2 callers
Method
chunk
Split text into semantic chunks
graphrag-core/src/text/semantic_chunking.rs:93
↓ 2 callers
Method
chunk
(&self, text: &str)
graphrag-core/src/text/late_chunking.rs:173
↓ 2 callers
Method
chunk
(&self, text: &str)
graphrag-core/src/text/chunking_strategies.rs:46
↓ 2 callers
Method
chunk_by_paragraphs
Paragraph-based chunking
graphrag-core/src/nlp/semantic_chunking.rs:226
↓ 2 callers
Function
chunk_document
Chunk text into overlapping windows
graphrag-server/src/handlers.rs:443
↓ 2 callers
Function
chunk_document
Chunk a document into overlapping windows
examples/multi_document_pipeline.rs:408
↓ 2 callers
Function
chunk_document
(text: &str, chunk_size: usize, overlap: usize)
examples/graphrag_multi_doc_server.rs:440
↓ 2 callers
Method
chunk_hierarchical_and_enrich
Convenience method: chunk hierarchically and enrich with auto-detected format
graphrag-core/src/text/mod.rs:231
↓ 2 callers
Method
chunk_text
Chunk text into smaller pieces
graphrag-core/src/lightrag/lazy_pipeline.rs:242
↓ 2 callers
Method
chunk_text
Split text into semantically coherent chunks
graphrag-core/src/text/chunking.rs:48
↓ 2 callers
Method
clear
Clear all services
graphrag-core/src/core/registry.rs:85
↓ 2 callers
Method
clear_graph
Clear the knowledge graph (preserves documents and chunks)
graphrag-cli/src/handlers/graphrag.rs:240
↓ 2 callers
Method
clear_node
Clear dirty status for a node
graphrag-core/src/incremental/lazy_propagation.rs:183
↓ 2 callers
Method
cluster_relationships
Cluster relationships using Leiden algorithm (when enabled) or SCC fallback
graphrag-core/src/graph/hierarchical_relationships.rs:412
↓ 2 callers
Method
collection_exists
Check if collection exists
graphrag-server/src/qdrant_store.rs:129
↓ 2 callers
Method
combine_weights
Combine entity and passage weights into reset probability distribution
graphrag-core/src/retrieval/hipporag_ppr.rs:219
↓ 2 callers
Method
complete_batch
Generate multiple text completions concurrently
graphrag-core/src/core/traits.rs:558
↓ 2 callers
Method
complete_with_params
Complete a prompt with parameters and caching support (synchronous version)
graphrag-core/src/caching/client.rs:343
↓ 2 callers
Method
complete_with_params_async
Async version of complete_with_params
graphrag-core/src/caching/client.rs:388
↓ 2 callers
Method
compute_all_similarities
Parallel similarity computation between all vectors with optimized chunking
graphrag-core/src/vector/mod.rs:375
↓ 2 callers
Method
compute_edge_modification
( &self, before: &EdgeSnapshot, after: &EdgeSnapshot, )
graphrag-core/src/incremental/delta_computation.rs:555
↓ 2 callers
Method
compute_node_modification
( &self, before: &NodeSnapshot, after: &NodeSnapshot, )
graphrag-core/src/incremental/delta_computation.rs:536
↓ 2 callers
Method
compute_personalized_pagerank
( &self, vector_scores: &HashMap<EntityId, f64>, pagerank_calculator: &PersonalizedPag
graphrag-core/src/retrieval/pagerank_retrieval.rs:283
↓ 2 callers
Method
content_length
Get the length of the section content in characters
graphrag-core/src/text/document_structure.rs:98
↓ 2 callers
Method
convert_entities_to_data
(&self, entities: &[Entity])
graphrag-core/src/entity/gleaning_extractor.rs:294
↓ 2 callers
Method
convert_entity
Convert ExtractedEntity to core::Entity
graphrag-core/src/core/entity_adapters.rs:42
↓ 2 callers
Method
convert_relationships_to_data
( &self, relationships: &[Relationship], )
graphrag-core/src/entity/gleaning_extractor.rs:307
↓ 2 callers
Method
convert_to_relationships
( &self, relationship_data: &[RelationshipData], entities: &[Entity], )
graphrag-core/src/entity/llm_extractor.rs:455
↓ 2 callers
Function
cosine_similarity
Cosine similarity between two vectors
examples/multi_document_pipeline.rs:494
↓ 2 callers
Method
count_sentences
Count sentences in text
graphrag-core/src/nlp/semantic_chunking.rs:516
↓ 2 callers
Method
create_api_key
Create an API key
graphrag-server/src/auth.rs:162
↓ 2 callers
Function
create_document
(content: String)
graphrag-core/examples/symposium_trait_based_chunking.rs:88
↓ 2 callers
Function
create_pure_algorithmic_config
Create pure algorithmic configuration (no LLM)
graphrag-core/examples/complete_zero_cost_graphrag_demo.rs:198
↓ 2 callers
Function
create_pure_algorithmic_config
Create pure algorithmic configuration (no LLM)
examples/complete_zero_cost_graphrag_demo.rs:172
↓ 2 callers
Function
create_simple_test_graph
()
graphrag-core/src/graph/pagerank.rs:609
↓ 2 callers
Method
create_summary_prompt
Create a summary prompt based on level and strategy
graphrag-core/src/summarization/mod.rs:510
↓ 2 callers
Method
create_table
Create a table with specified vector dimension
graphrag-server/src/lancedb_store.rs:119
↓ 2 callers
Function
create_test_chunk
( id: &str, content: &str, keywords: Vec<String>, chapter: Option<String>,
graphrag-core/src/retrieval/enriched.rs:466
↓ 2 callers
Function
create_test_chunk
()
graphrag-core/src/entity/llm_extractor.rs:517
↓ 2 callers
Function
create_test_decomposition
()
graphrag-core/src/rograg/quality_metrics.rs:1551
↓ 2 callers
Function
create_test_documents
()
graphrag-core/src/retrieval/bm25.rs:304
↓ 2 callers
Function
create_test_graph
()
graphrag-core/src/graph/leiden.rs:789
↓ 2 callers
Function
create_test_intent_result
()
graphrag-core/src/rograg/streaming.rs:1055
↓ 2 callers
Function
create_test_text
(word_count: usize)
benches/text_processing.rs:174
↓ 2 callers
Method
deduplicate_relationships
(&self, relationships: Vec<Relationship>)
graphrag-core/src/entity/gleaning_extractor.rs:450
↓ 2 callers
Function
default_algorithmic_embedding_backend
Algorithmic pipeline defaults
graphrag-core/src/config/setconfig.rs:1346
← previous
next →
501–600 of 4,223, ranked by callers