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

Function test_local_embed_sync

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

Source from the content-addressed store, hash-verified

701
702 #[test]
703 fn test_local_embed_sync() {
704 let provider = EmbeddingProvider {
705 provider: AiProvider::Local,
706 model: "hash-embed".to_string(),
707 dimensions: 8,
708 api_key: None,
709 };
710 let results = provider
711 .embed_sync(&["hello".to_string(), "world".to_string()])
712 .unwrap();
713 assert_eq!(results.len(), 2);
714 assert_eq!(results[0].len(), 8);
715 assert_eq!(results[1].len(), 8);
716 }
717
718 #[test]
719 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