Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vecindex: add recall test command #135233

Merged
merged 1 commit into from
Nov 15, 2024
Merged

Conversation

andy-kimball
Copy link
Contributor

The new "recall" test command computes the percentage of search results that are true nearest results. This is a standard measure of index and search quality.

Epic: CRDB-42943

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@DrewKimball DrewKimball left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @andy-kimball and @mw5h)


pkg/sql/vecindex/vector_index_test.go line 371 at r1 (raw file):

	}

	return fmt.Sprintf("%.2f%% recall@%d", sumMAP/float64(samples)*100, searchSet.MaxResults)

Could be nice to also display the number of vectors scanned. That doesn't have to happen here, though.


pkg/sql/vecindex/vector_index_test.go line 414 at r1 (raw file):

}

// findMAP return mean average precision, which compares a set of predicted

[nit] findMAP return -> findMAP returns

The new "recall" test command computes the percentage of search results
that are true nearest results. This is a standard measure of index and
search quality.

Epic: CRDB-42943

Release note: None
Copy link
Contributor Author

@andy-kimball andy-kimball left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @DrewKimball and @mw5h)


pkg/sql/vecindex/vector_index_test.go line 371 at r1 (raw file):

Previously, DrewKimball (Drew Kimball) wrote…

Could be nice to also display the number of vectors scanned. That doesn't have to happen here, though.

Good suggestion, I went ahead and added that.


pkg/sql/vecindex/vector_index_test.go line 414 at r1 (raw file):

Previously, DrewKimball (Drew Kimball) wrote…

[nit] findMAP return -> findMAP returns

Done.

@andy-kimball
Copy link
Contributor Author

bors r=drewkimball

@craig craig bot merged commit 20463ae into cockroachdb:master Nov 15, 2024
23 checks passed
@andy-kimball andy-kimball deleted the recall branch November 15, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants