From 83b1a962f03ab5c1a3076d3fa3db7a70cba14699 Mon Sep 17 00:00:00 2001 From: Daishan Peng Date: Thu, 26 Sep 2024 12:56:46 -0700 Subject: [PATCH] Fix: Remove embedding logs to make output concise Signed-off-by: Daishan Peng --- pkg/datastore/datastore.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pkg/datastore/datastore.go b/pkg/datastore/datastore.go index d7db4c92..f2074f39 100644 --- a/pkg/datastore/datastore.go +++ b/pkg/datastore/datastore.go @@ -115,16 +115,11 @@ func NewDatastore(dsn string, automigrate bool, vectorDBPath string, embeddingPr } } - embeddingFunc, err := embeddingProvider.EmbeddingFunc() - if err != nil { - return nil, fmt.Errorf("failed to create embedding function: %w", err) - } - slog.Debug("Using embedding model provider", "provider", embeddingProvider.Name(), "config", output.RedactSensitive(embeddingProvider.Config())) ds := &Datastore{ Index: idx, - Vectorstore: chromem.New(vsdb, LogEmbeddingFunc(embeddingFunc)), + Vectorstore: chromem.New(vsdb, nil), EmbeddingModelProvider: embeddingProvider, }