You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because
- `readme.go` didn't render objects in order, causing inconsistent
outcomes misleading commit cycle.
This commit
- fixes the ordering issue.
- cleans up a bit the template layout.
Copy file name to clipboardExpand all lines: pkg/component/ai/anthropic/v0/README.mdx
+15-23Lines changed: 15 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,21 +9,15 @@ The Anthropic component is an AI component that allows users to connect the AI m
9
9
It can carry out the following tasks:
10
10
-[Text Generation Chat](#text-generation-chat)
11
11
12
-
13
-
14
12
## Release Stage
15
13
16
14
`Alpha`
17
15
18
-
19
-
20
16
## Configuration
21
17
22
18
The component definition and tasks are defined in the [definition.yaml](https://github.com/instill-ai/pipeline-backend/blob/main/pkg/component/ai/anthropic/v0/config/definition.yaml) and [tasks.yaml](https://github.com/instill-ai/pipeline-backend/blob/main/pkg/component/ai/anthropic/v0/config/tasks.yaml) files respectively.
| API Key |`api-key`| string | Fill in your Anthropic API key. To find your keys, visit the Anthropic console page. |
42
-
35
+
| API Key |`api-key`| string | Fill in your Anthropic API key. To find your keys, visit the Anthropic console page. |
43
36
</div>
44
37
45
38
46
39
47
-
48
-
49
40
## Supported Tasks
50
41
51
42
### Text Generation Chat
@@ -57,7 +48,7 @@ Anthropic's text generation models (often called generative pre-trained transfor
57
48
| Input | Field ID | Type | Description |
58
49
| :--- | :--- | :--- | :--- |
59
50
| Task ID (required) |`task`| string |`TASK_TEXT_GENERATION_CHAT`|
60
-
| Model Name (required) |`model-name`| string | The Anthropic model to be used. <br/><details><summary><strong>Enum values</strong></summary><ul><li>`claude-3-5-sonnet-latest`</li><li>`claude-3-5-sonnet-20241022`</li><li>`claude-3-5-sonnet-20240620`</li><li>`claude-3-opus-20240229`</li><li>`claude-3-sonnet-20240229`</li><li>`claude-3-haiku-20240307`</li></ul></details> |
51
+
| Model Name (required) |`model-name`| string | The Anthropic model to be used. <br/><details><summary><strong>Enum values</strong></summary><ul><li>`claude-3-5-sonnet-latest`</li><li>`claude-3-5-sonnet-20241022`</li><li>`claude-3-5-sonnet-20240620`</li><li>`claude-3-opus-20240229`</li><li>`claude-3-sonnet-20240229`</li><li>`claude-3-haiku-20240307`</li></ul></details> |
61
52
| Prompt (required) |`prompt`| string | The prompt text. |
62
53
| System Message |`system-message`| string | The system message helps set the behavior of the assistant. For example, you can modify the personality of the assistant or provide specific instructions about how it should behave throughout the conversation. By default, the model's behavior is set using a generic message as "You are a helpful assistant.". |
63
54
| Prompt Images |`prompt-images`| array[string]| The prompt images (Note: The prompt images will be injected in the order they are provided to the 'prompt' message. Anthropic doesn't support sending images via image-url, use this field instead). |
@@ -66,57 +57,59 @@ Anthropic's text generation models (often called generative pre-trained transfor
66
57
| Temperature |`temperature`| number | The temperature for sampling. |
67
58
| Top K |`top-k`| integer | Top k for sampling. |
68
59
| Max New Tokens |`max-new-tokens`| integer | The maximum number of tokens for model to generate. |
69
-
</div>
70
-
71
60
61
+
</div>
72
62
<details>
73
63
<summary> Input Objects in Text Generation Chat</summary>
Incorporate external chat history, specifically previous messages within the conversation. Please note that System Message will be ignored and will not have any effect when this field is populated. Each message should adhere to the format: {"role": "The message role, i.e. `system`, `user` or `assistant`", "content": "message content"}.
|[Image URL](#text-generation-chat-image-url)|`image-url`| object | The image URL. |
95
-
| Text |`text`| string | The text content. |
96
-
| Type |`type`| string | The type of the content part. <br/><details><summary><strong>Enum values</strong></summary><ul><li>`text`</li><li>`image_url`</li></ul></details>|
86
+
|[Image URL](#text-generation-chat-image-url)|`image-url`| object | The image URL. |
87
+
| Text |`text`| string | The text content. |
88
+
| Type |`type`| string | The type of the content part. <br/><details><summary><strong>Enum values</strong></summary><ul><li>`text`</li><li>`image_url`</li></ul></details> |
Copy file name to clipboardExpand all lines: pkg/component/ai/cohere/v0/README.mdx
+28-35Lines changed: 28 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,21 +11,15 @@ It can carry out the following tasks:
11
11
-[Text Embeddings](#text-embeddings)
12
12
-[Text Reranking](#text-reranking)
13
13
14
-
15
-
16
14
## Release Stage
17
15
18
16
`Alpha`
19
17
20
-
21
-
22
18
## Configuration
23
19
24
20
The component definition and tasks are defined in the [definition.yaml](https://github.com/instill-ai/pipeline-backend/blob/main/pkg/component/ai/cohere/v0/config/definition.yaml) and [tasks.yaml](https://github.com/instill-ai/pipeline-backend/blob/main/pkg/component/ai/cohere/v0/config/tasks.yaml) files respectively.
| API Key |`api-key`| string | Fill in your Cohere API key. To find your keys, visit the Cohere dashboard page. |
44
-
37
+
| API Key |`api-key`| string | Fill in your Cohere API key. To find your keys, visit the Cohere dashboard page. |
45
38
</div>
46
39
47
40
48
41
49
-
50
-
51
42
## Supported Tasks
52
43
53
44
### Text Generation Chat
@@ -59,7 +50,7 @@ Cohere's text generation models (often called generative pre-trained transformer
59
50
| Input | Field ID | Type | Description |
60
51
| :--- | :--- | :--- | :--- |
61
52
| Task ID (required) |`task`| string |`TASK_TEXT_GENERATION_CHAT`|
62
-
| Model Name (required) |`model-name`| string | The Cohere command model to be used. <br/><details><summary><strong>Enum values</strong></summary><ul><li>`command-r-plus`</li><li>`command-r`</li><li>`command`</li><li>`command-nightly`</li><li>`command-light`</li><li>`command-light-nightly`</li></ul></details> |
53
+
| Model Name (required) |`model-name`| string | The Cohere command model to be used. <br/><details><summary><strong>Enum values</strong></summary><ul><li>`command-r-plus`</li><li>`command-r`</li><li>`command`</li><li>`command-nightly`</li><li>`command-light`</li><li>`command-light-nightly`</li></ul></details> |
63
54
| Prompt (required) |`prompt`| string | The prompt text. |
64
55
| System Message |`system-message`| string | The system message helps set the behavior of the assistant. For example, you can modify the personality of the assistant or provide specific instructions about how it should behave throughout the conversation. By default, the model's behavior is using a generic message as "You are a helpful assistant.". |
65
56
| Documents |`documents`| array[string]| The documents to be used for the model, for optimal performance, the length of each document should be less than 300 words. |
@@ -69,58 +60,60 @@ Cohere's text generation models (often called generative pre-trained transformer
69
60
| Temperature |`temperature`| number | The temperature for sampling (default=0.7). |
70
61
| Top K |`top-k`| integer | Top k for sampling (default=10). |
71
62
| Max New Tokens |`max-new-tokens`| integer | The maximum number of tokens for model to generate (default=50). |
72
-
</div>
73
-
74
63
64
+
</div>
75
65
<details>
76
66
<summary> Input Objects in Text Generation Chat</summary>
Incorporate external chat history, specifically previous messages within the conversation. Each message should adhere to the format: : {"role": "The message role, i.e. `USER` or `CHATBOT`", "content": "message content"}.
|[Image URL](#text-generation-chat-image-url)|`image-url`| object | The image URL. |
98
-
| Text |`text`| string | The text content. |
99
-
| Type |`type`| string | The type of the content part. <br/><details><summary><strong>Enum values</strong></summary><ul><li>`text`</li><li>`image_url`</li></ul></details>|
89
+
|[Image URL](#text-generation-chat-image-url)|`image-url`| object | The image URL. |
90
+
| Text |`text`| string | The text content. |
91
+
| Type |`type`| string | The type of the content part. <br/><details><summary><strong>Enum values</strong></summary><ul><li>`text`</li><li>`image_url`</li></ul></details> |
|[Usage](#text-generation-chat-usage) (optional) |`usage`| object | Token Usage on the Cohere Platform Command Models. |
113
+
122
114
</div>
123
115
116
+
124
117
<details>
125
118
<summary> Output Objects in Text Generation Chat</summary>
126
119
@@ -133,6 +126,7 @@ The image URL.
133
126
| End |`end`| integer | The end position of the citation. |
134
127
| Start |`start`| integer | The start position of the citation. |
135
128
| Text |`text`| string | The text body of the citation. |
129
+
136
130
</div>
137
131
138
132
<h4id="text-generation-chat-usage">Usage</h4>
@@ -143,6 +137,7 @@ The image URL.
143
137
| :--- | :--- | :--- | :--- |
144
138
| Input Tokens |`input-tokens`| number | The input tokens used by Cohere Models. |
145
139
| Output Tokens |`output-tokens`| number | The output tokens generated by Cohere Models. |
140
+
146
141
</div>
147
142
</details>
148
143
@@ -156,15 +151,12 @@ An embedding is a list of floating point numbers that captures semantic informat
156
151
| Input | Field ID | Type | Description |
157
152
| :--- | :--- | :--- | :--- |
158
153
| Task ID (required) |`task`| string |`TASK_TEXT_EMBEDDINGS`|
159
-
| Embedding Type (required) |`embedding-type`| string | Specifies the return type of embedding, Note that 'binary'/'ubinary' options means the component will return packed unsigned binary embeddings. The length of each binary embedding is 1/8 the length of the float embeddings of the provided model. <br/><details><summary><strong>Enum values</strong></summary><ul><li>`float`</li><li>`int8`</li><li>`uint8`</li><li>`binary`</li><li>`ubinary`</li></ul></details> |
160
-
| Input Type (required) |`input-type`| string | Specifies the type of input passed to the model. <br/><details><summary><strong>Enum values</strong></summary><ul><li>`search_document`</li><li>`search_query`</li><li>`classification`</li><li>`clustering`</li></ul></details> |
161
-
| Model Name (required) |`model-name`| string | The Cohere embed model to be used. <br/><details><summary><strong>Enum values</strong></summary><ul><li>`embed-english-v3.0`</li><li>`embed-multilingual-v3.0`</li><li>`embed-english-light-v3.0`</li><li>`embed-multilingual-light-v3.0`</li></ul></details> |
154
+
| Embedding Type (required) |`embedding-type`| string | Specifies the return type of embedding, Note that 'binary'/'ubinary' options means the component will return packed unsigned binary embeddings. The length of each binary embedding is 1/8 the length of the float embeddings of the provided model. <br/><details><summary><strong>Enum values</strong></summary><ul><li>`float`</li><li>`int8`</li><li>`uint8`</li><li>`binary`</li><li>`ubinary`</li></ul></details> |
155
+
| Input Type (required) |`input-type`| string | Specifies the type of input passed to the model. <br/><details><summary><strong>Enum values</strong></summary><ul><li>`search_document`</li><li>`search_query`</li><li>`classification`</li><li>`clustering`</li></ul></details> |
156
+
| Model Name (required) |`model-name`| string | The Cohere embed model to be used. <br/><details><summary><strong>Enum values</strong></summary><ul><li>`embed-english-v3.0`</li><li>`embed-multilingual-v3.0`</li><li>`embed-english-light-v3.0`</li><li>`embed-multilingual-light-v3.0`</li></ul></details> |
@@ -173,8 +165,10 @@ An embedding is a list of floating point numbers that captures semantic informat
173
165
| :--- | :--- | :--- | :--- |
174
166
| Embedding |`embedding`| array[number]| Embedding of the input text. |
175
167
|[Usage](#text-embeddings-usage) (optional) |`usage`| object | Token usage on the Cohere platform embed models. |
168
+
176
169
</div>
177
170
171
+
178
172
<details>
179
173
<summary> Output Objects in Text Embeddings</summary>
180
174
@@ -185,6 +179,7 @@ An embedding is a list of floating point numbers that captures semantic informat
185
179
| Field | Field ID | Type | Note |
186
180
| :--- | :--- | :--- | :--- |
187
181
| Token Count |`tokens`| number | The token count used by Cohere Models. |
182
+
188
183
</div>
189
184
</details>
190
185
@@ -198,16 +193,13 @@ Rerank models sort text inputs by semantic relevance to a specified query. They
198
193
| Input | Field ID | Type | Description |
199
194
| :--- | :--- | :--- | :--- |
200
195
| Task ID (required) |`task`| string |`TASK_TEXT_RERANKING`|
201
-
| Model Name (required) |`model-name`| string | The Cohere rerank model to be used. <br/><details><summary><strong>Enum values</strong></summary><ul><li>`rerank-english-v3.0`</li><li>`rerank-multilingual-v3.0`</li></ul></details> |
196
+
| Model Name (required) |`model-name`| string | The Cohere rerank model to be used. <br/><details><summary><strong>Enum values</strong></summary><ul><li>`rerank-english-v3.0`</li><li>`rerank-multilingual-v3.0`</li></ul></details> |
202
197
| Query (required) |`query`| string | The query. |
203
198
| Documents (required) |`documents`| array[string]| The documents to be used for reranking. |
204
199
| Top N |`top-n`| integer | The number of most relevant documents or indices to return. Defaults to the length of the documents (default=3). |
205
200
| Maximum Number of Chunks per Document |`max-chunks-per-doc`| integer | The maximum number of chunks to produce internally from a document (default=10). |
0 commit comments