Skip to content

Commit

Permalink
updated movie example
Browse files Browse the repository at this point in the history
  • Loading branch information
Montagon committed Sep 5, 2023
1 parent 378db71 commit 64f8567
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"),
Expand Down

0 comments on commit 64f8567

Please sign in to comment.