diff --git a/website/src/app/api/getInputOutput/route.ts b/website/src/app/api/getInputOutput/route.ts index 777e2081..6098e4e8 100644 --- a/website/src/app/api/getInputOutput/route.ts +++ b/website/src/app/api/getInputOutput/route.ts @@ -43,7 +43,13 @@ export async function POST(request: Request) { operation_id, name, homeDir, - sample_size + sample_size, + false, + false, + { datasetDescription: null, persona: null }, + [], + "", + false ); // Check if files exist using FastAPI endpoints diff --git a/website/src/app/api/getPipelineConfig/route.ts b/website/src/app/api/getPipelineConfig/route.ts index 75e2c5c4..77e3d16c 100644 --- a/website/src/app/api/getPipelineConfig/route.ts +++ b/website/src/app/api/getPipelineConfig/route.ts @@ -39,7 +39,12 @@ export async function POST(request: Request) { name, homeDir, sample_size, - system_prompt + false, + false, + system_prompt, + [], + "", + false ); return NextResponse.json({ pipelineConfig: yamlString }); diff --git a/website/src/app/api/utils.ts b/website/src/app/api/utils.ts index 8d1df00e..291f013c 100644 --- a/website/src/app/api/utils.ts +++ b/website/src/app/api/utils.ts @@ -49,7 +49,8 @@ export function generatePipelineConfig( persona: string | null; } | null = null, apiKeys: APIKey[] = [], - docetl_encryption_key: string = "" + docetl_encryption_key: string = "", + enable_observability: boolean = true ) { const datasets = { input: { @@ -166,7 +167,7 @@ export function generatePipelineConfig( return { ...newOp, - enable_observability: true, + ...(enable_observability && { enable_observability }), output: { schema: op.output.schema.reduce( (acc: Record, item: SchemaItem) => { diff --git a/website/src/app/api/writePipelineConfig/route.ts b/website/src/app/api/writePipelineConfig/route.ts index be97decd..f9905971 100644 --- a/website/src/app/api/writePipelineConfig/route.ts +++ b/website/src/app/api/writePipelineConfig/route.ts @@ -54,7 +54,8 @@ export async function POST(request: Request) { clear_intermediate, system_prompt, apiKeys, - docetl_encryption_key + docetl_encryption_key, + true ); // Use the FastAPI endpoint to write the pipeline config diff --git a/website/src/components/APIKeysDialog.tsx b/website/src/components/APIKeysDialog.tsx index 2e4a08a4..a1bc248f 100644 --- a/website/src/components/APIKeysDialog.tsx +++ b/website/src/components/APIKeysDialog.tsx @@ -190,7 +190,6 @@ export function APIKeysDialog({ open, onOpenChange }: APIKeysDialogProps) { handleInputChange(index, "value", e.target.value) diff --git a/website/src/components/BookmarksPanel.tsx b/website/src/components/BookmarksPanel.tsx index 8ae9c2cc..b46b6785 100644 --- a/website/src/components/BookmarksPanel.tsx +++ b/website/src/components/BookmarksPanel.tsx @@ -123,7 +123,7 @@ const BookmarksPanel: React.FC = () => {
Tip: Click {" "} - in any output column to leave feedback + in any output column to leave notes on outputs
Note: diff --git a/website/src/components/PipelineGui.tsx b/website/src/components/PipelineGui.tsx index 8c74e0e4..31e6d888 100644 --- a/website/src/components/PipelineGui.tsx +++ b/website/src/components/PipelineGui.tsx @@ -88,7 +88,7 @@ const OperationMenuItem: React.FC = ({ onClick, }) => { return ( - +
{ setPipelineName, sampleSize, setSampleSize, - numOpRun, setNumOpRun, currentFile, setCurrentFile, @@ -1025,7 +1024,9 @@ const PipelineGUI: React.FC = () => { - Add LLM Operation + + Add LLM Operation + { } /> - Add Non-LLM Operation - + Add Non-LLM Operation + + handleAddOperation("non-LLM", "unnest", "Untitled Unnest") } - > - Unnest - - + handleAddOperation("non-LLM", "split", "Untitled Split") } - > - Split - - + handleAddOperation("non-LLM", "gather", "Untitled Gather") } - > - Gather - - + handleAddOperation("non-LLM", "sample", "Untitled Sample") } - > - Sample - + /> - Code Operations + + Code Operations +