-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Problem
The know config set embeddings.url command saves to ~/.knowledge/config.json, but the actual EmbeddingService reads from Laravel's config which uses env vars (QDRANT_EMBEDDING_SERVER).
This means:
know config set embeddings.url http://remote:8001appears to workknow configshows the new value- But
know addstill uses the defaulthttp://localhost:8001because the JSON config file is never loaded into the Laravel config at runtime
Steps to Reproduce
know config set embeddings.url http://10.0.3.199:8001know configshows the new URLknow add "Test" --content="test" --category="test"- Fails with EmbeddingException because it's still trying localhost:8001
Expected Behavior
The know config set command should either:
- Set the env var persistently (in a .env file or similar)
- Or the app should load
~/.knowledge/config.jsonat boot and merge it into the Laravel config
Current Workaround
Export the env var manually:
export QDRANT_EMBEDDING_SERVER="http://10.0.3.199:8001"Related Files
app/Providers/AppServiceProvider.phpline 52-54 - reads fromconfig('search.qdrant.embedding_server')config/search.php- usesenv('QDRANT_EMBEDDING_SERVER', 'http://localhost:8001')app/Commands/KnowledgeConfigCommand.php- saves to JSON file
Version
v1.0.0
Metadata
Metadata
Assignees
Labels
No labels