mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-08 20:19:03 +08:00
r2
This commit is contained in:
parent
976b465e76
commit
631768ea1d
@ -155,4 +155,5 @@ class KnowledgeIndexNodeData(BaseNodeData):
|
||||
"""
|
||||
|
||||
type: str = "knowledge-index"
|
||||
chunk_structure: str
|
||||
index_chunk_variable_selector: list[str]
|
||||
|
@ -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:
|
||||
|
@ -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 ###
|
Loading…
x
Reference in New Issue
Block a user