diff --git a/.changeset/thick-ways-visit.md b/.changeset/thick-ways-visit.md new file mode 100644 index 0000000000000000000000000000000000000000..92ebbab90ddbea4caa85e9caac47869662bb02bf --- /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 74a76c118a03b1228eb5a49fa737617160c8bbba..f89fb4c816e9f7542a07cd5a465c18804e4e6e8d 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 });