Skip to content
Merged
Show file tree
Hide file tree
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
13 changes: 12 additions & 1 deletion specification/inference/_types/Services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
import { integer } from '@_types/Numeric'
import { TaskType } from '../_types/TaskType'
import { TaskType, TaskTypeJinaAi } from '../_types/TaskType'

/**
* Configuration options when storing the inference endpoint
Expand Down Expand Up @@ -57,6 +57,17 @@ export class InferenceEndpointInfo extends InferenceEndpoint {
task_type: TaskType
}

export class InferenceEndpointInfoJinaAi extends InferenceEndpoint {
/**
* The inference Id
*/
inference_id: string
/**
* The task type
*/
task_type: TaskTypeJinaAi
}

/**
* Chunking configuration object
*/
Expand Down
5 changes: 5 additions & 0 deletions specification/inference/_types/TaskType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ export enum TaskType {
completion,
chat_completion
}

export enum TaskTypeJinaAi {
text_embedding,
rerank
}
4 changes: 2 additions & 2 deletions specification/inference/put_jinaai/PutJinaAiResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
* under the License.
*/

import { InferenceEndpointInfo } from '@inference/_types/Services'
import { InferenceEndpointInfoJinaAi } from '@inference/_types/Services'

export class Response {
/** @codegen_name endpoint_info */
body: InferenceEndpointInfo
body: InferenceEndpointInfoJinaAi
}