恢复GE版本为0.18,生成SNIPPET后自动生成rag_text流程
This commit is contained in:
@ -232,6 +232,15 @@ class TableProfilingJobRequest(BaseModel):
|
||||
None,
|
||||
description="Miscellaneous execution flags applied across pipeline steps.",
|
||||
)
|
||||
workspace_id: Optional[int] = Field(
|
||||
None,
|
||||
ge=0,
|
||||
description="Optional workspace identifier forwarded to snippet_alias callback for RAG ingestion.",
|
||||
)
|
||||
rag_item_type: Optional[str] = Field(
|
||||
"SNIPPET",
|
||||
description="Optional RAG item type forwarded to snippet_alias callback.",
|
||||
)
|
||||
|
||||
|
||||
class TableProfilingJobAck(BaseModel):
|
||||
@ -247,7 +256,7 @@ class TableSnippetUpsertRequest(BaseModel):
|
||||
ge=0,
|
||||
description="Version timestamp aligned with the pipeline (yyyyMMddHHmmss as integer).",
|
||||
)
|
||||
rag_workspace_id: Optional[int] = Field(
|
||||
workspace_id: Optional[int] = Field(
|
||||
None,
|
||||
ge=0,
|
||||
description="Optional workspace identifier for RAG ingestion; when provided and action_type=snippet_alias "
|
||||
@ -329,6 +338,24 @@ class TableSnippetUpsertRequest(BaseModel):
|
||||
ge=0,
|
||||
description="Optional execution duration in milliseconds.",
|
||||
)
|
||||
|
||||
|
||||
class TableSnippetRagIngestRequest(BaseModel):
|
||||
table_id: int = Field(..., ge=1, description="Unique identifier for the table.")
|
||||
version_ts: int = Field(
|
||||
...,
|
||||
ge=0,
|
||||
description="Version timestamp aligned with the pipeline (yyyyMMddHHmmss as integer).",
|
||||
)
|
||||
workspace_id: int = Field(..., ge=0, description="Workspace id used when pushing snippets to RAG.")
|
||||
rag_item_type: Optional[str] = Field(
|
||||
"SNIPPET",
|
||||
description="Optional RAG item type used when pushing snippets to RAG. Defaults to 'SNIPPET'.",
|
||||
)
|
||||
|
||||
|
||||
class TableSnippetRagIngestResponse(BaseModel):
|
||||
rag_item_ids: List[int] = Field(..., description="List of ingested rag_item_ids.")
|
||||
result_checksum: Optional[str] = Field(
|
||||
None,
|
||||
description="Optional checksum for the result payload (e.g., MD5).",
|
||||
|
||||
Reference in New Issue
Block a user