From 64f8567a93a577c43a37c29e6948eaabd2587670 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=CC=81=20Carlos=20Montan=CC=83ez?= Date: Tue, 5 Sep 2023 15:15:11 +0200 Subject: [PATCH] updated movie example --- .../xebia/functional/xef/conversation/serialization/Movie.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/kotlin/src/main/kotlin/com/xebia/functional/xef/conversation/serialization/Movie.kt b/examples/kotlin/src/main/kotlin/com/xebia/functional/xef/conversation/serialization/Movie.kt index 72028b29a..c30c722ef 100644 --- a/examples/kotlin/src/main/kotlin/com/xebia/functional/xef/conversation/serialization/Movie.kt +++ b/examples/kotlin/src/main/kotlin/com/xebia/functional/xef/conversation/serialization/Movie.kt @@ -2,7 +2,6 @@ package com.xebia.functional.xef.conversation.serialization import com.xebia.functional.xef.conversation.Conversation import com.xebia.functional.xef.conversation.llm.openai.OpenAI -import com.xebia.functional.xef.conversation.llm.openai.OpenAIEmbeddings import com.xebia.functional.xef.prompt.Prompt import com.xebia.functional.xef.store.LocalVectorStore import kotlinx.serialization.Serializable @@ -15,7 +14,7 @@ suspend fun main() { // val openAI = OpenAI(host = "http://localhost:8081/") val model = openAI.DEFAULT_SERIALIZATION - val scope = Conversation(LocalVectorStore(OpenAIEmbeddings(openAI.DEFAULT_EMBEDDING))) + val scope = Conversation(LocalVectorStore(openAI.DEFAULT_EMBEDDING)) model.prompt( Prompt("Please provide a movie title, genre and director for the Inception movie"),