sqlite-graphrag 1.0.9

Local GraphRAG memory for LLMs in a single SQLite file
Documentation
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/daniloaguiarbr/sqlite-graphrag/schemas/recall.schema.json",
  "title": "RecallResponse",
  "description": "Response emitted by `sqlite-graphrag recall` on stdout as a single JSON line.",
  "$defs": {
    "RecallItem": {
      "type": "object",
      "required": ["memory_id", "name", "namespace", "type", "description", "snippet", "distance", "source"],
      "additionalProperties": false,
      "properties": {
        "memory_id":   { "type": "integer" },
        "name":        { "type": "string" },
        "namespace":   { "type": "string" },
        "type":        { "type": "string" },
        "description": { "type": "string" },
        "snippet":     { "type": "string", "description": "First 200 chars of the body." },
        "distance":    { "type": "number",  "description": "Cosine distance (lower = more similar)." },
        "source":      { "type": "string",  "enum": ["direct", "graph"] }
      }
    }
  },
  "type": "object",
  "required": ["query", "k", "direct_matches", "graph_matches", "results", "elapsed_ms"],
  "additionalProperties": false,
  "properties": {
    "query":          { "type": "string" },
    "k":              { "type": "integer", "minimum": 1 },
    "direct_matches": { "type": "array", "items": { "$ref": "#/$defs/RecallItem" } },
    "graph_matches":  { "type": "array", "items": { "$ref": "#/$defs/RecallItem" } },
    "results":        { "type": "array", "items": { "$ref": "#/$defs/RecallItem" }, "description": "Aggregate alias of direct_matches + graph_matches." },
    "elapsed_ms":     { "type": "integer", "minimum": 0 }
  }
}