# RAG Embeddings Configuration Fragment

[[elements]]
border_bottom = false
border_top = true
name = "rag_embeddings_header"
title = "🧠 Embeddings Configuration"
type = "section_header"

[[elements]]
default = "local"
help = "Embedding model provider (openai, local, anthropic)"
name = "rag_embeddings_provider"
nickel_path = ["rag", "embeddings", "provider"]
options = ["openai", "local", "anthropic"]
prompt = "Provider"
required = true
type = "select"

[[elements]]
default = "all-MiniLM-L6-v2"
help = "Embedding model name"
name = "rag_embeddings_model"
nickel_path = ["rag", "embeddings", "model"]
prompt = "Model"
required = true
type = "text"

[[elements]]
default = 384
help = "Embedding dimension (384, 768, 1536, 3072)"
name = "rag_embeddings_dimension"
nickel_path = ["rag", "embeddings", "dimension"]
options = [384, 768, 1536, 3072]
prompt = "Dimension"
type = "select"

[[elements]]
default = 32
help = "Batch size for embedding operations"
max = 1000
min = 1
name = "rag_embeddings_batch_size"
nickel_path = ["rag", "embeddings", "batch_size"]
prompt = "Batch Size"
type = "number"

[[elements]]
condition = "rag_embeddings_provider != 'local'"
default = ""
help = "API key for embedding service"
name = "rag_embeddings_api_key"
nickel_path = ["rag", "embeddings", "api_key"]
prompt = "API Key"
required = false
type = "password"
