Skip to content

test(memory): add Ollama integration stubs for semantic cache (#2035)#2052

Merged
bug-ops merged 1 commit intomainfrom
feat-issue-2035-ollama-integration
Mar 20, 2026
Merged

test(memory): add Ollama integration stubs for semantic cache (#2035)#2052
bug-ops merged 1 commit intomainfrom
feat-issue-2035-ollama-integration

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Mar 20, 2026

Summary

Adds three integration tests for Ollama embedding validation in ResponseCache:

  • with_ollama_embedding: roundtrip embedding storage and retrieval at identity threshold
  • hit_on_rephrase: semantic retrieval with rephrase variance at threshold 0.80
  • threshold_boundary: semantic similarity boundary separation at high (0.95) and low (0.0) thresholds

All tests marked #[ignore] — requires live Ollama instance with qwen3-embedding model.

Fixes #2035

Review Summary

✓ Architecture reviewed and approved (architect + critic)
✓ Test coverage validated (tester pass)
✓ Security audit passed (security pass, LOW risk)
✓ Implementation quality approved (impl-critic approved, no blockers)
✓ Final code review approved (reviewer APPROVE)

All pre-commit checks pass:

  • cargo +nightly fmt --check
  • cargo clippy -p zeph-memory -- -D warnings
  • cargo build --tests -p zeph-memory

Files

  • crates/zeph-memory/tests/ollama_integration.rs (new, 163 lines)

Notes

  • No new dependencies introduced
  • Thresholds: 0.80 (rephrase), 0.0 (boundary low), 0.95 (boundary high)
  • In-memory SQLite per test for isolation
  • See .local/specs/2035-ollama-integration-tests/spec.md for detailed test specification

@github-actions github-actions bot added tests Test-related changes memory zeph-memory crate (SQLite) rust Rust code changes size/M Medium PR (51-200 lines) and removed tests Test-related changes labels Mar 20, 2026
@bug-ops bug-ops force-pushed the feat-issue-2035-ollama-integration branch from f46a301 to d418a88 Compare March 20, 2026 15:00
@github-actions github-actions bot added the tests Test-related changes label Mar 20, 2026
Three #[ignore] integration tests in crates/zeph-memory/tests/ollama_integration.rs
verify ResponseCache put_with_embedding/get_semantic roundtrip, semantic rephrase hits
at threshold 0.80, and threshold boundary separation using live qwen3-embedding.
@bug-ops bug-ops force-pushed the feat-issue-2035-ollama-integration branch from d418a88 to bc5f982 Compare March 20, 2026 15:13
@bug-ops bug-ops enabled auto-merge (squash) March 20, 2026 15:13
@github-actions github-actions bot removed the tests Test-related changes label Mar 20, 2026
@bug-ops bug-ops merged commit 542e7dc into main Mar 20, 2026
25 checks passed
@bug-ops bug-ops deleted the feat-issue-2035-ollama-integration branch March 20, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

memory zeph-memory crate (SQLite) rust Rust code changes size/M Medium PR (51-200 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: add integration test stubs for Ollama

1 participant