Configuration for VectrixDB's GraphRAG implementation
Public fields
enabledWhether GraphRAG is enabled
chunk_sizeTarget tokens per chunk
chunk_overlapOverlapping tokens
chunk_by_sentencePreserve sentence boundaries
extractorExtraction method
nlp_modelNLP model name
llm_providerLLM provider
llm_modelModel name
llm_api_keyAPI key
llm_endpointCustom endpoint
llm_temperatureTemperature
llm_max_tokensMax tokens
max_community_levelsMax hierarchy depth
min_community_sizeMin entities per community
relationship_thresholdMin relationship strength
deduplicate_entitiesMerge similar entities
entity_similarity_thresholdSimilarity for dedup
search_typeDefault search strategy
local_search_kSeed entities for local search
global_search_kCommunities for global search
traversal_depthMax hops
include_relationshipsInclude relationship context
include_community_contextInclude community summaries
enable_incrementalIncremental updates
batch_sizeChunks per batch
use_cacheCache embeddings
cache_ttlCache TTL seconds
entity_typesTypes to extract
relationship_typesTypes to extract
Methods
Examples
if (FALSE) { # \dontrun{
config <- GraphRAGConfig$new(enabled = TRUE)
db <- Vectrix$new("knowledge_base", graphrag_config = config)
} # }