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/UI Bug fixes : Prompt Studio (#47)
Athul861967b05a08
diff --git a/frontend/src/components/custom-tools/add-llm-profile-modal/AddLlmProfileModal.jsx b/frontend/src/components/custom-tools/add-llm-profile-modal/AddLlmProfileModal.jsxindex d4c312fda..76d8d6d04 100644--- a/frontend/src/components/custom-tools/add-llm-profile-modal/AddLlmProfileModal.jsx+++ b/frontend/src/components/custom-tools/add-llm-profile-modal/AddLlmProfileModal.jsx@@ -32,6 +32,8 @@ function AddLlmProfileModal({setOpen,editLlmProfileId,setEditLlmProfileId,+ modalTitle,+ setModalTitle,}) {const [form] = Form.useForm();const [formDetails, setFormDetails] = useState({});@@ -88,6 +90,7 @@ function AddLlmProfileModal({});setEditLlmProfileId(null);+ setModalTitle("Add new LLM Profile");setActiveKey(false);}, [open]);@@ -360,8 +363,7 @@ function AddLlmProfileModal({<SpaceWrapper><div><Typography.Text className="add-cus-tool-header">- {editLlmProfileId?.length > 0 ? "Update" : "Add"} New LLM- Profile+ {modalTitle}</Typography.Text></div><div>@@ -534,6 +536,8 @@ AddLlmProfileModal.propTypes = {setOpen: PropTypes.func.isRequired,editLlmProfileId: PropTypes.string,setEditLlmProfileId: PropTypes.func.isRequired,+ modalTitle: PropTypes.string,+ setModalTitle: PropTypes.func.isRequired,};export { AddLlmProfileModal };diff --git a/frontend/src/components/custom-tools/manage-llm-profiles-modal/ManageLlmProfilesModal.jsx b/frontend/src/components/custom-tools/manage-llm-profiles-modal/ManageLlmProfilesModal.jsxindex 8aefc28f5..79c7a0e60 100644--- a/frontend/src/components/custom-tools/manage-llm-profiles-modal/ManageLlmProfilesModal.jsx+++ b/frontend/src/components/custom-tools/manage-llm-profiles-modal/ManageLlmProfilesModal.jsx@@ -7,6 +7,7 @@ function ManageLlmProfilesModal({setOpen,setOpenLlm,setEditLlmProfileId,+ setModalTitle,}) {return (<Modal@@ -22,6 +23,7 @@ function ManageLlmProfilesModal({setOpen={setOpen}setOpenLlm={setOpenLlm}setEditLlmProfileId={setEditLlmProfileId}+ setModalTitle={setModalTitle}/></Modal>);@@ -32,6 +34,7 @@ ManageLlmProfilesModal.propTypes = {setOpen: PropTypes.func.isRequired,setOpenLlm: PropTypes.func.isRequired,setEditLlmProfileId: PropTypes.func.isRequired,+ setModalTitle: PropTypes.func.isRequired,};export { ManageLlmProfilesModal };diff --git a/frontend/src/components/custom-tools/manage-llm-profiles/ManageLlmProfiles.jsx b/frontend/src/components/custom-tools/manage-llm-profiles/ManageLlmProfiles.jsxindex b538986ab..47076df0a 100644--- a/frontend/src/components/custom-tools/manage-llm-profiles/ManageLlmProfiles.jsx+++ b/frontend/src/components/custom-tools/manage-llm-profiles/ManageLlmProfiles.jsx@@ -58,7 +58,12 @@ const columns = [align: "center",},];-function ManageLlmProfiles({ setOpen, setOpenLlm, setEditLlmProfileId }) {+function ManageLlmProfiles({+ setOpen,+ setOpenLlm,+ setEditLlmProfileId,+ setModalTitle,+}) {const [rows, setRows] = useState([]);const axiosPrivate = useAxiosPrivate();const { sessionDetails } = useSessionStore();@@ -144,6 +149,7 @@ function ManageLlmProfiles({ setOpen, setOpenLlm, setEditLlmProfileId }) {const handleEdit = (id) => {setEditLlmProfileId(id);+ setModalTitle("Manage LLM profile");handleAddNewLlm();};@@ -193,6 +199,7 @@ function ManageLlmProfiles({ setOpen, setOpenLlm, setEditLlmProfileId }) {dataSource={rows}size="small"bordered+ max-width="100%"pagination={{ pageSize: 10 }}/></div>@@ -214,6 +221,7 @@ ManageLlmProfiles.propTypes = {setOpen: PropTypes.func.isRequired,setOpenLlm: PropTypes.func.isRequired,setEditLlmProfileId: PropTypes.func.isRequired,+ setModalTitle: PropTypes.func.isRequired,};export { ManageLlmProfiles };diff --git a/frontend/src/components/custom-tools/tool-ide/ToolIde.jsx b/frontend/src/components/custom-tools/tool-ide/ToolIde.jsxindex 0f231fe02..165eb008d 100644--- a/frontend/src/components/custom-tools/tool-ide/ToolIde.jsx+++ b/frontend/src/components/custom-tools/tool-ide/ToolIde.jsx@@ -28,6 +28,7 @@ function ToolIde() {const [isGenerateIndexOpen, setIsGenerateIndexOpen] = useState(false);const [isGeneratingIndex, setIsGeneratingIndex] = useState(false);const [generateIndexResult, setGenerateIndexResult] = useState("");+ const [modalTitle, setModalTitle] = useState("");const { details, updateCustomTool, disableLlmOrDocChange, selectedDoc } =useCustomToolStore();const { sessionDetails } = useSessionStore();@@ -217,12 +218,15 @@ function ToolIde() {setOpen={setOpenManageLlmModal}setOpenLlm={setOpenAddLlmModal}setEditLlmProfileId={setEditLlmProfileId}+ setModalTitle={setModalTitle}/><AddLlmProfileModalopen={openAddLlmModal}setOpen={setOpenAddLlmModal}editLlmProfileId={editLlmProfileId}setEditLlmProfileId={setEditLlmProfileId}+ modalTitle={modalTitle}+ setModalTitle={setModalTitle}/><Modalopen={isGenerateIndexOpen}