-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
120 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
version: 0.0.1 | ||
type: plugin | ||
author: "Yeuoly" | ||
name: "jina" | ||
created_at: "2024-07-12T08:03:44.658609186Z" | ||
resource: | ||
memory: 1048576 | ||
permission: | ||
tool: | ||
enabled: true | ||
model: | ||
enabled: true | ||
llm: true | ||
plugins: | ||
- "provider/jina.yaml" | ||
execution: | ||
install: install.sh | ||
launch: launch.sh | ||
meta: | ||
version: 0.0.1 | ||
arch: | ||
- "amd64" | ||
- "arm64" | ||
runner: | ||
language: "python" | ||
version: "3.12" | ||
entrypoint: "main" |
79 changes: 79 additions & 0 deletions
79
internal/core/plugin_manager/aws_manager/packager_test_plugin/provider/jina.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
type: model | ||
provider: | ||
provider: jina | ||
label: | ||
en_US: Jina | ||
description: | ||
en_US: Embedding and Rerank Model Supported | ||
icon_small: | ||
en_US: icon_s_en.svg | ||
icon_large: | ||
en_US: icon_l_en.svg | ||
background: "#EFFDFD" | ||
help: | ||
title: | ||
en_US: Get your API key from Jina AI | ||
zh_Hans: 从 Jina 获取 API Key | ||
url: | ||
en_US: https://jina.ai/ | ||
supported_model_types: | ||
- text-embedding | ||
- rerank | ||
configurate_methods: | ||
- predefined-model | ||
- customizable-model | ||
provider_credential_schema: | ||
credential_form_schemas: | ||
- variable: api_key | ||
label: | ||
en_US: API Key | ||
type: secret-input | ||
required: true | ||
placeholder: | ||
zh_Hans: 在此输入您的 API Key | ||
en_US: Enter your API Key | ||
model_credential_schema: | ||
model: | ||
label: | ||
en_US: Model Name | ||
zh_Hans: 模型名称 | ||
placeholder: | ||
en_US: Enter your model name | ||
zh_Hans: 输入模型名称 | ||
credential_form_schemas: | ||
- variable: api_key | ||
label: | ||
en_US: API Key | ||
type: secret-input | ||
required: true | ||
placeholder: | ||
zh_Hans: 在此输入您的 API Key | ||
en_US: Enter your API Key | ||
- variable: base_url | ||
label: | ||
zh_Hans: 服务器 URL | ||
en_US: Base URL | ||
type: text-input | ||
required: true | ||
placeholder: | ||
zh_Hans: Base URL, e.g. https://api.jina.ai/v1 | ||
en_US: Base URL, e.g. https://api.jina.ai/v1 | ||
default: 'https://api.jina.ai/v1' | ||
- variable: context_size | ||
label: | ||
zh_Hans: 上下文大小 | ||
en_US: Context size | ||
placeholder: | ||
zh_Hans: 输入上下文大小 | ||
en_US: Enter context size | ||
required: false | ||
type: text-input | ||
default: '8192' | ||
models: | ||
- "models/**/*.yaml" | ||
extra: | ||
python: | ||
provider_source: provider/jina.py | ||
model_sources: | ||
- "models/text_embedding/text_embedding.py" | ||
- "models/rerank/rerank.py" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters