Skip to content

Commit 337c6b0

Browse files
committed
修改检视意见
1 parent f2d838d commit 337c6b0

6 files changed

Lines changed: 6 additions & 14 deletions

File tree

framework/fel/python/plugins/fel_llama_index_tools/types/document.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -- encoding: utf-8 --
2-
# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved.
2+
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
33
# This file is a part of the ModelEngine Project.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
55
# ======================================================================================================================
@@ -8,7 +8,6 @@
88
from .media import Media
99

1010
class Document(object):
11-
1211
def __init__(self, content: str, media: Media , metadata: typing.Dict[str, object] ):
1312
self.content = content
1413
self.media = media

framework/fel/python/plugins/fel_llama_index_tools/types/embedding_options.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -- encoding: utf-8 --
2-
# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved.
2+
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
33
# This file is a part of the ModelEngine Project.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
55
# ======================================================================================================================
@@ -8,7 +8,6 @@
88
from .media import Media
99

1010
class EmbeddingOptions(object):
11-
1211
def __init__(self, model_name: str,api_key: str,api_base: str,percentile_cutoff: float,threshold_cutoff: float):
1312
self.model_name = model_name
1413
self.api_key = api_key

framework/fel/python/plugins/fel_llama_index_tools/types/llm_choice_selector_options.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -- encoding: utf-8 --
2-
# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved.
2+
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
33
# This file is a part of the ModelEngine Project.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
55
# ======================================================================================================================
@@ -8,7 +8,6 @@
88
from .media import Media
99

1010
class LLMChoiceSelectorOptions(object):
11-
1211
def __init__(self, api_key: str, model_name: str,api_base: str, prompt: str ,mode: str = 'single'):
1312
self.api_key = api_key
1413
self.model_name = model_name

framework/fel/python/plugins/fel_llama_index_tools/types/llm_rerank_options.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -- encoding: utf-8 --
2-
# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved.
2+
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
33
# This file is a part of the ModelEngine Project.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
55
# ======================================================================================================================
@@ -8,7 +8,6 @@
88
from .media import Media
99

1010
class LLMRerankOptions(object):
11-
1211
def __init__(self, model_name: str ,api_key: str ,api_base: str ,prompt: str ,choice_batch_size: int, top_n: int):
1312
self.model_name = model_name
1413
self.api_key = api_key

framework/fel/python/plugins/fel_llama_index_tools/types/media.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
# -- encoding: utf-8 --
2-
# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved.
2+
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
33
# This file is a part of the ModelEngine Project.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
55
# ======================================================================================================================
66

77
class Media(object):
8-
"""
9-
Media.
10-
"""
118
def __init__(self, mime: str, data: str):
129
self.mime = mime
1310
self.data = data

framework/fel/python/plugins/fel_llama_index_tools/types/retriever_options.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
# -- encoding: utf-8 --
2-
# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved.
2+
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
33
# This file is a part of the ModelEngine Project.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
55
# ======================================================================================================================
66
import typing
77

88
from .media import Media
99
class RetrieverOptions(object):
10-
1110
def __init__(self, similarity_cutoff: float):
1211
self.similarity_cutoff = similarity_cutoff
1312

0 commit comments

Comments
 (0)