We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e17856c + 69463a2 commit 19ee8bdCopy full SHA for 19ee8bd
core/context/retrieval/retrieval.ts
@@ -37,7 +37,7 @@ export async function retrieveContextItemsFromEmbeddings(
37
const nFinal =
38
options?.nFinal ??
39
Math.min(DEFAULT_N_FINAL, contextLength / tokensPerSnippet / 2);
40
- const useReranking = !!extras.reranker;
+ const useReranking = options?.useReranking ?? !!extras.reranker;
41
const nRetrieve = useReranking ? options?.nRetrieve || 2 * nFinal : nFinal;
42
43
const branches = (await Promise.race([
0 commit comments