We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d749ca commit 22cb0efCopy full SHA for 22cb0ef
1 file changed
Tool/Sources/LangChain/Embedding/Embedding.swift
@@ -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