MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_local_embed_sync

Function test_local_embed_sync

atomic-repository/src/ai/mod.rs:666–679  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

664
665 #[test]
666 fn test_local_embed_sync() {
667 let provider = EmbeddingProvider {
668 provider: AiProvider::Local,
669 model: "hash-embed".to_string(),
670 dimensions: 8,
671 api_key: None,
672 };
673 let results = provider
674 .embed_sync(&["hello".to_string(), "world".to_string()])
675 .unwrap();
676 assert_eq!(results.len(), 2);
677 assert_eq!(results[0].len(), 8);
678 assert_eq!(results[1].len(), 8);
679 }
680
681 #[test]
682 fn test_local_embed_sync_deterministic() {

Callers

nothing calls this directly

Calls 2

embed_syncMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected