55# Embedding Service Configuration
66# =============================================================================
77
8- # Provider selection: "local" (Ollama) or "openai "
8+ # Provider selection: "local" (Ollama), "openai", "cohere", or "huggingface "
99# Default: local
1010EMBED_PROVIDER = local
1111
@@ -24,14 +24,41 @@ OPENAI_API_KEY=your-openai-api-key-here
2424
2525# OpenAI embedding model
2626# Default: text-embedding-3-small
27- # Options: text-embedding-3-small, text-embedding-3-large, text-embedding-ada-002
27+ # Options: text-embedding-3-small (1536 dims) , text-embedding-3-large (3072 dims) , text-embedding-ada-002 (1536 dims)
2828OPENAI_EMBED_MODEL = text-embedding-3-small
2929
30+ # Cohere Configuration (when EMBED_PROVIDER=cohere)
31+ # Required if using Cohere provider
32+ COHERE_API_KEY = your-cohere-api-key-here
33+
34+ # Cohere embedding model
35+ # Default: embed-v4.0
36+ # Options: embed-v4.0 (1536 dims default, configurable 256-1536), embed-v3
37+ COHERE_EMBED_MODEL = embed-v4.0
38+
39+ # HuggingFace Configuration (when EMBED_PROVIDER=huggingface)
40+ # Required if using HuggingFace provider
41+ HUGGINGFACE_API_KEY = your-huggingface-api-key-here
42+
43+ # HuggingFace embedding model
44+ # Default: sentence-transformers/all-MiniLM-L6-v2
45+ # Options: any embedding model from HuggingFace Hub
46+ # Examples:
47+ # - sentence-transformers/all-MiniLM-L6-v2 (384 dims)
48+ # - sentence-transformers/all-mpnet-base-v2 (768 dims)
49+ # - BAAI/bge-small-en-v1.5 (384 dims)
50+ HUGGINGFACE_EMBED_MODEL = sentence-transformers/all-MiniLM-L6-v2
51+
52+ # HuggingFace Inference Endpoint URL (optional)
53+ # Default: auto-generated from HUGGINGFACE_EMBED_MODEL
54+ # Use this if you have a custom Inference Endpoint URL
55+ # HUGGINGFACE_EMBED_URL=https://api-inference.huggingface.co/pipeline/feature-extraction/sentence-transformers/all-MiniLM-L6-v2
56+
3057# =============================================================================
3158# LLM Service Configuration (for keyword extraction)
3259# =============================================================================
3360
34- # Provider selection: "local" (Ollama) or "openai "
61+ # Provider selection: "local" (Ollama), "openai", "anthropic", or "gemini "
3562# Default: local
3663LLM_PROVIDER = local
3764
@@ -46,9 +73,30 @@ LLM_MODEL=qwen3:8b
4673
4774# OpenAI LLM model (when LLM_PROVIDER=openai)
4875# Default: gpt-4o-mini
49- # Options: gpt-4o-mini, gpt-3.5-turbo, gpt-4, etc.
76+ # Options: gpt-4o-mini, gpt-4o, gpt- 3.5-turbo, gpt-4-turbo
5077OPENAI_LLM_MODEL = gpt-4o-mini
5178
79+ # Anthropic Configuration (when LLM_PROVIDER=anthropic)
80+ # Required if using Anthropic provider
81+ ANTHROPIC_API_KEY = your-anthropic-api-key-here
82+
83+ # Anthropic Claude model
84+ # Default: claude-3-5-haiku-latest
85+ # Options:
86+ # - claude-3-5-haiku-latest (fastest)
87+ # - claude-sonnet-4-5 (best for agents and coding)
88+ # - claude-opus-4-5 (most capable)
89+ ANTHROPIC_LLM_MODEL = claude-3-5-haiku-latest
90+
91+ # Google Gemini Configuration (when LLM_PROVIDER=gemini)
92+ # Required if using Gemini provider
93+ GEMINI_API_KEY = your-gemini-api-key-here
94+
95+ # Google Gemini model
96+ # Default: gemini-2.5-flash
97+ # Options: gemini-2.5-flash (fast), gemini-2.5-pro (more capable), gemini-3-pro (latest)
98+ GEMINI_LLM_MODEL = gemini-2.5-flash
99+
52100# =============================================================================
53101# Quick Setup Guide
54102# =============================================================================
@@ -65,4 +113,41 @@ OPENAI_LLM_MODEL=gpt-4o-mini
65113# 3. Set OPENAI_API_KEY=your-key-here
66114# 4. Optionally customize model names above
67115#
116+ # For Cohere Setup:
117+ # 1. Set EMBED_PROVIDER=cohere
118+ # 2. Set COHERE_API_KEY=your-key-here
119+ # 3. Get API key from: https://dashboard.cohere.com/api-keys
120+ #
121+ # For HuggingFace Setup:
122+ # 1. Set EMBED_PROVIDER=huggingface
123+ # 2. Set HUGGINGFACE_API_KEY=your-key-here
124+ # 3. Get API key from: https://huggingface.co/settings/tokens
125+ # 4. Optionally set HUGGINGFACE_EMBED_MODEL to your preferred model
126+ #
127+ # For Anthropic Setup:
128+ # 1. Set LLM_PROVIDER=anthropic
129+ # 2. Set ANTHROPIC_API_KEY=your-key-here
130+ # 3. Get API key from: https://console.anthropic.com/
131+ #
132+ # For Google Gemini Setup:
133+ # 1. Set LLM_PROVIDER=gemini
134+ # 2. Set GEMINI_API_KEY=your-key-here
135+ # 3. Get API key from: https://aistudio.google.com/app/apikey
136+ #
137+ # =============================================================================
138+ # Important: LanceDB Dimension Requirements
139+ # =============================================================================
140+ #
141+ # LanceDB doesn't require specific dimensions - it only requires that query
142+ # embeddings match stored embeddings in dimension. Different providers return
143+ # different dimensions:
144+ #
145+ # - OpenAI: 1536 (text-embedding-3-small)
146+ # - Cohere: 1536 (embed-v4.0 default)
147+ # - HuggingFace: Varies (384-768 typically)
148+ # - Local: 4096 (qwen3-embedding default)
149+ #
150+ # If you switch providers, you'll need to re-embed all products with the new
151+ # provider's dimensions. See docs/PROVIDERS.md for details.
152+ #
68153# =============================================================================
0 commit comments