Problem
The embedding server is named "BGE Server" but it no longer uses the BGE (BAAI General Embedding) model. It now uses OpenAI's text-embedding-3-large API.
Current code in src/core/bge_server.py:
OPENAI_MODEL = "text-embedding-3-large"
This naming inconsistency causes confusion when debugging and reviewing logs/alerts.
Scope of Rename
koi-processor repo
Other repos to search
System-level changes
Search Commands
Run these across all repos to find references:
# Find all references to "bge" (case insensitive)
grep -ri "bge" --include="*.py" --include="*.sh" --include="*.yaml" --include="*.yml" --include="*.json" --include="*.md" --include="*.service" .
# Find URL references
grep -ri "8090\|bge.server\|bge_server\|bge-server" .
# Find in systemd
grep -ri "bge" /etc/systemd/system/
# Find in nginx/configs
grep -ri "bge" /etc/nginx/ 2>/dev/null
Proposed New Names
| Current |
Proposed |
bge_server.py |
embedding_server.py |
koi-bge-server.service |
koi-embedding-server.service |
BGE Server (in alerts/logs) |
Embedding Server |
BGE_SERVER_URL |
EMBEDDING_SERVER_URL |
Migration Steps
- Search phase - Find all references across all repos
- Update code - Rename files and update imports
- Update configs - Systemd, nginx, monitoring
- Update services - Stop old, start new service name
- Symlink (temporary) - Keep old log path working during transition
- Update docs - READMEs, runbooks, etc.
- Cleanup - Remove old service files, symlinks
Risks
- Service downtime during rename if not done carefully
- Broken references if not all repos updated
- Log rotation configs may need updating
- Monitoring alerts may need reconfiguring
Alternative
Keep the name but add a comment explaining the history:
# Note: "BGE Server" is a legacy name. Now uses OpenAI embeddings.
This is lower effort but doesn't fix the confusion.
Labels
tech-debt, cleanup, documentation
Problem
The embedding server is named "BGE Server" but it no longer uses the BGE (BAAI General Embedding) model. It now uses OpenAI's text-embedding-3-large API.
Current code in
src/core/bge_server.py:This naming inconsistency causes confusion when debugging and reviewing logs/alerts.
Scope of Rename
koi-processor repo
src/core/bge_server.py→embedding_server.pykoi-bge-server.service→koi-embedding-server.servicelogs/bge_server.log→logs/embedding_server.logOther repos to search
System-level changes
/etc/systemd/system/Search Commands
Run these across all repos to find references:
Proposed New Names
bge_server.pyembedding_server.pykoi-bge-server.servicekoi-embedding-server.serviceBGE Server(in alerts/logs)Embedding ServerBGE_SERVER_URLEMBEDDING_SERVER_URLMigration Steps
Risks
Alternative
Keep the name but add a comment explaining the history:
# Note: "BGE Server" is a legacy name. Now uses OpenAI embeddings.This is lower effort but doesn't fix the confusion.
Labels
tech-debt, cleanup, documentation