Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Fix: Remove embedding logs to make output concise #128

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions pkg/datastore/datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down