# RAG Language Model Configuration Fragment

[[elements]]
border_bottom = false
border_top = true
name = "rag_llm_header"
title = "🤖 Language Model Configuration"
type = "section_header"

[[elements]]
default = "anthropic"
help = "LLM provider (anthropic, openai, ollama)"
name = "rag_llm_provider"
nickel_path = ["rag", "llm", "provider"]
options = ["anthropic", "openai", "ollama"]
prompt = "Provider"
required = true
type = "select"

[[elements]]
default = "claude-3-5-sonnet-20241022"
help = "Model name"
name = "rag_llm_model"
nickel_path = ["rag", "llm", "model"]
prompt = "Model"
required = true
type = "text"

[[elements]]
condition = "rag_llm_provider != 'ollama'"
default = ""
help = "API key for LLM service"
name = "rag_llm_api_key"
nickel_path = ["rag", "llm", "api_key"]
prompt = "API Key"
required = false
type = "password"

[[elements]]
condition = "rag_llm_provider == 'ollama'"
default = "http://localhost:11434"
help = "Ollama API URL"
name = "rag_llm_api_url"
nickel_path = ["rag", "llm", "api_url"]
prompt = "API URL"
required = false
type = "text"

[[elements]]
default = 0.7
help = "Model temperature (0.0-2.0)"
max = 2.0
min = 0.0
name = "rag_llm_temperature"
nickel_path = ["rag", "llm", "temperature"]
prompt = "Temperature"
type = "number"

[[elements]]
default = 2048
help = "Maximum tokens to generate"
max = 32768
min = 1
name = "rag_llm_max_tokens"
nickel_path = ["rag", "llm", "max_tokens"]
prompt = "Max Tokens"
type = "number"
