Skip to content

Failed to serialize into stream - vector index 0 bytes after import #647

Closed

Description

@opssiseira-dot

Description

After importing documents via uteke import --batch-dir, the vector index files remain at 0 bytes:

-rw-r--r-- 1 Farhan 197121      0 Jul 13 15:25 uteke_index.keys
-rw-r--r-- 1 Farhan 197121      0 Jul 13 15:25 uteke_index.usearch

Documents are stored successfully (121 docs, 728 chunks), but embedding vectors fail to serialize.

Error Messages

WARN uteke_core::error: embedding error context="save vector index" err=Failed to serialize into stream
WARN uteke_core: Failed to persist vector index after doc chunking: save vector index: embedding operation failed
WARN uteke: Shutdown flush failed: save vector index: embedding operation failed

Environment

  • OS: Windows 10 (x86_64)
  • Uteke version: 0.7.2 (pre-built binary: uteke-x86_64-pc-windows-msvc-v0.7.2.zip)
  • Embedding model: embeddinggemma-q4 (downloaded successfully)
  • Disk space: 191GB free
  • File permissions: All files writable by current user

Steps to Reproduce

  1. Download uteke-x86_64-pc-windows-msvc-v0.7.2.zip
  2. Extract to uteke-bin/
  3. Download embedding model to ~/.uteke/models/embeddinggemma-q4/onnx/
  4. Run: uteke import --batch-dir <directory> --recursive --namespace kesling
  5. Check index files: ls -la ~/.uteke/uteke_index.*

Expected Behavior

Vector index files should contain serialized embeddings after import.

Actual Behavior

  • uteke_index.keys remains 0 bytes
  • uteke_index.usearch remains 0 bytes
  • Documents are stored in SQLite but without vector embeddings
  • uteke recall returns results but with low relevance scores

Additional Notes

  • Single memory store works: uteke remember "test" --namespace kesling creates a memory
  • uteke doctor shows: ? Embedding model: embeddinggemma-q4 and ? Index consistency: DB=0 Index=0
  • The import log shows warnings but no hard errors - documents are created successfully

Workaround

Use FTS5 text search instead of vector search:

curl -X POST http://localhost:9578/doc/search -H "Content-Type: application/json" -d '{ "query": "KUDR", "mode": "fts5", "limit": 5 }'

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