Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
fix: duckdb spatial extension not found error
Dounxbd76bc592ee7
diff --git a/internal/container/container.go b/internal/container/container.goindex 1a5ff1941..cf3ad7494 100644--- a/internal/container/container.go+++ b/internal/container/container.go@@ -653,6 +653,12 @@ func NewDuckDB() (*sql.DB, error) {return nil, fmt.Errorf("failed to open duckdb: %w", err)}+ // Try to install and load spatial extension+ installSQL := "INSTALL spatial;"+ if _, err := sqlDB.ExecContext(context.Background(), installSQL); err != nil {+ logger.Warnf(context.Background(), "[DuckDB] Failed to install spatial extension: %v", err)+ }+// Try to load spatial extensionloadSQL := "LOAD spatial;"if _, err := sqlDB.ExecContext(context.Background(), loadSQL); err != nil {