-
Notifications
You must be signed in to change notification settings - Fork 1
Dev #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev #72
Changes from 1 commit
c953d08
8051687
8eba3ec
1de8d30
1953544
88da812
de1acd8
8d9cbe6
6f5a22b
2ab9dd8
ba7a9ce
d4d7df3
0eec14e
f7d1dc5
c7e5363
3ac304f
dbdf41c
1e40359
262115e
9455baa
40518b3
4e9bcda
02d616b
a2b9184
ad60a7a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
Add Free Form Workflow Type Add Free From Prompt Add use case for free form workflow type Usecase fix for freeform Show Seed Instructions for FreeForm Ftech File Content Add AG Grid Add Modules Add Themes Adding FreeFormTable Fix Examples Table for Freeform Dataset Fix Dataset Details Page for Freeforms Add Dataset Viewer Hide Exmaples Buttons for Freeforms Fix for Examples in Dataset Details Page (freeform) Update Examples Message Fix for very long seeds Fix for Dataset Details Page Fix for Freeform Table in Results Page Adding Re-generate Dataset Changes Add Evaluation for Freeforms Fix for custom prompt modal Fix Lint Errors
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -2,7 +2,7 @@ import isEmpty from 'lodash/isEmpty'; | |||||
import isString from 'lodash/isString'; | ||||||
import { useRef, useState } from 'react'; | ||||||
import { useLocation } from 'react-router-dom'; | ||||||
import { Button, Flex, Form, Layout, Steps, Typography } from 'antd'; | ||||||
import { Button, Flex, Form, Layout, Steps } from 'antd'; | ||||||
import type { FormInstance } from 'antd'; | ||||||
import ArrowBackIcon from '@mui/icons-material/ArrowBack'; | ||||||
import ArrowForwardIcon from '@mui/icons-material/ArrowForward'; | ||||||
|
@@ -17,6 +17,7 @@ import Finish from './Finish'; | |||||
|
||||||
import { DataGenWizardSteps, WizardStepConfig, WorkflowType } from './types'; | ||||||
import { WizardCtx } from './utils'; | ||||||
import { useGetDatasetDetails } from '../DatasetDetails/hooks'; | ||||||
|
||||||
const { Content } = Layout; | ||||||
// const { Title } = Typography; | ||||||
|
@@ -98,10 +99,14 @@ const DataGenerator = () => { | |||||
const [isStepValid, setIsStepValid] = useState<boolean>(false); | ||||||
// Data passed from listing table to prepopulate form | ||||||
const location = useLocation(); | ||||||
console.log('DatGenerator >> location?.state?.data:', location?.state?.data); | ||||||
console.log('location?.state?.data:', location?.state?.data); | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove or replace this debugging Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||
const initialData = location?.state?.data; | ||||||
|
||||||
const datasetDetailsReq = location?.state?.data && useGetDatasetDetails(location?.state?.data?.generate_file_name) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Calling a hook (
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||
if (initialData?.technique) { | ||||||
initialData.workflow_type = initialData?.technique === 'sft' ? WorkflowType.SUPERVISED_FINE_TUNING : | ||||||
initialData.workflow_type = initialData?.technique === 'sft' ? | ||||||
WorkflowType.SUPERVISED_FINE_TUNING : | ||||||
initialData?.technique === 'freeform' ? WorkflowType.FREE_FORM_DATA_GENERATION : | ||||||
WorkflowType.CUSTOM_DATA_GENERATION; | ||||||
} | ||||||
if (Array.isArray(initialData?.doc_paths) && !isEmpty(initialData?.doc_paths) ) { | ||||||
|
@@ -111,6 +116,12 @@ const DataGenerator = () => { | |||||
})); | ||||||
|
||||||
} | ||||||
|
||||||
// if (datasetDetailsReq && datasetDetailsReq.data && | ||||||
// !isEmpty(datasetDetailsReq?.data?.generate_file_name)) { | ||||||
// initialData.example_path = initialData?.example_path; | ||||||
// } | ||||||
|
||||||
if (Array.isArray(initialData?.input_paths) && !isEmpty(initialData?.input_paths) ) { | ||||||
initialData.doc_paths = initialData?.input_paths.map((path: string) => ({ | ||||||
value: path, | ||||||
|
Uh oh!
There was an error while loading. Please reload this page.