[BUG] With a **base** `kotaemon` install (no extras), a stock `.env` crashes `ktem` on startup
Author: viggotwCreated Sep 18, 2026Updated Sep 18, 2026
Labelsbug
Description
With a base kotaemon install (no extras), a stock .env crashes ktem on startup:
File "kotaemon/embeddings/voyageai.py", line 16, in _import_voyageai
vo = importlib.import_module("voyageai")
ModuleNotFoundError: No module named 'voyageai'The shipped .env sets VOYAGE_API_KEY=<VOYAGE_API_KEY>, and flowsettings.py:175-176
tests only truthiness:
VOYAGE_API_KEY = config("VOYAGE_API_KEY", default="")
if VOYAGE_API_KEY:
KH_EMBEDDINGS["voyageai"] = {...}The placeholder string is non-empty, so a VoyageAI embedding model is registered — but
voyageai is only in the adv extra, which run_windows.bat does not install. The same
placeholder pattern applies to COHERE_API_KEY and GRAPHRAG_API_KEY.
Suggested fix — treat <...>-style placeholders as unset:
if VOYAGE_API_KEY and not VOYAGE_API_KEY.startswith("<"):Workaround: either blank the key in .env, or pip install voyageai==0.3.2.
Reproduction steps
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See errorScreenshots
Logs
Browsers
No response
OS
No response
Additional information
No response
Source: Cinnamon/kotaemon