-
Notifications
You must be signed in to change notification settings - Fork 6
Command Embeddings
name: agent-brain-embeddings description: Configure the embedding provider for vector search parameters:
- name: provider description: Embedding provider (openai, cohere, ollama) required: false
- name: model description: Model name for the provider required: false skills:
- using-agent-brain
Configures the embedding provider used for vector/semantic search. Embeddings convert text into numerical vectors that enable semantic similarity search.
/agent-brain-embeddings [provider] [--model <model>]
| Parameter | Required | Default | Description |
|---|---|---|---|
| provider | No | - | Provider name: openai, cohere, ollama |
| --model | No | Provider default | Specific model to use |
Industry-standard embeddings with high quality vectors.
| Model | Dimensions | Use Case |
|---|---|---|
| text-embedding-3-large | 3072 | Highest quality, production |
| text-embedding-3-small | 1536 | Faster, cost-effective |
| text-embedding-ada-002 | 1536 | Legacy, widely compatible |
Configuration:
export EMBEDDING_PROVIDER=openai
export EMBEDDING_MODEL=text-embedding-3-large
export OPENAI_API_KEY=sk-proj-...Multi-language support with good quality vectors.
| Model | Dimensions | Use Case |
|---|---|---|
| embed-english-v3.0 | 1024 | English content |
| embed-multilingual-v3.0 | 1024 | International content |
| embed-english-light-v3.0 | 384 | Lightweight, fast |
Configuration:
export EMBEDDING_PROVIDER=cohere
export EMBEDDING_MODEL=embed-english-v3.0
export COHERE_API_KEY=...Privacy-first local embeddings with no API costs.
| Model | Dimensions | Use Case |
|---|---|---|
| nomic-embed-text | 768 | General purpose |
| mxbai-embed-large | 1024 | Higher quality |
| all-minilm | 384 | Lightweight, fast |
Configuration:
export EMBEDDING_PROVIDER=ollama
export EMBEDDING_MODEL=nomic-embed-text
export OLLAMA_BASE_URL=http://localhost:11434Setup:
# Pull the model first
ollama pull nomic-embed-textIf no provider is specified, use AskUserQuestion:
Which embedding provider would you like to use?
Options:
1. OpenAI (text-embedding-3-large) - High quality, cloud-based (Recommended)
2. Cohere (embed-english-v3.0) - Multi-language support
3. Ollama (nomic-embed-text) - Local, no API key required
# Set to OpenAI
/agent-brain-embeddings openai --model text-embedding-3-large
# Set to Cohere
/agent-brain-embeddings cohere --model embed-english-v3.0
# Set to Ollama
/agent-brain-embeddings ollama --model nomic-embed-textGenerate the export commands:
# Add to your shell profile or .env file:
export EMBEDDING_PROVIDER=openai
export EMBEDDING_MODEL=text-embedding-3-largeOr update the project configuration:
agent-brain config set embedding_provider openai
agent-brain config set embedding_model text-embedding-3-largeAfter changing embedding providers, you typically need to re-index:
# If embedding dimensions changed, reset and re-index
agent-brain reset --yes
agent-brain index /path/to/docsNote: Switching between providers with different dimensions (e.g., OpenAI 3072 to Cohere 1024) requires re-indexing. Switching models within the same dimension size may not.
# Verify embedding provider is working
agent-brain verify
# Test embedding generation
agent-brain test-embedding "sample text to embed"Embedding Provider Configuration
================================
Provider: openai
Model: text-embedding-3-large
Dimensions: 3072
API Key: OPENAI_API_KEY (configured)
Configuration saved. Re-index required if dimensions changed.
Embedding Provider Comparison
=============================
| OpenAI | Cohere | Ollama
------------------|---------------|---------------|-------------
Quality | Highest | High | Good
Speed | Fast | Fast | Varies
Cost | $0.13/1M tok | $0.10/1M tok | Free
Privacy | Cloud | Cloud | Local
Dimensions | 1536-3072 | 384-1024 | 384-1024
Multi-language | Limited | Excellent | Limited
Error: Unknown provider 'xyz'. Valid options: openai, cohere, ollama
Error: Model 'invalid-model' not available for provider 'openai'.
Available models: text-embedding-3-large, text-embedding-3-small, text-embedding-ada-002
Error: Cannot connect to Ollama at http://localhost:11434
Resolution: Start Ollama with 'ollama serve' or check OLLAMA_BASE_URL
Error: OPENAI_API_KEY not set for OpenAI provider.
Resolution: export OPENAI_API_KEY="sk-proj-..."
-
/agent-brain-providers- List all available providers -
/agent-brain-summarizer- Configure summarization provider -
/agent-brain-verify- Verify configuration
- Design-Architecture-Overview
- Design-Query-Architecture
- Design-Storage-Architecture
- Design-Class-Diagrams
- GraphRAG-Guide
- Agent-Skill-Hybrid-Search-Guide
- Agent-Skill-Graph-Search-Guide
- Agent-Skill-Vector-Search-Guide
- Agent-Skill-BM25-Search-Guide
Search
Server
Setup
- Pluggable-Providers-Spec
- GraphRAG-Integration-Spec
- Agent-Brain-Plugin-Spec
- Multi-Instance-Architecture-Spec