mirror of
https://github.com/run-llama/LlamaIndexTS.git
synced 2026-07-16 07:14:29 -04:00
feat: Add files_via_content example for LlamaCloud retrieval
This commit is contained in:
committed by
Marcus Schiesser
parent
e2a0876ddd
commit
2486bd8f41
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@llamaindex/examples": patch
|
||||
---
|
||||
|
||||
Add files_via_content example for LlamaCloud retrieval
|
||||
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user