archetypeai

package
v0.15.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 12 Imported by: 0

README

---
title: "Archetype AI"
lang: "en-US"
draft: false
description: "Learn about how to set up a VDP Archetype AI connector https://github.com/instill-ai/instill-core"
---

The Archetype AI component is an AI connector that allows users to connect the AI models served on the Archetype AI Platform.
It can carry out the following tasks:

- [Describe](#describe)
- [Summarize](#summarize)
- [Upload File](#upload-file)

## Release Stage

`Alpha`

## Configuration

The component configuration is defined and maintained [here](https://github.com/instill-ai/component/blob/main/pkg/connector/archetypeai/v0/config/definition.json).

## Connection

| Field | Field ID | Type | Note |
| :--- | :--- | :--- | :--- |
| API Key (required) | `api_key` | string | Fill your Archetype AI API key |

## Supported Tasks

### Describe

Describe a video.

| Input | ID | Type | Description |
| :--- | :--- | :--- | :--- |
| Task ID (required) | `task` | string | `TASK_DESCRIBE` |
| Query (required) | `query` | string | A guide to describe the video |
| File IDs (required) | `file_ids` | array[string] | The IDs of the videos to describe. These must have been previously uploaded via TASK_UPLOAD_FILE. |

| Output | ID | Type | Description |
| :--- | :--- | :--- | :--- |
| Descriptions | `descriptions` | array[object] | A set of descriptions corresponding to different moments in the video |

### Summarize

Summarize the image.

| Input | ID | Type | Description |
| :--- | :--- | :--- | :--- |
| Task ID (required) | `task` | string | `TASK_SUMMARIZE` |
| Query (required) | `query` | string | A guide to summarize the image |
| File IDs (required) | `file_ids` | array[string] | The IDs of the images to summarize. These must have been previously uploaded via TASK_UPLOAD_FILE. |

| Output | ID | Type | Description |
| :--- | :--- | :--- | :--- |
| Response | `response` | string | A text responding to the query |

### Upload File

Upload file.

| Input | ID | Type | Description |
| :--- | :--- | :--- | :--- |
| Task ID (required) | `task` | string | `TASK_UPLOAD_FILE` |
| File (required) | `file` | string | The file to upload. Accepted formats are JPEG and PNG for images or MP4 for videos |

| Output | ID | Type | Description |
| :--- | :--- | :--- | :--- |
| File ID | `file_id` | string | The ID to reference the file in queries |

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(l *zap.Logger, u base.UsageHandler) *connector

Init returns an implementation of IConnector that interacts with Archetype AI.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL