Skip to content

Config Schema

Full Configuration File

Complete structure of .igraph/config.json generated by igraph init:

jsonc
{
  "embedding": {
    "baseURL": "http://localhost:8080/v1",
    "model": "bge-m3",
    "dimensions": 1024,
    "batchSize": 32
  },
  "llm": {
    "baseURL": "https://api.openai.com/v1",
    "model": "gpt-4o-mini",
    "fileSummaryModel": "gpt-4o",
    "temperature": 0,
    "maxConcurrency": 5,
    "promptVersion": "v1.0"
  },
  "parser": {
    "languages": ["typescript", "javascript"],
    "include": ["**/*"],
    "exclude": [
      "node_modules/**",
      "dist/**",
      "**/*.test.*",
      "**/*.spec.*",
      "**/*.d.ts"
    ]
  },
  "retrieval": {
    "fileTopK": 10,
    "nodeTopK": 10,
    "fallbackThreshold": 0.75,
    "graphHops": 2,
    "fusion": "rrf",
    "rrfK": 60,
    "denseWeight": 1.0,
    "ftsWeight": 1.0,
    "resourceTopK": 3
  },
  "multimodal": {
    "strongLinkThreshold": 0.85,
    "weakLinkThreshold": 0.7,
    "llmConfirmWeakLinks": false
  }
}

Section Reference

embedding

Controls vectorization behavior.

FieldTypeDefaultDescription
baseURLstringhttp://localhost:8080/v1Embedding API endpoint. Can be overridden by IGRAPH_EMBEDDING_BASE_URL env var
modelstringbge-m3Embedding model name
dimensionsnumber1024Vector dimensions; must match the model
batchSizenumber32Batch embedding size

llm

Controls LLM semantic summary generation.

FieldTypeDefaultDescription
baseURLstringhttps://api.openai.com/v1LLM API endpoint. Can be overridden by IGRAPH_LLM_BASE_URL env var
modelstringgpt-4o-miniModel for symbol summaries
fileSummaryModelstringgpt-4oModel for file summaries
temperaturenumber0Generation temperature (0 = deterministic)
maxConcurrencynumber5Max concurrent requests
promptVersionstringv1.0Prompt version identifier; changing triggers full rebuild

parser

Controls source code parsing behavior.

FieldTypeDefaultDescription
languagesstring[]["typescript", "javascript"]Enabled language list
includestring[]["**/*"]File include glob patterns
excludestring[]See aboveFile exclude glob patterns

retrieval

Controls retrieval behavior.

FieldTypeDefaultDescription
fileTopKnumber10File-level retrieval count
nodeTopKnumber10Symbol-level retrieval count
fallbackThresholdnumber0.75Fallback threshold
graphHopsnumber2Graph expansion hops (0 = no expansion)
fusionstringrrfFusion strategy
rrfKnumber60RRF parameter K value
denseWeightnumber1.0Dense channel weight
ftsWeightnumber1.0FTS5 channel weight
resourceTopKnumber3Independent resource retrieval Top-K (searches resource_vectors directly, not through resource_edges)

multimodal

Controls multimodal resource association behavior.

FieldTypeDefaultDescription
strongLinkThresholdnumber0.85Strong association threshold
weakLinkThresholdnumber0.7Weak association threshold
llmConfirmWeakLinksbooleanfalseWhether to use LLM to confirm weak associations

Security Constraint

DANGER

Config files must never contain any credential fields (such as apiKey, token, secret, etc.). IGraph's config validation actively scans for and rejects config files containing these fields.

API Keys and other sensitive data can only be provided via environment variables.

Released under the MIT License