Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
1a2eacc5
Unverified
Commit
1a2eacc5
authored
Jan 16, 2024
by
Ricky
Committed by
GitHub
Jan 16, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add jina-embeddings-v2-base-zh model configuration (#2049)
parent
f7a2f7a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
jina-embeddings-v2-base-zh.yaml
...iders/jina/text_embedding/jina-embeddings-v2-base-zh.yaml
+9
-0
text_embedding.py
...ime/model_providers/jina/text_embedding/text_embedding.py
+1
-1
No files found.
api/core/model_runtime/model_providers/jina/text_embedding/jina-embeddings-v2-base-zh.yaml
0 → 100644
View file @
1a2eacc5
model
:
jina-embeddings-v2-base-zh
model_type
:
text-embedding
model_properties
:
context_size
:
8192
max_chunks
:
2048
pricing
:
input
:
'
0.001'
unit
:
'
0.001'
currency
:
USD
api/core/model_runtime/model_providers/jina/text_embedding/text_embedding.py
View file @
1a2eacc5
...
...
@@ -17,7 +17,7 @@ class JinaTextEmbeddingModel(TextEmbeddingModel):
Model class for Jina text embedding model.
"""
api_base
:
str
=
'https://api.jina.ai/v1/embeddings'
models
:
list
[
str
]
=
[
'jina-embeddings-v2-base-en'
,
'jina-embeddings-v2-small-en'
]
models
:
list
[
str
]
=
[
'jina-embeddings-v2-base-en'
,
'jina-embeddings-v2-small-en'
,
'jina-embeddings-v2-base-zh'
]
def
_invoke
(
self
,
model
:
str
,
credentials
:
dict
,
texts
:
list
[
str
],
user
:
Optional
[
str
]
=
None
)
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment