feat: Add files_via_content example for LlamaCloud retrieval

This commit is contained in:
Marcus Schiesser
2024-10-24 15:44:50 +07:00
committed by Marcus Schiesser
parent e2a0876ddd
commit 2486bd8f41
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@llamaindex/examples": patch
---
Add files_via_content example for LlamaCloud retrieval
+2 -1
View File
@@ -12,7 +12,8 @@ async function main() {
});
const queryEngine = index.asQueryEngine({
similarityTopK: 5,
// retrieve the whole content of a file instead of just chunks of the file
retrieval_mode: "files_via_content",
});
const rl = readline.createInterface({ input, output });