diff --git a/Package.resolved b/Package.resolved index 62e409f..1dcb124 100644 --- a/Package.resolved +++ b/Package.resolved @@ -9,6 +9,15 @@ "version" : "1.20.1" } }, + { + "identity" : "feedkit", + "kind" : "remoteSourceControl", + "location" : "https://github.com/nmdias/FeedKit", + "state" : { + "revision" : "68493a33d862c33c9a9f67ec729b3b7df1b20ade", + "version" : "9.1.2" + } + }, { "identity" : "functions-swift", "kind" : "remoteSourceControl", diff --git a/Package.swift b/Package.swift index d51296b..4d384ac 100644 --- a/Package.swift +++ b/Package.swift @@ -27,8 +27,7 @@ let package = Package( .package(url: "https://github.com/ZachNagengast/similarity-search-kit.git", from: "0.0.11"), .package(url: "https://github.com/google/generative-ai-swift", .upToNextMajor(from: "0.4.4")), .package(url: "https://github.com/buhe/SwiftyNotion", .upToNextMajor(from: "0.1.2")), -// .package(url: "https://github.com/chojnac/NotionSwift", .upToNextMajor(from: "0.8.0")), -// .package(url: "https://github.com/buhe/llmfarm_core.swift", .branch("langchain")), + .package(url: "https://github.com/nmdias/FeedKit", .upToNextMajor(from: "9.1.2")), ], targets: [ // Targets are the basic building blocks of a package, defining a module or a test suite. @@ -45,8 +44,7 @@ let package = Package( .product(name: "SimilaritySearchKit", package: "similarity-search-kit", condition: .when(platforms: [.macOS, .iOS, .visionOS])), .product(name: "GoogleGenerativeAI", package: "generative-ai-swift"), .product(name: "SwiftyNotion", package: "SwiftyNotion"), -// .product(name: "NotionSwift", package: "NotionSwift"), -// .product(name: "llmfarm_core", package: "llmfarm_core.swift"), + .product(name: "FeedKit", package: "FeedKit"), ] ), diff --git a/Sources/LangChain/document_loaders/RSSLoader.swift b/Sources/LangChain/document_loaders/RSSLoader.swift new file mode 100644 index 0000000..c84bf66 --- /dev/null +++ b/Sources/LangChain/document_loaders/RSSLoader.swift @@ -0,0 +1,13 @@ +// +// File.swift +// +// +// Created by 顾艳华 on 2/10/24. +// + +import Foundation +import FeedKit + +public class RSSLoader { + +}