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
↓ 1,110 callers
Method
len
Get the number of vectors in the index
graphrag-core/src/vector/mod.rs:214
↓ 789 callers
Method
clone
Clone the cached client (shares the same cache and statistics)
graphrag-core/src/caching/client.rs:409
↓ 387 callers
Method
is_empty
Check if the index is empty
graphrag-core/src/vector/mod.rs:219
↓ 385 callers
Method
contains
Check if a vector exists
graphrag-core/src/vector/mod.rs:246
↓ 352 callers
Method
insert
(&mut self, item: &str)
graphrag-core/src/incremental/delta_computation.rs:253
↓ 254 callers
Method
get
Get a service by type
graphrag-core/src/core/registry.rs:35
↓ 208 callers
Method
clone
(&self)
graphrag-wasm/src/lib.rs:120
↓ 194 callers
Method
clone
(&self)
graphrag-core/src/graph/incremental/manager.rs:873
↓ 189 callers
Method
as_str
Returns the update ID as a string slice
graphrag-core/src/graph/incremental/types.rs:54
↓ 161 callers
Method
count
(&self)
graphrag-core/src/persistence/lance.rs:449
↓ 94 callers
Method
contains
Check if a timestamp falls within this range
graphrag-core/src/graph/temporal.rs:42
↓ 85 callers
Method
len
Get the number of registered services
graphrag-core/src/core/registry.rs:75
↓ 83 callers
Method
entities
Get all entities
graphrag-core/src/core/mod.rs:446
↓ 68 callers
Method
get
( &self, store_name: &str, key: &str, )
graphrag-wasm/src/storage.rs:229
↓ 59 callers
Method
finish
Finish the timer and return the elapsed duration
graphrag-core/src/core/traits.rs:1128
↓ 59 callers
Method
set
Set value in cache Stores in both L1 (in-memory) and L2 (Redis) for redundancy. # Arguments `key` - Cache key `value` - Value to cache
graphrag-server/src/distributed_cache.rs:251
↓ 56 callers
Method
chunks
Get all chunks
graphrag-core/src/core/mod.rs:466
↓ 54 callers
Method
add_entity
Add an entity to the knowledge graph
graphrag-core/src/core/mod.rs:387
↓ 52 callers
Method
add_document
Add a document to the knowledge graph # Arguments `id` - Unique document identifier `text` - Document text content `embedding` - Pre-computed embeddi
graphrag-wasm/src/lib.rs:167
↓ 52 callers
Method
is_empty
Check if the index is empty
graphrag-core/src/entity/bidirectional_index.rs:277
↓ 51 callers
Method
is_empty
Check if cluster is empty
graphrag-core/src/graph/hierarchical_relationships.rs:172
↓ 46 callers
Method
add_node
Add a node to the incremental graph
graphrag-core/src/incremental/mod.rs:830
↓ 43 callers
Method
next
Get the next event
graphrag-cli/src/tui.rs:145
↓ 41 callers
Method
remove
Remove a service
graphrag-core/src/core/registry.rs:65
↓ 40 callers
Method
add_error
Add an error and mark validation as failed
graphrag-core/src/config/validation.rs:25
↓ 39 callers
Method
load
()
graphrag-core/src/config/mod.rs:1669
↓ 38 callers
Method
put
Store a value in an object store # Arguments `store_name` - Name of the object store `key` - Key to store the value under `value` - Value to store (m
graphrag-wasm/src/storage.rs:190
↓ 34 callers
Method
get_all_relationships
Get all relationships in the graph
graphrag-core/src/core/mod.rs:493
↓ 33 callers
Method
build_index
Build the vector index Must be called after adding documents and before querying.
graphrag-wasm/src/lib.rs:186
↓ 33 callers
Method
exists
Check if a file exists
graphrag-cli/src/handlers/file_ops.rs:14
↓ 30 callers
Method
add_relationship
Add a relationship between entities
graphrag-core/src/core/mod.rs:395
↓ 28 callers
Method
add_mapping
Add a mapping between an entity and a chunk This is idempotent - adding the same mapping multiple times has no effect
graphrag-core/src/entity/bidirectional_index.rs:93
↓ 27 callers
Method
build
Build the GraphRAG instance This method is only available when both output directory and LLM/embedding backend are configured. # Example ```no_run u
graphrag-core/src/builder/mod.rs:259
↓ 27 callers
Method
is_empty
Check if the registry is empty
graphrag-core/src/core/registry.rs:80
↓ 27 callers
Method
query
Query the knowledge graph # Arguments `query_embedding` - Pre-computed query embedding `top_k` - Number of results to return # Returns JSON string w
graphrag-wasm/src/lib.rs:213
↓ 27 callers
Function
sleep
* Sleep utility for yielding control * @param {number} ms * @returns {Promise<void>}
examples/wasm-multi-doc-demo/worker.js:136
↓ 26 callers
Method
add_edge
Add temporal edge
graphrag-core/src/graph/temporal.rs:226
↓ 25 callers
Method
clear
Clear all data
graphrag-core/src/storage/mod.rs:75
↓ 25 callers
Method
get_mut
Get a mutable service by type
graphrag-core/src/core/registry.rs:47
↓ 23 callers
Method
add_entity
Add a grounded entity to this anchor
graphrag-core/src/retrieval/symbolic_anchoring.rs:51
↓ 23 callers
Method
add_relationship
Add a relationship to this cluster
graphrag-core/src/graph/hierarchical_relationships.rs:147
↓ 21 callers
Method
add_document_from_text
Add a document from text content
graphrag-core/src/graphrag/documents.rs:18
↓ 21 callers
Method
chunk_text
Split text into chunks with overlap (legacy method)
graphrag-core/src/text/mod.rs:141
↓ 21 callers
Function
default_true
()
graphrag-core/src/config/setconfig.rs:1166
↓ 20 callers
Method
generate_embedding
Generate embedding for a text string
graphrag-core/src/vector/mod.rs:601
↓ 19 callers
Method
execute
Execute a logic form query against the knowledge graph
graphrag-core/src/rograg/logic_form/executor.rs:50
↓ 19 callers
Method
set_content
Set content from plain string lines (runs through markdown parser)
graphrag-cli/src/ui/components/results_viewer.rs:50
↓ 18 callers
Method
embed
Embed a single text
graphrag-wasm/src/embedder.rs:122
↓ 17 callers
Method
add_vector
Add a vector to the index
graphrag-core/src/vector/mod.rs:102
↓ 17 callers
Method
ask
Simple chat with a single user message # Arguments `user_message` - User's message # Returns Assistant's response
graphrag-wasm/src/webllm.rs:348
↓ 16 callers
Method
add_warning
Add a warning (doesn't affect validity)
graphrag-core/src/config/validation.rs:31
↓ 16 callers
Method
relationships
Get all relationships as an iterator
graphrag-core/src/core/mod.rs:905
↓ 15 callers
Method
embed
(&self, text: &str)
graphrag-core/src/core/test_utils.rs:60
↓ 15 callers
Method
initialize
Initialize the async GraphRAG system
graphrag-core/src/async_graphrag.rs:106
↓ 15 callers
Method
load_model
Load model from Cache API Downloads model files from HuggingFace if not cached. Call this method before calling embed() or embed_batch().
graphrag-wasm/src/embedder.rs:113
↓ 14 callers
Method
add_document_concepts
Add concepts from a document
graphrag-core/src/lightrag/concept_graph.rs:319
↓ 14 callers
Method
chunk
Chunk text according to strategy
graphrag-core/src/nlp/semantic_chunking.rs:102
↓ 14 callers
Method
complete_async
Async version of complete
graphrag-core/src/caching/client.rs:376
↓ 14 callers
Function
generate_test_node
Generate a test document with realistic content
graphrag-core/benches/incremental_benchmark.rs:19
↓ 14 callers
Method
get_entity
Get an entity by ID
graphrag-core/src/core/mod.rs:419
↓ 14 callers
Method
knowledge_graph
Get a reference to the knowledge graph
graphrag-core/src/graphrag/stats.rs:46
↓ 14 callers
Method
search_with_pagerank
Execute comprehensive search using both vector similarity and PageRank
graphrag-core/src/retrieval/pagerank_retrieval.rs:134
↓ 14 callers
Function
updateStatus
(message)
examples/wasm-multi-doc-demo/app.js:422
↓ 13 callers
Method
complete
(&self, prompt: &str)
graphrag-core/src/core/traits.rs:1330
↓ 13 callers
Method
get_entity
Get entity details by ID
graphrag-core/src/graphrag/stats.rs:51
↓ 13 callers
Method
get_neighbors
Get neighbors of an entity with their connecting relationships
graphrag-core/src/graph/traversal.rs:481
↓ 13 callers
Method
load_from_storage
Load the index from IndexedDB
graphrag-wasm/src/lib.rs:350
↓ 13 callers
Method
register
Register a service implementation
graphrag-core/src/core/registry.rs:29
↓ 13 callers
Method
run
Run the layout algorithm for a fixed number of iterations
graphrag-wasm/src/components/force_layout.rs:274
↓ 13 callers
Method
with_service
Register a service and continue building
graphrag-core/src/core/registry.rs:110
↓ 12 callers
Method
add_suggestion
Add an optimization suggestion
graphrag-core/src/config/validation.rs:36
↓ 12 callers
Method
build_graph
Build a knowledge graph from a collection of documents
graphrag-core/src/graph/mod.rs:94
↓ 12 callers
Method
chat
Send a chat message and get response # Arguments `messages` - Array of chat messages `temperature` - Sampling temperature (0.0-2.0, default 0.7) `max
graphrag-wasm/src/webllm.rs:271
↓ 12 callers
Method
clone
(&self)
graphrag-core/src/generation/async_mock_llm.rs:509
↓ 12 callers
Function
cosine_similarity
Cosine similarity
graphrag-server/src/handlers.rs:515
↓ 12 callers
Method
create_entity
Create an entity with mentions
graphrag-core/src/entity/mod.rs:603
↓ 12 callers
Method
documents
Get all documents
graphrag-core/src/core/mod.rs:456
↓ 12 callers
Method
estimate_cost
Estimate cost of an operation
graphrag-core/src/query/optimizer.rs:365
↓ 12 callers
Method
extract_sentences
Extract sentences from text
graphrag-core/src/text/mod.rs:361
↓ 12 callers
Method
text
Get style for normal text
graphrag-cli/src/theme.rs:79
↓ 11 callers
Method
add
Add an embedding to the index
graphrag-wasm/src/vector_search.rs:55
↓ 11 callers
Method
add_chunk_concepts
Add concepts from a chunk
graphrag-core/src/lightrag/concept_graph.rs:342
↓ 11 callers
Function
is_webllm_available
()
graphrag-wasm/src/webllm.rs:631
↓ 11 callers
Method
save_to_storage
Save the index to IndexedDB for persistence
graphrag-wasm/src/lib.rs:295
↓ 11 callers
Method
set_focus
Set focused pane and update all component focus states. pane: 0=input, 1=results, 2=raw_results, 3=info_panel
graphrag-cli/src/app.rs:94
↓ 11 callers
Method
update_scrollbar
(&mut self)
graphrag-cli/src/ui/components/results_viewer.rs:114
↓ 10 callers
Method
build
Build the concept graph
graphrag-core/src/lightrag/concept_graph.rs:355
↓ 10 callers
Method
calculate_coherence
Calculate coherence score for a chunk (based on word overlap)
graphrag-core/src/nlp/semantic_chunking.rs:549
↓ 10 callers
Function
check_voy_available
()
graphrag-wasm/src/voy_bindings.rs:316
↓ 10 callers
Method
clean_word
Clean word by removing punctuation
graphrag-core/src/entity/mod.rs:639
↓ 10 callers
Function
default_true
()
graphrag-core/src/config/mod.rs:1342
↓ 10 callers
Method
extract_from_chunk
Extract entities from a text chunk using dynamic entity types
graphrag-core/src/entity/mod.rs:114
↓ 10 callers
Method
get_connection
Get a connection to the Redis server
graphrag-core/src/caching/distributed.rs:239
↓ 10 callers
Method
initialize
Initialize GraphRAG with configuration
graphrag-cli/src/handlers/graphrag.rs:66
↓ 10 callers
Method
initialize_vector_index
Initialize vector index from the knowledge graph
graphrag-core/src/retrieval/pagerank_retrieval.rs:101
↓ 10 callers
Function
setup_logging
(debug: bool)
graphrag-cli/src/lib.rs:930
↓ 10 callers
Method
with_output_dir
Set the output directory (required) This transitions the builder to the `HasOutput` state.
graphrag-core/src/builder/mod.rs:111
↓ 9 callers
Method
add_chunk
Add a chunk to the knowledge graph
graphrag-core/src/core/mod.rs:413
↓ 9 callers
Method
add_node
Add a node to the layout
graphrag-wasm/src/components/force_layout.rs:155
↓ 9 callers
Method
add_synonym
Add a custom synonym mapping # Arguments `term` - The original term `synonyms` - List of synonyms
graphrag-core/src/query/intelligence.rs:125
next →
1–100 of 4,223, ranked by callers