Skip to content
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

chore(schema): update embedding task schema #1092

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
186 changes: 86 additions & 100 deletions schema/ai-tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,117 +23,103 @@
"title": "Model Name",
"type": "string"
},
"input": {
"embeddings": {
"title": "Embedding Input",
"type": "array",
"items": {
"type": "object",
"properties": {
"content": {
"description": "The content to be embedded.",
"instillShortDescription": "The content to be embedded.",
"title": "Content",
"type": "array",
"items": {
"type": "object",
"oneOf": [
{
"type": "object",
"properties": {
"text": {
"title": "Text content",
"description": "Text content to be embedded",
"instillShortDescription": "Text content",
"instillAcceptFormats": [
"string"
],
"type": "string"
},
"type": {
"title": "Text",
"description": "Text input content type.",
"instillShortDescription": "Text input content type.",
"instillAcceptFormats": [
"string"
],
"type": "string",
"const": "text"
}
},
"required": [
"text",
"type"
]
},
{
"type": "object",
"properties": {
"image-url": {
"title": "Image URL",
"description": "Image content with URL.",
"instillShortDescription": "Image content URL.",
"instillAcceptFormats": [
"string"
],
"type": "string"
},
"type": {
"title": "Image URL",
"description": "Image URL input content type",
"instillShortDescription": "Image URL input content type",
"instillAcceptFormats": [
"string"
],
"type": "string",
"const": "image-url"
}
},
"required": [
"image-url",
"type"
]
},
{
"type": "object",
"properties": {
"image-base64": {
"title": "Image file",
"description": "Image file input.",
"instillShortDescription": "Image file input.",
"instillAcceptFormats": [
"image/*"
],
"type": "string"
},
"type": {
"title": "Image file",
"description": "Image file input content type",
"instillShortDescription": "Image file input content type",
"instillAcceptFormats": [
"string"
],
"type": "string",
"const": "image-base64"
}
},
"required": [
"image-base64",
"type"
]
}
]
}
"oneOf": [
{
"type": "object",
"properties": {
"text": {
"title": "Text content",
"description": "Text content to be embedded",
"instillShortDescription": "Text content",
"instillAcceptFormats": [
"string"
],
"type": "string"
},
"type": {
"title": "Text",
"description": "Text input content type.",
"instillShortDescription": "Text input content type.",
"instillAcceptFormats": [
"string"
],
"type": "string",
"const": "text"
}
},
"required": [
"text",
"type"
]
},
{
"type": "object",
"properties": {
"image-url": {
"title": "Image URL",
"description": "Image content with URL.",
"instillShortDescription": "Image content URL.",
"instillAcceptFormats": [
"string"
],
"type": "string"
},
"type": {
"title": "Image URL",
"description": "Image URL input content type",
"instillShortDescription": "Image URL input content type",
"instillAcceptFormats": [
"string"
],
"type": "string",
"const": "image-url"
}
},
"required": [
"image-url",
"type"
]
},
{
"type": "object",
"properties": {
"image-base64": {
"title": "Image file",
"description": "Image file input.",
"instillShortDescription": "Image file input.",
"instillAcceptFormats": [
"image/*"
],
"type": "string"
},
"type": {
"title": "Image file",
"description": "Image file input content type",
"instillShortDescription": "Image file input content type",
"instillAcceptFormats": [
"string"
],
"type": "string",
"const": "image-base64"
}
},
"required": [
"image-base64",
"type"
]
}
},
"required": [
"content"
]
}
}
},
"required": [
"model",
"input"
"embeddings"
]
},
"parameter": {
Expand Down
Loading