MCPcopy Create free account

hub / github.com/automataIA/graphrag-rs / functions

Functions4,223 in github.com/automataIA/graphrag-rs

↓ 9 callersMethodbuild_graph
(&mut self)
graphrag-core/src/graphrag/build.rs:28
↓ 9 callersMethodcache_statistics
Get cache statistics
graphrag-core/src/caching/client.rs:173
↓ 9 callersMethoddetect_boundaries
Detect all semantic boundaries in text
graphrag-core/src/text/boundary_detection.rs:131
↓ 9 callersMethoddynamic_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 callersMethodextract_keywords
Extract keywords using simple frequency analysis
graphrag-core/src/text/mod.rs:476
↓ 9 callersMethodfind_entity_by_name
Find entity by name (fuzzy matching)
graphrag-core/src/rograg/logic_form/executor.rs:634
↓ 9 callersMethodgenerate_key
Generate a cache key for a prompt
graphrag-core/src/caching/cache_key.rs:139
↓ 9 callersMethodget
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 callersMethodget_chunk
Get a chunk by ID
graphrag-core/src/core/mod.rs:430
↓ 9 callersMethodhas_documents
Check if documents have been added
graphrag-core/src/graphrag/stats.rs:28
↓ 9 callersFunctionhash_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 callersFunctionload_config
Load GraphRAG configuration from file (supports JSON5, JSON, TOML)
graphrag-cli/src/config.rs:11
↓ 9 callersMethodparse
(&self, content: &str)
graphrag-core/src/text/parsers/html.rs:147
↓ 9 callersMethodpublish_event
(&self, event: ChangeEvent)
graphrag-core/src/graph/incremental/store.rs:150
↓ 9 callersMethodshould_use_parallel
Determine if parallel processing should be used
graphrag-core/src/parallel/mod.rs:126
↓ 9 callersFunctionshowError
(message)
examples/wasm-multi-doc-demo/app.js:455
↓ 9 callersMethodvalidate_triple
( &self, source: &str, relation_type: &str, target: &str, source_text:
graphrag-core/src/entity/llm_relationship_extractor.rs:281
↓ 8 callersMethodadd_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 callersMethodcalculate_improvement_percentage
Calculate improvement percentage
graphrag-core/src/rograg/quality_metrics.rs:1409
↓ 8 callersFunctioncheck_webgpu_support
()
graphrag-wasm/src/lib.rs:81
↓ 8 callersMethodclear
Clear all documents and reset the index
graphrag-wasm/src/lib.rs:282
↓ 8 callersMethodcount_paragraphs
Count paragraphs in text
graphrag-core/src/nlp/semantic_chunking.rs:523
↓ 8 callersMethodcounter
(&self, name: &str, value: u64, tags: Option<&[(&str, &str)]>)
graphrag-core/src/monitoring/metrics_collector.rs:147
↓ 8 callersMethodcreate_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 callersMethodcreate_snapshot
Create a snapshot from current graph state
graphrag-core/src/incremental/delta_computation.rs:663
↓ 8 callersFunctioncreate_test_graph
()
graphrag-core/src/retrieval/pagerank_retrieval.rs:684
↓ 8 callersFunctioncreate_test_node
(id: &str, props: Vec<(&str, &str)>)
graphrag-core/src/incremental/delta_computation.rs:741
↓ 8 callersFunctioncreate_test_ollama_config
()
graphrag-core/tests/triple_validation_tests.rs:7
↓ 8 callersMethoderror
Get style for error messages
graphrag-cli/src/theme.rs:101
↓ 8 callersMethodfind_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 callersMethodgenerate_with_params
( &self, prompt: &str, params: OllamaGenerationParams, )
graphrag-core/src/ollama/mod.rs:309
↓ 8 callersMethodget_entity_relationships
Get entity relationships
graphrag-core/src/core/mod.rs:786
↓ 8 callersMethodis_capitalized
Check if a word is capitalized
graphrag-core/src/entity/mod.rs:634
↓ 8 callersMethodis_initialized
Check if GraphRAG is initialized
graphrag-cli/src/handlers/graphrag.rs:60
↓ 8 callersMethodlen
Get the number of vectors in the store
graphrag-core/src/vector/voy_store.rs:207
↓ 8 callersMethodregister_function
Register a new function
graphrag-core/src/function_calling/mod.rs:100
↓ 8 callersMethodsearch
(&self, query_vector: &[f32], k: usize)
graphrag-core/src/core/test_utils.rs:239
↓ 8 callersMethodupdate_scrollbar
Update scrollbar state
graphrag-cli/src/ui/components/raw_results_viewer.rs:100
↓ 8 callersMethodvalidate
(&self)
graphrag-core/src/config/validation.rs:50
↓ 8 callersMethodwith_causal_strength
Set causal strength for this relationship
graphrag-core/src/core/mod.rs:332
↓ 8 callersMethodwith_pagerank_config
Create new system with custom PageRank configuration
graphrag-core/src/retrieval/pagerank_retrieval.rs:77
↓ 8 callersMethodwith_temporal_range
Set temporal range for this relationship
graphrag-core/src/core/mod.rs:326
↓ 7 callersMethodadd_intent_pattern
Add an intent pattern
graphrag-core/src/rograg/intent_classifier.rs:477
↓ 7 callersMethodborder
Get style for borders (normal)
graphrag-cli/src/theme.rs:121
↓ 7 callersMethodborder_focused
Get style for borders (focused)
graphrag-cli/src/theme.rs:126
↓ 7 callersMethodcalculate_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 callersMethodcomplete
(&self, prompt: &str)
graphrag-core/src/generation/async_mock_llm.rs:369
↓ 7 callersMethodcosine_similarity
Calculate cosine similarity between two embedding vectors
graphrag-core/src/text/semantic_coherence.rs:358
↓ 7 callersFunctioncreate_philosophy_graph
Helper to create a test graph with philosophical entities and relationships
graphrag-core/tests/advanced_features_integration.rs:26
↓ 7 callersFunctioncreate_test_graph
Helper to create a test graph with relationships
graphrag-core/benches/advanced_features_benchmark.rs:28
↓ 7 callersFunctioncreate_test_response
()
graphrag-core/src/rograg/validator.rs:1010
↓ 7 callersMethoddefault
()
graphrag-cli/src/theme.rs:40
↓ 7 callersMethoddelete
(&self, store_name: &str, key: &str)
graphrag-wasm/src/storage.rs:355
↓ 7 callersMethodgenerate
(&self, prompt: &str)
graphrag-core/src/ollama/mod.rs:284
↓ 7 callersMethodget
Get a value from the cache
graphrag-core/src/caching/persistent.rs:121
↓ 7 callersMethodget_neighbors
Get neighbors of an entity
graphrag-core/src/core/mod.rs:476
↓ 7 callersMethodget_statistics
Get processing statistics
graphrag-core/src/parallel/mod.rs:121
↓ 7 callersMethodhas
(&self, key: &str)
graphrag-wasm/src/storage.rs:545
↓ 7 callersMethodhash
Compute the hash of this cache key based on key_hash and display_key
graphrag-core/src/caching/cache_key.rs:21
↓ 7 callersFunctionidb_request_to_promise
Helper function to convert IdbRequest to Promise
graphrag-wasm/src/storage.rs:31
↓ 7 callersFunctionparse_markdown
Parse a markdown string into ratatui `Line` values ready for rendering.
graphrag-cli/src/ui/markdown.rs:12
↓ 7 callersMethodquery
(&self, query: &str)
graphrag-core/src/api/rest.rs:154
↓ 7 callersMethodupdate
(&mut self, content: Vec<String>)
graphrag-core/src/core/test_utils.rs:347
↓ 7 callersMethodupdate
Update application state based on action
graphrag-cli/src/app.rs:340
↓ 7 callersMethodworkspace_path
Get workspace directory path
graphrag-core/src/persistence/workspace.rs:105
↓ 6 callersMethodadd_document
Add a document to the knowledge graph
graphrag-core/src/core/mod.rs:372
↓ 6 callersMethodadd_document_to_corpus
Update document frequencies with a new document (for corpus-level IDF)
graphrag-core/src/text/keyword_extraction.rs:139
↓ 6 callersMethodadd_edge
Add an edge to the layout
graphrag-wasm/src/components/force_layout.rs:165
↓ 6 callersMethodadd_rule
Add extraction rule
graphrag-core/src/nlp/custom_ner.rs:130
↓ 6 callersMethodadd_template
Add a response template
graphrag-core/src/rograg/streaming.rs:291
↓ 6 callersMethodadd_vector
( &mut self, id: String, vector: Vec<f32>, _metadata: VectorMetadata, )
graphrag-core/src/core/test_utils.rs:210
↓ 6 callersMethodbuild_from_chunks
Build the hierarchical tree from text chunks
graphrag-core/src/summarization/mod.rs:289
↓ 6 callersMethodcalculate_scores
Calculate personalized PageRank scores with performance optimizations
graphrag-core/src/graph/pagerank.rs:186
↓ 6 callersMethodchunk_and_enrich
Convenience method: chunk and enrich with auto-detected format
graphrag-core/src/text/mod.rs:225
↓ 6 callersMethodclear
Clear all indexed data
graphrag-core/src/retrieval/bm25.rs:232
↓ 6 callersMethodcompute_delta
Compute delta between two snapshots
graphrag-core/src/incremental/delta_computation.rs:317
↓ 6 callersFunctioncosine_similarity
Cosine similarity implementation (Same as in graphrag-wasm/src/lib.rs)
examples/test_real_embeddings.rs:178
↓ 6 callersFunctioncreate_test_graph
()
graphrag-core/src/graph/traversal.rs:573
↓ 6 callersFunctioncreate_test_temporal_graph
()
graphrag-core/src/graph/temporal.rs:522
↓ 6 callersMethoddecompose
(&self, query: &str)
graphrag-core/src/rograg/decomposer.rs:373
↓ 6 callersMethodensure_initialized
Ensure system is initialized
graphrag-core/src/graphrag/mod.rs:76
↓ 6 callersMethodextension
Get file extension for this format
graphrag-core/src/config/json5_loader.rs:131
↓ 6 callersMethodextract
(&self, text: &str)
graphrag-core/src/core/entity_adapters.rs:64
↓ 6 callersFunctionfetch_tokenizer_json
Helper: Fetch tokenizer JSON from server
graphrag-wasm/examples/onnx_embeddings_demo.rs:29
↓ 6 callersMethodgenerate_cache_key
Generate cache key for a request
graphrag-core/src/caching/client.rs:153
↓ 6 callersMethodhandle_action
(&mut self, action: &Action)
graphrag-cli/src/ui/components/status_bar.rs:66
↓ 6 callersMethodhas_graph
Check if graph has been built
graphrag-core/src/graphrag/stats.rs:37
↓ 6 callersMethodhybrid_query
Advanced hybrid query with strategy selection and hierarchical integration
graphrag-core/src/retrieval/mod.rs:270
↓ 6 callersMethodinfer_entity_type
Infer entity type from name (placeholder implementation)
graphrag-core/src/corpus/entity_linker.rs:539
↓ 6 callersMethodinitialize
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 callersMethodneighbors
Get neighbors of a node
graphrag-core/src/graph/embeddings.rs:116
↓ 6 callersMethodregister_function_in_category
Register a function in a specific category
graphrag-core/src/function_calling/enhanced_registry.rs:61
↓ 6 callersMethodrender
(&mut self, f: &mut Frame, area: Rect)
graphrag-cli/src/ui/components/status_bar.rs:92
↓ 6 callersMethodrewrite_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 callersMethodscore_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 callersMethodstats
Get storage statistics
graphrag-core/src/storage/mod.rs:83
↓ 6 callersMethodupdate_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 callersMethodwith_line_number
Create heading with line number
graphrag-core/src/text/document_structure.rs:45
↓ 6 callersMethodwith_temporal_type
Set temporal type for this relationship
graphrag-core/src/core/mod.rs:313
↓ 5 callersMethodadd_document
(&mut self, doc: Document)
examples/multi_document_pipeline.rs:396
← previousnext →101–200 of 4,223, ranked by callers