Skip to content

[Bug] Ollama backend skips MD, SQL files + "reference files" folder (space in name) — only 288/790 files scanned #750

Closed

Description

@faruk319

Environment:

Project file breakdown (790 total files):

  • .js: 152, .tsx: 141, .ts: 140 → scanned ✅
  • .json: 120 → partially scanned
  • .sql: 17 → NOT extracted ❌
  • .md: 13 → NOT extracted ❌
  • .css: 5, .mjs: 6, .yaml: 2, .toml: 1 → unknown
  • .gz: 88, .pack: 39, .zst: 21 → binary (skip is fine ✅)

Bug 1: MD files fail with misleading error
Steps:

  1. pip install graphifyy && pip install openai
  2. OLLAMA_BASE_URL=http://localhost:11434 OLLAMA_API_KEY=ollama graphify extract ./docs

Error:
chunk 1/1 failed: Kimi/OpenAI-compatible extraction requires the openai package
graph is empty — extraction produced no nodes.

openai 2.34.0 is installed and importable — error is misleading.

Bug 2: SQL files not extracted
17 .sql migration files in supabase/migrations/ — graphify detects
them as "code" but AST extraction produces 0 nodes.

Bug 3: Folder name with space skipped
Folder named "reference files" (with space) is completely skipped.
Total scanned: 288/790 files — 502 files missed.

Expected: All .md, .sql, .yaml, .toml, .css files extracted
Actual: Only JS/TS files properly scanned

Activity

  1. safishamsi commented on May 6, 2026

    @safishamsi
    Member

    Partially fixed in v0.7.8: (1) Ollama import error now says 'Ollama' and suggests pip install openai / pip install graphifyy[ollama]. (2) collect_files() extension sync (PR #711) now includes .sql and 17 other extensions that were silently skipped. For the space-in-folder skip — please share your .graphifyignore contents if you have one; we cannot reproduce this from code as os.walk handles spaces natively.

  2. safishamsi commented on May 6, 2026

    @safishamsi
    Member

    Partially fixed in v0.7.8: (1) Ollama import error now says Ollama and suggests pip install graphifyy[ollama]. (2) collect_files extension sync (PR #711) now includes .sql and 17 other extensions previously skipped. For the space-in-folder issue — please share your .graphifyignore if you have one, os.walk handles spaces natively so this may be project-specific.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions