This commit is contained in:
jyong 2025-05-30 15:42:36 +08:00
parent 976b465e76
commit 631768ea1d
3 changed files with 39 additions and 1 deletions

View File

@ -155,4 +155,5 @@ class KnowledgeIndexNodeData(BaseNodeData):
"""
type: str = "knowledge-index"
chunk_structure: str
index_chunk_variable_selector: list[str]

View File

@ -61,7 +61,7 @@ class KnowledgeIndexNode(BaseNode[KnowledgeIndexNodeData]):
return NodeRunResult(
status=WorkflowNodeExecutionStatus.FAILED, inputs=variables, error="Chunks is required."
)
outputs = self._get_preview_output(dataset.chunk_structure, chunks)
outputs = self._get_preview_output(node_data.chunk_structure, chunks)
# retrieve knowledge
try:

View File

@ -0,0 +1,37 @@
"""add_pipeline_info_4
Revision ID: e4fb49a4fe86
Revises: c459994abfa8
Create Date: 2025-05-30 00:52:49.222558
"""
from alembic import op
import models as models
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = 'e4fb49a4fe86'
down_revision = 'c459994abfa8'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('datasource_providers', schema=None) as batch_op:
batch_op.alter_column('plugin_id',
existing_type=sa.UUID(),
type_=sa.TEXT(),
existing_nullable=False)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('datasource_providers', schema=None) as batch_op:
batch_op.alter_column('plugin_id',
existing_type=sa.TEXT(),
type_=sa.UUID(),
existing_nullable=False)
# ### end Alembic commands ###