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:
parent
6e2f2df269
commit
6885c38d18
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -173,7 +173,8 @@ class Retriever_Tools implements INode {
|
|||
hint: {
|
||||
label: 'What can you filter?',
|
||||
value: howToUse
|
||||
}
|
||||
},
|
||||
acceptVariable: true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,7 +74,8 @@ class Chroma_VectorStores implements INode {
|
|||
name: 'chromaMetadataFilter',
|
||||
type: 'json',
|
||||
optional: true,
|
||||
additionalParams: true
|
||||
additionalParams: true,
|
||||
acceptVariable: true
|
||||
},
|
||||
{
|
||||
label: 'Top K',
|
||||
|
|
|
|||
|
|
@ -96,7 +96,8 @@ class Couchbase_VectorStores implements INode {
|
|||
name: 'couchbaseMetadataFilter',
|
||||
type: 'json',
|
||||
optional: true,
|
||||
additionalParams: true
|
||||
additionalParams: true,
|
||||
acceptVariable: true
|
||||
},
|
||||
{
|
||||
label: 'Top K',
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 = [
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -90,7 +90,8 @@ class MongoDBAtlas_VectorStores implements INode {
|
|||
name: 'mongoMetadataFilter',
|
||||
type: 'json',
|
||||
optional: true,
|
||||
additionalParams: true
|
||||
additionalParams: true,
|
||||
acceptVariable: true
|
||||
},
|
||||
{
|
||||
label: 'Top K',
|
||||
|
|
|
|||
|
|
@ -97,7 +97,8 @@ class Pinecone_VectorStores implements INode {
|
|||
name: 'pineconeMetadataFilter',
|
||||
type: 'json',
|
||||
optional: true,
|
||||
additionalParams: true
|
||||
additionalParams: true,
|
||||
acceptVariable: true
|
||||
},
|
||||
{
|
||||
label: 'Top K',
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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 = [
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -80,7 +80,8 @@ class Upstash_VectorStores implements INode {
|
|||
name: 'upstashMetadataFilter',
|
||||
type: 'string',
|
||||
optional: true,
|
||||
additionalParams: true
|
||||
additionalParams: true,
|
||||
acceptVariable: true
|
||||
},
|
||||
{
|
||||
label: 'Top K',
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -120,7 +120,8 @@ class Weaviate_VectorStores implements INode {
|
|||
name: 'weaviateFilter',
|
||||
type: 'json',
|
||||
additionalParams: true,
|
||||
optional: true
|
||||
optional: true,
|
||||
acceptVariable: true
|
||||
}
|
||||
]
|
||||
addMMRInputParams(this.inputs)
|
||||
|
|
|
|||
|
|
@ -69,7 +69,8 @@ class Zep_VectorStores implements INode {
|
|||
name: 'zepMetadataFilter',
|
||||
type: 'json',
|
||||
optional: true,
|
||||
additionalParams: true
|
||||
additionalParams: true,
|
||||
acceptVariable: true
|
||||
},
|
||||
{
|
||||
label: 'Embedding Dimension',
|
||||
|
|
|
|||
|
|
@ -59,7 +59,8 @@ class Zep_CloudVectorStores implements INode {
|
|||
name: 'zepMetadataFilter',
|
||||
type: 'json',
|
||||
optional: true,
|
||||
additionalParams: true
|
||||
additionalParams: true,
|
||||
acceptVariable: true
|
||||
},
|
||||
{
|
||||
label: 'Top K',
|
||||
|
|
|
|||
Loading…
Reference in New Issue