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.', description: 'Override the config passed to the Agentflow.',
type: 'json', type: 'json',
optional: true, optional: true,
additionalParams: true additionalParams: true,
acceptVariable: true
}, },
{ {
label: 'Base URL', label: 'Base URL',

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -86,7 +86,8 @@ class Kendra_VectorStores implements INode {
description: 'Optional filter to apply when retrieving documents', description: 'Optional filter to apply when retrieving documents',
type: 'json', type: 'json',
optional: true, optional: true,
additionalParams: true additionalParams: true,
acceptVariable: true
} }
] ]
// Note: Kendra doesn't support MMR search, but keeping the structure consistent // 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', type: 'string',
description: 'search filter to apply on searchable attributes', description: 'search filter to apply on searchable attributes',
additionalParams: true, additionalParams: true,
optional: true optional: true,
acceptVariable: true
} }
] ]
this.outputs = [ this.outputs = [

View File

@ -100,7 +100,8 @@ class Milvus_VectorStores implements INode {
description: 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.', '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"', placeholder: 'doc=="a"',
additionalParams: true additionalParams: true,
acceptVariable: true
}, },
{ {
label: 'Top K', label: 'Top K',

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -80,7 +80,8 @@ class Upstash_VectorStores implements INode {
name: 'upstashMetadataFilter', name: 'upstashMetadataFilter',
type: 'string', type: 'string',
optional: true, optional: true,
additionalParams: true additionalParams: true,
acceptVariable: true
}, },
{ {
label: 'Top K', 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.', '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', type: 'string',
additionalParams: true, additionalParams: true,
optional: true optional: true,
acceptVariable: true
}, },
{ {
label: 'Sentences Before', label: 'Sentences Before',

View File

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

View File

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

View File

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