Skip to content

feat(embedding): add MiniLM support and env var configuration#10

Merged
mars167 merged 1 commit intomainfrom
feature/embedding-model-config
Feb 1, 2026
Merged

feat(embedding): add MiniLM support and env var configuration#10
mars167 merged 1 commit intomainfrom
feature/embedding-model-config

Conversation

@mars167
Copy link
Owner

@mars167 mars167 commented Feb 1, 2026

Summary

Add npm auto-publish workflow and MiniLM embedding model support.

Changes

Code Changes

  • src/core/embedding/semantic.ts: Add GIT_AI_EMBEDDING_MODEL env var support
  • docs/embedding.md: New comprehensive embedding documentation

CI/CD Changes

  • .github/workflows/npm-publish.yml: New GitHub Actions workflow for automatic npm publishing

Features

npm Auto-Publish Workflow

  • Automatic: Publishes when version tag is pushed (e.g., v2.2.0)
  • Manual: Supports workflow_dispatch for manual triggering
  • Pipeline: Test → Publish → Version Bump
  • Auth: Supports NPM_TOKEN and OIDC

MiniLM Support

  • Lightweight model (86MB, 384 dimensions)
  • Environment variable configuration
  • Auto-dimension detection

Motivation

  • Enable automated npm publishing via GitHub Actions
  • Support lightweight MiniLM model for faster local development
  • Provide clear documentation for embedding model setup

Testing

  • ✅ MiniLM model downloaded and verified
  • ✅ Semantic search tested
  • ✅ Workflow YAML validated

Breaking Changes

None - backward compatible

- Add GIT_AI_EMBEDDING_MODEL environment variable override
- Auto-detect embedding dimensions (MiniLM=384, CodeBERT=768)
- Add docs/embedding.md with model configuration guide
- Support lightweight MiniLM-L6 model for local development
@mars167 mars167 merged commit 9f84b78 into main Feb 1, 2026
1 check passed
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.

1 participant