updates per PR comments
This commit is contained in:
parent
9a63d30333
commit
c93b01e821
|
|
@ -248,7 +248,8 @@ class VectaraChain_Chains implements INode {
|
|||
lexicalInterpolationConfig: { lambda: vectaraFilter?.lambda ?? 0.025 }
|
||||
}))
|
||||
|
||||
const mmrRerankerId = 272725718 // Vectara reranker ID for MMR
|
||||
// Vectara reranker ID for MMR (https://docs.vectara.com/docs/api-reference/search-apis/reranking#maximal-marginal-relevance-mmr-reranker)
|
||||
const mmrRerankerId = 272725718
|
||||
const mmrEnabled = vectaraFilter?.mmrConfig?.enabled
|
||||
|
||||
const data = {
|
||||
|
|
|
|||
|
|
@ -110,7 +110,10 @@ class Vectara_VectorStores implements INode {
|
|||
{
|
||||
label: 'MMR diversity bias',
|
||||
name: 'mmrDiversityBias',
|
||||
description: 'The diversity bias to use for MMR. Defaults to 0 (MMR disabled)',
|
||||
description:
|
||||
'The diversity bias to use for MMR. This is a value between 0.0 and 1.0' +
|
||||
'Values closer to 1.0 optimize for the most diverse results.' +
|
||||
'Defaults to 0 (MMR disabled)',
|
||||
placeholder: '0.0',
|
||||
type: 'number',
|
||||
additionalParams: true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue