Skip to content
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
6 changes: 6 additions & 0 deletions pkg/kvcache/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ func (k *Indexer) GetPodScores(ctx context.Context, prompt, modelName string,

// 2. get block keys
blockKeys := k.tokensProcessor.TokensToKVBlockKeys(tokens, modelName)
if len(blockKeys) == 0 {
traceLogger.Info("no block keys found, returning empty scores")
//nolint:nilnil // no need to return an error
return nil, nil
}

traceLogger.Info("found tokens", "tokens", tokens, "block-keys", blockKeys)

// 3. query kvblock indexer for pods
Expand Down
Loading