Chore/Accept Dynamic Variable From Metadata Filter (#5203)

* add acceptVariable property to vector store metadata filter

* add accepVariadd acceptVariable property to other json fields
This commit is contained in:
Henry Heng 2025-09-13 11:28:53 +01:00 committed by GitHub
parent 6e2f2df269
commit 6885c38d18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
19 changed files with 38 additions and 19 deletions

View File

@ -69,7 +69,8 @@ class AgentAsTool_Tools implements INode {
description: 'Override the config passed to the Agentflow.',
type: 'json',
optional: true,
additionalParams: true
additionalParams: true,
acceptVariable: true
},
{
label: 'Base URL',

View File

@ -69,7 +69,8 @@ class ChatflowTool_Tools implements INode {
description: 'Override the config passed to the Chatflow.',
type: 'json',
optional: true,
additionalParams: true
additionalParams: true,
acceptVariable: true
},
{
label: 'Base URL',

View File

@ -46,7 +46,8 @@ class OpenAPIToolkit_Tools implements INode {
type: 'json',
description: 'Request headers to be sent with the API request. For example, {"Authorization": "Bearer token"}',
additionalParams: true,
optional: true
optional: true,
acceptVariable: true
},
{
label: 'Remove null parameters',

View File

@ -173,7 +173,8 @@ class Retriever_Tools implements INode {
hint: {
label: 'What can you filter?',
value: howToUse
}
},
acceptVariable: true
}
]
}

View File

@ -74,7 +74,8 @@ class Chroma_VectorStores implements INode {
name: 'chromaMetadataFilter',
type: 'json',
optional: true,
additionalParams: true
additionalParams: true,
acceptVariable: true
},
{
label: 'Top K',

View File

@ -96,7 +96,8 @@ class Couchbase_VectorStores implements INode {
name: 'couchbaseMetadataFilter',
type: 'json',
optional: true,
additionalParams: true
additionalParams: true,
acceptVariable: true
},
{
label: 'Top K',

View File

@ -86,7 +86,8 @@ class Kendra_VectorStores implements INode {
description: 'Optional filter to apply when retrieving documents',
type: 'json',
optional: true,
additionalParams: true
additionalParams: true,
acceptVariable: true
}
]
// Note: Kendra doesn't support MMR search, but keeping the structure consistent

View File

@ -89,7 +89,8 @@ class MeilisearchRetriever_node implements INode {
type: 'string',
description: 'search filter to apply on searchable attributes',
additionalParams: true,
optional: true
optional: true,
acceptVariable: true
}
]
this.outputs = [

View File

@ -100,7 +100,8 @@ class Milvus_VectorStores implements INode {
description:
'Filter data with a simple string query. Refer Milvus <a target="_blank" href="https://milvus.io/blog/2022-08-08-How-to-use-string-data-to-empower-your-similarity-search-applications.md#Hybrid-search">docs</a> for more details.',
placeholder: 'doc=="a"',
additionalParams: true
additionalParams: true,
acceptVariable: true
},
{
label: 'Top K',

View File

@ -90,7 +90,8 @@ class MongoDBAtlas_VectorStores implements INode {
name: 'mongoMetadataFilter',
type: 'json',
optional: true,
additionalParams: true
additionalParams: true,
acceptVariable: true
},
{
label: 'Top K',

View File

@ -97,7 +97,8 @@ class Pinecone_VectorStores implements INode {
name: 'pineconeMetadataFilter',
type: 'json',
optional: true,
additionalParams: true
additionalParams: true,
acceptVariable: true
},
{
label: 'Top K',

View File

@ -194,7 +194,8 @@ class Postgres_VectorStores implements INode {
name: 'pgMetadataFilter',
type: 'json',
additionalParams: true,
optional: true
optional: true,
acceptVariable: true
},
{
label: 'Content Column Name',

View File

@ -171,7 +171,8 @@ class Qdrant_VectorStores implements INode {
description: 'Only return points which satisfy the conditions',
type: 'json',
additionalParams: true,
optional: true
optional: true,
acceptVariable: true
}
]
this.outputs = [

View File

@ -79,7 +79,8 @@ class Supabase_VectorStores implements INode {
name: 'supabaseMetadataFilter',
type: 'json',
optional: true,
additionalParams: true
additionalParams: true,
acceptVariable: true
},
{
label: 'Supabase RPC Filter',

View File

@ -80,7 +80,8 @@ class Upstash_VectorStores implements INode {
name: 'upstashMetadataFilter',
type: 'string',
optional: true,
additionalParams: true
additionalParams: true,
acceptVariable: true
},
{
label: 'Top K',

View File

@ -65,7 +65,8 @@ class Vectara_VectorStores implements INode {
'Filter to apply to Vectara metadata. Refer to the <a target="_blank" href="https://docs.flowiseai.com/vector-stores/vectara">documentation</a> on how to use Vectara filters with Flowise.',
type: 'string',
additionalParams: true,
optional: true
optional: true,
acceptVariable: true
},
{
label: 'Sentences Before',

View File

@ -120,7 +120,8 @@ class Weaviate_VectorStores implements INode {
name: 'weaviateFilter',
type: 'json',
additionalParams: true,
optional: true
optional: true,
acceptVariable: true
}
]
addMMRInputParams(this.inputs)

View File

@ -69,7 +69,8 @@ class Zep_VectorStores implements INode {
name: 'zepMetadataFilter',
type: 'json',
optional: true,
additionalParams: true
additionalParams: true,
acceptVariable: true
},
{
label: 'Embedding Dimension',

View File

@ -59,7 +59,8 @@ class Zep_CloudVectorStores implements INode {
name: 'zepMetadataFilter',
type: 'json',
optional: true,
additionalParams: true
additionalParams: true,
acceptVariable: true
},
{
label: 'Top K',