Weaviate - expose Hybrid Search (#4127)

Hybrid Search for Weaviate
This commit is contained in:
Gene Ruebsamen
2025-03-13 14:30:24 +01:00
committed by GitHub
parent 4130156397
commit 829d2b1597
2 changed files with 22 additions and 2 deletions
@@ -26,7 +26,7 @@ class Weaviate_VectorStores implements INode {
constructor() {
this.label = 'Weaviate'
this.name = 'weaviate'
this.version = 3.0
this.version = 4.0
this.type = 'Weaviate'
this.icon = 'weaviate.png'
this.category = 'Vector Stores'
@@ -124,6 +124,16 @@ class Weaviate_VectorStores implements INode {
}
]
addMMRInputParams(this.inputs)
this.inputs.push({
label: 'Alpha (for Hybrid Search)',
name: 'alpha',
description:
'Number between 0 and 1 that determines the weighting of keyword (BM25) portion of the hybrid search. A value of 1 is a pure vector search, while 0 is a pure keyword search.',
placeholder: '1',
type: 'number',
additionalParams: true,
optional: true
})
this.outputs = [
{
label: 'Weaviate Retriever',