Add local AI and Qdrant vector backends

This commit is contained in:
“BeeRad”
2026-05-02 09:57:57 +10:00
parent 00f0afb8f4
commit 782ace9a34
37 changed files with 1440 additions and 321 deletions
+24 -2
View File
@@ -1,11 +1,33 @@
# RA-H OS Configuration
# Copy to .env.local: cp .env.example .env.local
# OpenAI API Key (optional)
# Enables: auto-descriptions, smart tagging, semantic search
# OpenAI API Key (optional, default supported AI path)
# Enables: auto-descriptions, extraction summaries, edge inference, embeddings, and semantic search
# Get one at: https://platform.openai.com/api-keys
OPENAI_API_KEY=
# AI profiles. Defaults keep RA-H on OpenAI plus sqlite-vec.
LLM_PROFILE=openai
# LLM_MODEL=gpt-4o-mini
EMBEDDING_PROFILE=openai
# EMBEDDING_MODEL=text-embedding-3-small
# EMBEDDING_DIMENSIONS=1536
VECTOR_BACKEND=sqlite-vec
# Supported local profile: point RA-H at OpenAI-compatible local endpoints.
# Example Ollama:
# LLM_PROFILE=openai-compatible
# LLM_BASE_URL=http://127.0.0.1:11434/v1
# LLM_MODEL=qwen3:4b
# EMBEDDING_PROFILE=openai-compatible
# EMBEDDING_BASE_URL=http://127.0.0.1:11434/v1
# EMBEDDING_MODEL=qwen3-embedding:0.6b
# EMBEDDING_DIMENSIONS=1024
#
# Example Qdrant sidecar, only needed when sqlite-vec is unavailable or unreliable:
# VECTOR_BACKEND=qdrant
# QDRANT_URL=http://localhost:6333
# Database/vector paths are auto-detected for macOS, Windows, and Linux.
# Override only if you intentionally want a custom location.
# SQLITE_DB_PATH=/absolute/path/to/rah.sqlite