Switch language한국어
Back to the list

Windows Said No: The Long Path Bug That Broke Vector Storage in Cognee

TL;DR AI

Key summary

2 min read
  1. Cognee’s vector storage on Windows could fail with OSError [WinError 3] when long project paths hit the legacy 260-character limit.

  2. The issue came from paths reaching LanceDB without the Windows long-path prefix, especially inside subprocesses.

  3. The fix normalizes vector_db_url in Cognee so Windows absolute paths get the proper prefix, while relative, Unix, and already-prefixed paths remain unchanged.

  4. The bug underscores the need for careful cross-platform path handling in open source AI and RAG tooling.

Read the original