Skip to content

Commit aa17cce

Browse files
seyeong-hancmodi-meta
authored andcommitted
fix: read function from File and Rag utils
1 parent 9f39e7f commit aa17cce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/android_app/app/src/main/java/com/example/llamastackandroiddemo/ExampleLlamaStackLocalInference.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,9 @@ class ExampleLlamaStackLocalInference(
232232
conversationHistory.get(conversationHistory.size - 1).getText()
233233
)
234234

235-
val text = readFileFromURI(Uri.parse(messagesAndDocuments.second[0]), ctx)
235+
val text = FileUtils.readFileFromURI(Uri.parse(messagesAndDocuments.second[0]), ctx)
236236
val vectorDbId = runBlocking {
237-
storeAndEmbedDocument(
237+
LocalRagUtils.storeAndEmbedDocument(
238238
client,
239239
sentenceEmbeddingModel,
240240
text,
@@ -261,7 +261,7 @@ class ExampleLlamaStackLocalInference(
261261
)
262262
.putAdditionalProperty(
263263
"ragInstruction",
264-
JsonValue.from(localRagSystemPrompt())
264+
JsonValue.from(LocalRagUtils.getSystemPromptForLocalRAG())
265265
)
266266
.build()
267267
)
@@ -458,4 +458,4 @@ class ExampleLlamaStackLocalInference(
458458

459459
}
460460

461-
}
461+
}

0 commit comments

Comments
 (0)