Skip to content
Snippets Groups Projects
Unverified Commit 3ccfb283 authored by Chris Paganon's avatar Chris Paganon Committed by GitHub
Browse files

docs: fix deprecated similarityTopK for retriever (#1049)

parent 325aa51e
No related branches found
No related tags found
No related merge requests found
......@@ -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" });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment