From 3ccfb28352b45e8c84770c1af6df66710bd0a440 Mon Sep 17 00:00:00 2001 From: Chris Paganon <71736642+chris-paganon@users.noreply.github.com> Date: Wed, 17 Jul 2024 14:59:28 -0400 Subject: [PATCH] docs: fix deprecated similarityTopK for retriever (#1049) --- apps/docs/docs/modules/retriever.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/docs/docs/modules/retriever.md b/apps/docs/docs/modules/retriever.md index a7ac81ab1..dce7b4bad 100644 --- a/apps/docs/docs/modules/retriever.md +++ b/apps/docs/docs/modules/retriever.md @@ -8,7 +8,7 @@ A retriever in LlamaIndex is what is used to fetch `Node`s from an index using a ```typescript const retriever = vector_index.asRetriever(); -retriever.similarityTopK = 3; +retriever.topK = { TEXT: 3, IMAGE: 1 }; // Fetch nodes! const nodesWithScore = await retriever.retrieve({ query: "query string" }); -- GitLab