Skip to content

Commit 22cb0ef

Browse files
committed
Add Embedding
1 parent 5d749ca commit 22cb0ef

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import Foundation
2+
3+
public protocol Embeddings {
4+
/// Embed search docs.
5+
func embedDocuments(texts: [String]) -> [[Float]]
6+
/// Embed query text.
7+
func embedQuery(text: String) -> [Float]
8+
}

0 commit comments

Comments
 (0)