LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
[Fix] Removed tooltip message for highlight not supported (#1070)
jagadeeswaran-zipstack538a83d196a4
diff --git a/frontend/src/components/custom-tools/document-manager/DocumentManager.jsx b/frontend/src/components/custom-tools/document-manager/DocumentManager.jsxindex 7ae0663a9..7ec85eb5e 100644--- a/frontend/src/components/custom-tools/document-manager/DocumentManager.jsx+++ b/frontend/src/components/custom-tools/document-manager/DocumentManager.jsx@@ -380,7 +380,7 @@ function DocumentManager({ generateIndex, handleUpdateTool, handleDocChange }) {) : null}</div><div>- <Tooltip title="Manage Documents">+ <Tooltip title="Manage Document Variants"><ButtonclassName="doc-manager-btn"onClick={() => setOpenManageDocsModal(true)}diff --git a/frontend/src/components/custom-tools/manage-docs-modal/ManageDocsModal.jsx b/frontend/src/components/custom-tools/manage-docs-modal/ManageDocsModal.jsxindex 38c8c82a3..f739dbff9 100644--- a/frontend/src/components/custom-tools/manage-docs-modal/ManageDocsModal.jsx+++ b/frontend/src/components/custom-tools/manage-docs-modal/ManageDocsModal.jsx@@ -307,7 +307,7 @@ function ManageDocsModal({const columns = [{- title: "Document",+ title: "Document Variants",dataIndex: "document",key: "document",},@@ -663,7 +663,7 @@ function ManageDocsModal({<SpaceWrapper><Space><Typography.Text className="add-cus-tool-header">- Manage Documents+ Manage Document Variants</Typography.Text></Space><div>diff --git a/frontend/src/components/custom-tools/output-for-doc-modal/OutputForDocModal.jsx b/frontend/src/components/custom-tools/output-for-doc-modal/OutputForDocModal.jsxindex dcd55504e..975a41b23 100644--- a/frontend/src/components/custom-tools/output-for-doc-modal/OutputForDocModal.jsx+++ b/frontend/src/components/custom-tools/output-for-doc-modal/OutputForDocModal.jsx@@ -300,7 +300,7 @@ function OutputForDocModal({const columns = [{- title: "Document",+ title: "Document Variants",dataIndex: "document",key: "document",},diff --git a/frontend/src/components/custom-tools/prompt-card/PromptCardItems.jsx b/frontend/src/components/custom-tools/prompt-card/PromptCardItems.jsxindex 39cb8e27c..2a62d4600 100644--- a/frontend/src/components/custom-tools/prompt-card/PromptCardItems.jsx+++ b/frontend/src/components/custom-tools/prompt-card/PromptCardItems.jsx@@ -8,6 +8,7 @@ import {Row,Select,Space,+ Tag,Typography,} from "antd";import { useEffect, useRef, useState } from "react";@@ -251,6 +252,22 @@ function PromptCardItems({</Space></Button></Space>+ <Space>+ {details?.enable_highlight &&+ ["json", "table", "record"].includes(enforceType) && (+ <Tag+ color="red"+ style={{+ whiteSpace: "normal",+ wordWrap: "break-word",+ minWidth: "200px",+ }}+ >+ Highlighting is not supported when enforce type is{" "}+ {enforceType}+ </Tag>+ )}+ </Space><Space>{(enforceType === TABLE_ENFORCE_TYPE ||enforceType === RECORD_ENFORCE_TYPE) &&diff --git a/frontend/src/components/custom-tools/prompt-card/PromptOutput.jsx b/frontend/src/components/custom-tools/prompt-card/PromptOutput.jsxindex e0d27c58c..deebd36d0 100644--- a/frontend/src/components/custom-tools/prompt-card/PromptOutput.jsx+++ b/frontend/src/components/custom-tools/prompt-card/PromptOutput.jsx@@ -84,6 +84,9 @@ function PromptOutput({const { generatePromptOutputKey } = usePromptOutput();const isTableExtraction =enforceType === TABLE_ENFORCE_TYPE || enforceType === RECORD_ENFORCE_TYPE;+ const noHighlightEnforceType = !["json", "table", "record"].includes(+ enforceType+ );const tooltipContent = (adapterConf) => (<div>{Object.entries(adapterConf)?.map(([key, value]) => (@@ -204,7 +207,7 @@ function PromptOutput({transition={{ duration: 0.5, ease: "linear" }}className={`prompt-card-llm ${details?.enable_highlight &&- enforceType !== "json" &&+ noHighlightEnforceType &&selectedHighlight?.highlightedPrompt === promptId &&selectedHighlight?.highlightedProfile === profileId &&"highlighted-prompt-cell"@@ -212,9 +215,9 @@ function PromptOutput({><Tooltiptitle={- details?.enable_highlight && enforceType !== "json"- ? "Click to highlight"- : "Highlighting is not supported when enforce type is JSON"+ details?.enable_highlight &&+ noHighlightEnforceType &&+ "Click to highlight"}><Col