Skip to content

Commit

Permalink
refactor: remove duplicate Document model (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
realdavidvega authored May 3, 2023
1 parent f806e9d commit 746a44b
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 9 deletions.
3 changes: 0 additions & 3 deletions src/commonMain/kotlin/com/xebia/functional/domain/Document.kt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.xebia.functional.loaders

import com.xebia.functional.domain.Document
import com.xebia.functional.Document
import com.xebia.functional.textsplitters.BaseTextSplitter

interface BaseLoader {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.xebia.functional.loaders

import com.xebia.functional.domain.Document
import com.xebia.functional.Document
import com.xebia.functional.textsplitters.BaseTextSplitter
import okio.FileSystem
import okio.Path
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.xebia.functional.textsplitters

import com.xebia.functional.domain.Document
import com.xebia.functional.Document

interface BaseTextSplitter {
suspend fun splitText(text: String): List<String>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.xebia.functional.textsplitters

import com.xebia.functional.domain.Document
import com.xebia.functional.Document

suspend fun CharacterTextSplitter(
separator: String
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.xebia.functional.loaders

import com.xebia.functional.domain.Document
import com.xebia.functional.Document
import com.xebia.functional.textsplitters.CharacterTextSplitter
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.xebia.functional.textsplitters

import com.xebia.functional.domain.Document
import com.xebia.functional.Document
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe

Expand Down

0 comments on commit 746a44b

Please sign in to comment.