4172637469634d6f6e6b6579733a31382e30382e3234
Browse files- llm/utils/lc_interface.py +0 -20
llm/utils/lc_interface.py
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
from abc import ABC, abstractmethod
|
2 |
-
from typing import Dict, Optional
|
3 |
-
|
4 |
-
|
5 |
-
class LCInterface(ABC):
|
6 |
-
@abstractmethod
|
7 |
-
def execution(self):
|
8 |
-
"""Method execution LLM model based on HuggingFace or Langchain"""
|
9 |
-
pass
|
10 |
-
|
11 |
-
# {"model_name": "./models/model_name"}
|
12 |
-
@abstractmethod
|
13 |
-
def clear_llm(self, unused_model_dict: Optional[Dict[str, str]], current_lc: str) -> None:
|
14 |
-
"""Method clear unused LLM"""
|
15 |
-
pass
|
16 |
-
|
17 |
-
@abstractmethod
|
18 |
-
def get_unused(self, current_lc: str) -> Optional[Dict[str, str]]:
|
19 |
-
"""Method getting LLM that unused and forming corresponding dict"""
|
20 |
-
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|