From 2486bd8f416257c23bf0632088253295bbee7bdf Mon Sep 17 00:00:00 2001 From: Marcus Schiesser <mail@marcusschiesser.de> Date: Thu, 24 Oct 2024 15:44:50 +0700 Subject: [PATCH] feat: Add files_via_content example for LlamaCloud retrieval --- .changeset/thick-ways-visit.md | 5 +++++ examples/cloud/query.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/thick-ways-visit.md diff --git a/.changeset/thick-ways-visit.md b/.changeset/thick-ways-visit.md new file mode 100644 index 000000000..92ebbab90 --- /dev/null +++ b/.changeset/thick-ways-visit.md @@ -0,0 +1,5 @@ +--- +"@llamaindex/examples": patch +--- + +Add files_via_content example for LlamaCloud retrieval diff --git a/examples/cloud/query.ts b/examples/cloud/query.ts index 74a76c118..f89fb4c81 100644 --- a/examples/cloud/query.ts +++ b/examples/cloud/query.ts @@ -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 }); -- GitLab