Skip to content

Commit

Permalink
Fix broken tokenizer dependencies in main (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
raulraja authored May 19, 2023
1 parent f04a8ab commit 6f39b9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions integrations/pdf/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ java {

dependencies {
implementation(projects.xefCore)
implementation(projects.tokenizer)
implementation(libs.apache.pdf.box)
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.xebia.functional.xef.pdf

import com.xebia.functional.tokenizer.ModelType
import com.xebia.functional.xef.agents.ParameterlessAgent
import com.xebia.functional.xef.llm.openai.LLMModel
import com.xebia.functional.xef.loaders.BaseLoader
import com.xebia.functional.xef.textsplitters.BaseTextSplitter
import com.xebia.functional.xef.textsplitters.TokenTextSplitter
Expand All @@ -11,7 +11,7 @@ import java.io.File

fun pdf(
file: File,
splitter: BaseTextSplitter = TokenTextSplitter(modelName = LLMModel.GPT_3_5_TURBO.name, chunkSize = 100, chunkOverlap = 50)
splitter: BaseTextSplitter = TokenTextSplitter(modelType = ModelType.GPT_3_5_TURBO, chunkSize = 100, chunkOverlap = 50)
): ParameterlessAgent<List<String>> =
ParameterlessAgent(name = "Get PDF content", description = "Get PDF Content of $file") {
val loader = PDFLoader(file)
Expand Down

0 comments on commit 6f39b9e

Please sign in to comment.