Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GenAI Data Synthesis for Tabular Data Node (#315)
* TabularDataNode supports Replace and Extend for AiGen (#312) * Testing Values * Fixed typing issue with Models in fromModelId * TabularDataNode now supports table generation. modified: src/AiPopover.tsx Added support for table replacement and future support for extension. modified: src/TabularDataNode.tsx Added the AiPopover button and functionality for table replacement. modified: src/backend/ai.ts Added specific prompts and decoding for markdown table generation. new file: src/backend/tableUtils.ts Seperated the parsing for tables into a seperate utility file for better organization and future extensibility. * Fixed typing issue with Models in fromModelId * TabularDataNode now supports table generation. modified: src/AiPopover.tsx Added support for table replacement and future support for extension. modified: src/TabularDataNode.tsx Added the AiPopover button and functionality for table replacement. modified: src/backend/ai.ts Added specific prompts and decoding for markdown table generation. new file: src/backend/tableUtils.ts Seperated the parsing for tables into a seperate utility file for better organization and future extensibility. Testing Values * Added Extend Functionality to Table Popover. modified: src/AiPopover.tsx Removed unnecessary import. Changed handleCommandFill to work with autofillTable function in ai.ts. modified: src/TabularDataNode.tsx Removed Skeleton from Popover. Changed addMultipleRows such that it now renders the new rows correctly and removes the blank row. modified: src/backend/ai.ts Added autofillTable function and changed decodeTable so that they are flexible with both proper and improper markdown tables. Added new system message prompt specific to autofillTable. Removed unneccessary log statements. removed: src/backend/utils.ts Removed change. * Added "add column" prompt & button in TablePopover modified: src/AiPopover.tsx Added handleGenerateColumn so that a column can be generated given a prompt. Added changes to the TablePopover UI Now extend is diveded into AddRow and AddColumn sections. modified: src/TabularDataNode.tsx Modified addColumns so that its safer. Added optional pass of rowValue to support generateColumn. modified: src/backend/ai.ts Added generateColumn and it's corresponding system message. Cleaned up some comments and added missing commas. * Generate Columns now considers item-by-item processing of the rows for generating the new column values. modified: src/AiPopover.tsx Fixed the key issue for onAddColumn. modified: src/TabularDataNode.tsx Changed addColumns to filter out previously added columns. modified: src/backend/ai.ts Changed generateColumns to process item-by-item to generate new columns. * Fix bugs. Change OpenAI small model for GenAI features to GPT-4o. * Update package version * Remove gen diverse outputs switch in genAI for table --------- Co-authored-by: Kraft-Cheese <114844630+Kraft-Cheese@users.noreply.github.com>
- Loading branch information