🐛 small fixes to reranking
This commit is contained in:
parent
34ee9d456f
commit
083bcc2d12
2 changed files with 3 additions and 2 deletions
|
|
@ -12,6 +12,7 @@ import {
|
|||
IContextProvider,
|
||||
IdeType,
|
||||
ModelDescription,
|
||||
Reranker,
|
||||
RerankerDescription,
|
||||
SerializedContinueConfig,
|
||||
SlashCommand,
|
||||
|
|
@ -285,7 +286,7 @@ async function intermediateToFinalConfig(
|
|||
}
|
||||
|
||||
// Reranker
|
||||
if ((config.reranker as RerankerDescription | undefined)?.params) {
|
||||
if (!(config.reranker as Reranker | undefined)?.rerank) {
|
||||
const { name, params } = config.reranker as RerankerDescription;
|
||||
const rerankerClass = AllRerankers[name];
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ export const DEFAULT_AUTOCOMPLETE_OPTS: TabAutocompleteOptions = {
|
|||
};
|
||||
|
||||
export const RETRIEVAL_PARAMS = {
|
||||
rerankThreshold: 0.5,
|
||||
rerankThreshold: 0.3,
|
||||
nFinal: 10,
|
||||
nRetrieve: 20,
|
||||
bm25Threshold: -2.5,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue