You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement AI configuration management and enhance document handling
- Introduced new API endpoints for managing AI configuration, allowing retrieval and secure storage of API keys.
- Updated the configuration structure to support encryption of AI keys, enhancing security.
- Refactored document listing to include throttled logging for processing counts, improving performance monitoring.
- Enhanced the UI components to support multiple file uploads and provide user feedback during uploads.
- Improved the onboarding experience with contextual messages for new users.
These changes aim to streamline AI integration and improve user experience in document management and configuration settings.
writeError(w, "missing query or prompt", http.StatusBadRequest)
104
193
return
105
194
}
106
-
// RAG is required for embeddings and retrieval; api_key/model in body override chat only
195
+
// RAG is required for embeddings and retrieval; api_key/model in body override; else use DB-stored config.
107
196
ifh.rag==nil {
108
-
writeJSON(w, map[string]any{"answer": "RAG not configured. Set OPENAI_API_KEY or AZURE_OPENAI_* in .env.", "sources": []any{}})
197
+
writeJSON(w, map[string]any{"answer": "RAG not configured. Configure AI in Settings or set OPENAI_API_KEY / AZURE_OPENAI_* in .env.", "sources": []any{}})
0 commit comments