MCPcopy
hub / github.com/Tencent/WeKnora / realKBRepo

Struct realKBRepo

internal/application/service/vectorstore_test.go:911–911  ·  view source on GitHub ↗

realKBRepo is the minimal KnowledgeBaseRepository slice required by the vector-store service (only CountByVectorStoreID is exercised here).

Source from the content-addressed store, hash-verified

909// realKBRepo is the minimal KnowledgeBaseRepository slice required by the
910// vector-store service (only CountByVectorStoreID is exercised here).
911type realKBRepo struct{ db *gorm.DB }
912
913func (r *realKBRepo) CountByVectorStoreID(ctx context.Context, db *gorm.DB, tenantID uint64, storeID string) (int64, error) {
914 if db == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected