weaviate-client
Version:
JS/TS client for Weaviate
28 lines (27 loc) • 791 B
JavaScript
export default () => {
return {
sum: (targetVectors) => {
return { combination: 'sum', targetVectors };
},
average: (targetVectors) => {
return { combination: 'average', targetVectors };
},
minimum: (targetVectors) => {
return { combination: 'minimum', targetVectors };
},
relativeScore: (weights) => {
return {
combination: 'relative-score',
targetVectors: Object.keys(weights),
weights,
};
},
manualWeights: (weights) => {
return {
combination: 'manual-weights',
targetVectors: Object.keys(weights),
weights,
};
},
};
};