Please follow the steps in the CONTRIBUTION to set up the console locally.
Copy the recipe from instill-ai console's toolkit. And then do two things to the component in the components array
- Replace the
resource_name
value with null - Add a
resource: null
into the component
For example, this is a pipeline with basic configuration
{
"version": "v1beta",
"components": [
{
"id": "variable",
"resource_name": "",
"configuration": {
"metadata": {}
},
"definition_name": "operator-definitions/start"
},
{
"id": "response",
"resource_name": "",
"configuration": {
"input": {},
"metadata": {}
},
"definition_name": "operator-definitions/end"
},
{
"id": "ai_1",
"resource_name": "users/admin/connectors/yoyo",
"configuration": {
"input": {
"image_base64": "{ variable.image }",
"model_id": "hello",
"model_namespace": "instill-ai"
},
"task": "TASK_KEYPOINT"
},
"definition_name": "connector-definitions/instill-model"
}
]
}
This is the correct template after cleaning it up
{
"version": "v1beta",
"components": [
{
"id": "start",
"resource_name": null,
"resource": null,
"configuration": {
"metadata": {}
},
"definition_name": "operator-definitions/start"
},
{
"id": "end",
"resource_name": null,
"resource": null,
"configuration": {
"input": {},
"metadata": {}
},
"definition_name": "operator-definitions/end"
},
{
"id": "ai_1",
"resource_name": null,
"resource": null,
"configuration": {
"input": {
"image_base64": "{ variable.image }",
"model_id": "hello",
"model_namespace": "instill-ai"
},
"task": "TASK_KEYPOINT"
},
"definition_name": "connector-definitions/instill-model"
}
]
}
The file we store template is here
Please put the new template with its good friends. And add some categories to it.
Here are the categories we have
- AI-generated art
- Copywriting
- Extraction
- Summarization
Then you can test your pipeline buy doing these steps
- At the root of the repo, run
pnpm build
, and after the build is done, - Go to /apps/console and run
pnpm dev