mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-05-06 07:15:15 +08:00
### What problem does this PR solve? Feat: Add rerank option to huggingface's model type drop-down box. #5658 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
parent
b8da2eeb69
commit
1b2fc3cc9a
@ -74,6 +74,7 @@ const OllamaModal = ({
|
|||||||
[LLMFactory.HuggingFace]: [
|
[LLMFactory.HuggingFace]: [
|
||||||
{ value: 'embedding', label: 'embedding' },
|
{ value: 'embedding', label: 'embedding' },
|
||||||
{ value: 'chat', label: 'chat' },
|
{ value: 'chat', label: 'chat' },
|
||||||
|
{ value: 'rerank', label: 'rerank' },
|
||||||
],
|
],
|
||||||
[LLMFactory.Xinference]: [
|
[LLMFactory.Xinference]: [
|
||||||
{ value: 'chat', label: 'chat' },
|
{ value: 'chat', label: 'chat' },
|
||||||
@ -170,7 +171,7 @@ const OllamaModal = ({
|
|||||||
type: 'number',
|
type: 'number',
|
||||||
message: t('maxTokensInvalidMessage'),
|
message: t('maxTokensInvalidMessage'),
|
||||||
},
|
},
|
||||||
({ getFieldValue }) => ({
|
({}) => ({
|
||||||
validator(_, value) {
|
validator(_, value) {
|
||||||
if (value < 0) {
|
if (value < 0) {
|
||||||
return Promise.reject(new Error(t('maxTokensMinMessage')));
|
return Promise.reject(new Error(t('maxTokensMinMessage')));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user