feat(semantic-search): Replace local embedding model with OpenRouter API

- Replace EmbeddingGemma local model with OpenRouter API integration
- Use google/gemini-embedding-001 model via OpenRouter (3072 dimensions)
- Add conditional tool registration: auto-disable if OPENROUTER_API_KEY not set
- Add openai and numpy dependencies to pyproject.toml
- Update .env.example with OPENROUTER_API_KEY configuration
- Fix ruff lint issues in semantic_search module
This commit is contained in:
saidsurucu
2025-12-13 18:33:47 +03:00
parent da146cf3ec
commit 77e2748ade
5 changed files with 356 additions and 388 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
# semantic_search/__init__.py
from .embedder import EmbeddingGemma
from .embedder import OpenRouterEmbedder, is_openrouter_available
from .vector_store import VectorStore
from .processor import DocumentProcessor
__all__ = ['EmbeddingGemma', 'VectorStore', 'DocumentProcessor']
__all__ = ['OpenRouterEmbedder', 'is_openrouter_available', 'VectorStore', 'DocumentProcessor']