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(embedding): repair broken comment in Zhipu embedder
wizardchen5141a1230cf6
diff --git a/internal/models/embedding/zhipu.go b/internal/models/embedding/zhipu.goindex 54e83eacc..941054c00 100644--- a/internal/models/embedding/zhipu.go+++ b/internal/models/embedding/zhipu.go@@ -157,12 +157,11 @@ func (e *ZhipuEmbedder) BatchEmbed(ctx context.Context, texts []string) ([][]floreturn nil, fmt.Errorf("marshal request: %w", err)}-// Log request details for debugginglogger.GetLogger(ctx).Debugf("ZhipuEmbedder BatchEmbed: model=%s, input_count=%d, truncate_tokens=%d",e.modelName, len(texts), e.truncatePromptTokens)- /- / Check for invalid input lengths and log details++ // Check for invalid input lengths and log detailshasInvalidLength := falsefor i, text := range texts {textLen := len(text)