[PR #12796] [MERGED] embed: add distance correlation test for library embed models #13954

Closed
opened 2026-04-13 00:41:06 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12796
Author: @pdevine
Created: 10/28/2025
Status: Merged
Merged: 10/28/2025
Merged by: @pdevine

Base: mainHead: pdevine/embed-distance


📝 Commits (3)

  • 98094f7 embed: add distance correlation test for library embed models
  • 31c2fe9 add additional test strings
  • 136def2 comments

📊 Changes

2 files changed (+113 additions, -1 deletions)

View changed files

📝 integration/embed_test.go (+110 -0)
📝 integration/utils_test.go (+3 -1)

📄 Description

Add a distance correlation test for each of the embedding models in the library. You can run the test with:

go test -tags=integration -run TestEmbedCosineDistanceCorrelation/.

You can also run it on a specific model such as embeddinggemma with:

go test -tags=integration -run TestEmbedCosineDistanceCorrelation/embeddinggemma

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/12796 **Author:** [@pdevine](https://github.com/pdevine) **Created:** 10/28/2025 **Status:** ✅ Merged **Merged:** 10/28/2025 **Merged by:** [@pdevine](https://github.com/pdevine) **Base:** `main` ← **Head:** `pdevine/embed-distance` --- ### 📝 Commits (3) - [`98094f7`](https://github.com/ollama/ollama/commit/98094f70884319675ca1844c18c99ad1c646c7c6) embed: add distance correlation test for library embed models - [`31c2fe9`](https://github.com/ollama/ollama/commit/31c2fe934fa95a57c6e97e4357c25164b99d4e3c) add additional test strings - [`136def2`](https://github.com/ollama/ollama/commit/136def28178e10d6f204f1281fae8911b0b71fd2) comments ### 📊 Changes **2 files changed** (+113 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `integration/embed_test.go` (+110 -0) 📝 `integration/utils_test.go` (+3 -1) </details> ### 📄 Description Add a distance correlation test for each of the embedding models in the library. You can run the test with: ``` go test -tags=integration -run TestEmbedCosineDistanceCorrelation/. ``` You can also run it on a specific model such as `embeddinggemma` with: ``` go test -tags=integration -run TestEmbedCosineDistanceCorrelation/embeddinggemma ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 00:41:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#13954