# RAG Vector Database Configuration Fragment

[[elements]]
border_bottom = false
border_top = true
name = "rag_vector_db_header"
title = "🗄️ Vector Database Configuration"
type = "section_header"

[[elements]]
default = "memory"
help = "Vector database type (memory, surrealdb, qdrant, milvus)"
name = "rag_vector_db_type"
nickel_path = ["rag", "vector_db", "db_type"]
options = ["memory", "surrealdb", "qdrant", "milvus"]
prompt = "Database Type"
required = true
type = "select"

[[elements]]
condition = "rag_vector_db_type != 'memory'"
default = "http://localhost:8000"
help = "Vector database URL"
name = "rag_vector_db_url"
nickel_path = ["rag", "vector_db", "url"]
prompt = "Database URL"
required = false
type = "text"

[[elements]]
default = "provisioning"
help = "Vector database namespace"
name = "rag_vector_db_namespace"
nickel_path = ["rag", "vector_db", "namespace"]
prompt = "Namespace"
required = true
type = "text"

[[elements]]
condition = "rag_vector_db_type == 'surrealdb'"
default = "rag"
help = "Database name"
name = "rag_vector_db_database"
nickel_path = ["rag", "vector_db", "database"]
prompt = "Database Name"
required = false
type = "text"
