Skip to content

Commit dec8584

Browse files
committed
Make VectorStore public
1 parent 7a37f6c commit dec8584

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tool/Sources/LangChain/VectorStore/VectorStore.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import Foundation
22

3-
protocol VectorStore {
3+
public protocol VectorStore {
44
func add(_ documents: [EmbeddedDocument]) async throws
55
func set(_ documents: [EmbeddedDocument]) async throws
66
func clear() async throws
77
func searchWithDistance(embeddings: [Float], count: Int) async throws
88
-> [(document: Document, distance: Float)]
99
}
1010

11-
extension VectorStore {
11+
public extension VectorStore {
1212
func search(embeddings: [Float], count: Int) async throws -> [Document] {
1313
try await searchWithDistance(embeddings: embeddings, count: count).map { $0.document }
1414
}

0 commit comments

Comments
 (0)