Skip to content

Conversation

@lmolina
Copy link
Owner

@lmolina lmolina commented Nov 8, 2025

Allow users to customize the sentence-transformers model used for semantic search through environment variables. This enables users to choose different models based on their accuracy, speed, and memory requirements.

Changes:

  • Add model_name parameter to Indexer class (default: all-MiniLM-L6-v2)
  • Store and restore model_name from cache for consistency
  • Add BTMCP_MODEL_NAME environment variable for configuration
  • Add BTMCP_ENABLE_SEMANTIC environment variable to toggle semantic search
  • Update SpecServer to pass model configuration through
  • Add comprehensive tests for model configuration and persistence
  • Document model customization options with comparison table

Users can now use different models by setting:
BTMCP_MODEL_NAME="all-mpnet-base-v2" btmcp-server

This allows optimization for different use cases (speed vs accuracy).

Allow users to customize the sentence-transformers model used for semantic search
through environment variables. This enables users to choose different models based
on their accuracy, speed, and memory requirements.

Changes:
- Add model_name parameter to Indexer class (default: all-MiniLM-L6-v2)
- Store and restore model_name from cache for consistency
- Add BTMCP_MODEL_NAME environment variable for configuration
- Add BTMCP_ENABLE_SEMANTIC environment variable to toggle semantic search
- Update SpecServer to pass model configuration through
- Add comprehensive tests for model configuration and persistence
- Document model customization options with comparison table

Users can now use different models by setting:
  BTMCP_MODEL_NAME="all-mpnet-base-v2" btmcp-server

This allows optimization for different use cases (speed vs accuracy).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants