Skip to content

Commit 99bbe04

Browse files
author
Tulio Coppola
committed
moves decompose modules to appropriate path
1 parent 1cb0dc9 commit 99bbe04

File tree

113 files changed

+17
-15
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+17
-15
lines changed

cli/decompose/decompose.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ def run(
5151
backend_req_timeout: Annotated[
5252
int,
5353
typer.Option(
54-
help='Time (in seconds) for timeout to be passed on the model inference requests. Defaults to "3600"'
54+
help='Time (in seconds) for timeout to be passed on the model inference requests. Defaults to "300"'
5555
),
56-
] = 3600,
56+
] = 300,
5757
backend_endpoint: Annotated[
5858
str | None,
5959
typer.Option(

cli/decompose/pipeline.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@
77
from mellea.backends.ollama import OllamaModelBackend
88
from mellea.backends.openai import OpenAIBackend
99
from mellea.backends.types import ModelOption
10-
from mellea.helpers.prompt_modules import (
10+
from mellea.helpers.prompt_modules.decompose import (
1111
constraint_extractor,
1212
subtask_constraint_assign,
1313
subtask_list,
1414
subtask_prompt_generator,
1515
)
16-
from mellea.helpers.prompt_modules.subtask_constraint_assign import (
16+
from mellea.helpers.prompt_modules.decompose.subtask_constraint_assign import (
1717
SubtaskPromptConstraintsItem,
1818
)
19-
from mellea.helpers.prompt_modules.subtask_list import SubtaskItem
20-
from mellea.helpers.prompt_modules.subtask_prompt_generator import SubtaskPromptItem
19+
from mellea.helpers.prompt_modules.decompose.subtask_list import SubtaskItem
20+
from mellea.helpers.prompt_modules.decompose.subtask_prompt_generator import (
21+
SubtaskPromptItem,
22+
)
2123

2224

2325
class DecompSubtasksResult(TypedDict):
@@ -47,7 +49,7 @@ def decompose(
4749
user_input_variable: list[str] | None = None,
4850
model_id: str = "mistral-small3.2:latest",
4951
backend: DecompBackend = DecompBackend.ollama,
50-
backend_req_timeout: int = 3600,
52+
backend_req_timeout: int = 300,
5153
backend_endpoint: str | None = None,
5254
backend_api_key: str | None = None,
5355
) -> DecompPipelineResult:
Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +0,0 @@
1-
from .constraint_extractor import constraint_extractor as constraint_extractor
2-
from .subtask_constraint_assign import (
3-
subtask_constraint_assign as subtask_constraint_assign,
4-
)
5-
from .subtask_list import subtask_list as subtask_list
6-
from .subtask_prompt_generator import (
7-
subtask_prompt_generator as subtask_prompt_generator,
8-
)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from .constraint_extractor import constraint_extractor as constraint_extractor
2+
from .subtask_constraint_assign import (
3+
subtask_constraint_assign as subtask_constraint_assign,
4+
)
5+
from .subtask_list import subtask_list as subtask_list
6+
from .subtask_prompt_generator import (
7+
subtask_prompt_generator as subtask_prompt_generator,
8+
)

0 commit comments

Comments
 (0)