Core AI module with chat sessions, message history, pgvector embeddings, semantic search via RAG, and Ollama integration for chat/embedding models. Includes: - Spring AI Ollama dependency (BOM 1.0.1) - Entity model: ChatSession, ChatMessage, EmbeddingChunk - Custom PostgreSQLVectorJdbcType for pgvector mapping - Services: ChatService, EmbeddingService, ChatContextBuilder - ChatController with SSE streaming endpoint - Flyway migration V008 (pgvector extension + tables) - AI configuration in application.yml
22 lines
645 B
Plaintext
22 lines
645 B
Plaintext
# ============================================================
|
|
# Decompile-AI — Environment Variables
|
|
# ============================================================
|
|
# Copy this file to .env and fill in your values.
|
|
# .env is git-ignored and never committed.
|
|
|
|
# --- LLM Provider ---
|
|
|
|
# Default chat provider (ollama)
|
|
AI_DEFAULT_CHAT_PROVIDER=ollama
|
|
|
|
# --- Model overrides (optional) ---
|
|
|
|
# Ollama chat model (default: gemma4:12b)
|
|
# AI_CHAT_MODEL_OLLAMA=gemma4:12b
|
|
|
|
# Ollama embedding model (default: qwen3-embedding:latest)
|
|
# AI_EMBEDDING_MODEL=qwen3-embedding:latest
|
|
|
|
# Embedding vector dimension (default: 4096)
|
|
# AI_EMBEDDING_DIMENSION=4096
|