orchestrator-core 4.5.0a8__py3-none-any.whl → 4.5.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- orchestrator/__init__.py +1 -1
- orchestrator/llm_settings.py +3 -0
- orchestrator/search/llm_migration.py +11 -5
- orchestrator/services/processes.py +1 -1
- orchestrator/workflows/steps.py +3 -2
- {orchestrator_core-4.5.0a8.dist-info → orchestrator_core-4.5.1.dist-info}/METADATA +1 -1
- {orchestrator_core-4.5.0a8.dist-info → orchestrator_core-4.5.1.dist-info}/RECORD +9 -9
- {orchestrator_core-4.5.0a8.dist-info → orchestrator_core-4.5.1.dist-info}/WHEEL +0 -0
- {orchestrator_core-4.5.0a8.dist-info → orchestrator_core-4.5.1.dist-info}/licenses/LICENSE +0 -0
orchestrator/__init__.py
CHANGED
orchestrator/llm_settings.py
CHANGED
|
@@ -43,6 +43,9 @@ class LLMSettings(BaseSettings):
|
|
|
43
43
|
LLM_MAX_RETRIES: int = 3
|
|
44
44
|
LLM_TIMEOUT: int = 30
|
|
45
45
|
|
|
46
|
+
# Toggle creation of extensions
|
|
47
|
+
LLM_FORCE_EXTENTION_MIGRATION: bool = False
|
|
48
|
+
|
|
46
49
|
@field_validator("EMBEDDING_MODEL")
|
|
47
50
|
def validate_embedding_model_format(cls, v: str) -> str:
|
|
48
51
|
"""Validate that embedding model is in 'vendor/model' format."""
|
|
@@ -17,6 +17,7 @@ from sqlalchemy import text
|
|
|
17
17
|
from sqlalchemy.engine import Connection
|
|
18
18
|
from structlog import get_logger
|
|
19
19
|
|
|
20
|
+
from orchestrator.llm_settings import llm_settings
|
|
20
21
|
from orchestrator.search.core.types import FieldType
|
|
21
22
|
|
|
22
23
|
logger = get_logger(__name__)
|
|
@@ -30,11 +31,16 @@ def run_migration(connection: Connection) -> None:
|
|
|
30
31
|
logger.info("Running LLM migration")
|
|
31
32
|
|
|
32
33
|
try:
|
|
33
|
-
#
|
|
34
|
-
|
|
35
|
-
connection.execute(text("
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
# Test to see if the extenstion exists and then skip the migration; Needed for certain situations where db user
|
|
35
|
+
# has insufficient priviledges to run the `CREATE EXTENSION ...` command.
|
|
36
|
+
res = connection.execute(text("SELECT * FROM pg_extension where extname = 'vector';"))
|
|
37
|
+
if llm_settings.LLM_FORCE_EXTENTION_MIGRATION or res.rowcount == 0:
|
|
38
|
+
# Create PostgreSQL extensions
|
|
39
|
+
logger.info("Attempting to run the extention creation;")
|
|
40
|
+
connection.execute(text("CREATE EXTENSION IF NOT EXISTS ltree;"))
|
|
41
|
+
connection.execute(text("CREATE EXTENSION IF NOT EXISTS unaccent;"))
|
|
42
|
+
connection.execute(text("CREATE EXTENSION IF NOT EXISTS pg_trgm;"))
|
|
43
|
+
connection.execute(text("CREATE EXTENSION IF NOT EXISTS vector;"))
|
|
38
44
|
|
|
39
45
|
# Create field_type enum
|
|
40
46
|
field_type_values = "', '".join([ft.value for ft in FieldType])
|
|
@@ -492,7 +492,7 @@ def start_process(
|
|
|
492
492
|
process id
|
|
493
493
|
|
|
494
494
|
"""
|
|
495
|
-
pstat = create_process(workflow_key, user_inputs=user_inputs, user=user)
|
|
495
|
+
pstat = create_process(workflow_key, user_inputs=user_inputs, user=user, user_model=user_model)
|
|
496
496
|
|
|
497
497
|
start_func = get_execution_context()["start"]
|
|
498
498
|
return start_func(pstat, user=user, user_model=user_model, broadcast_func=broadcast_func)
|
orchestrator/workflows/steps.py
CHANGED
|
@@ -19,8 +19,6 @@ from orchestrator import llm_settings
|
|
|
19
19
|
from orchestrator.db import db
|
|
20
20
|
from orchestrator.db.models import ProcessSubscriptionTable
|
|
21
21
|
from orchestrator.domain.base import SubscriptionModel
|
|
22
|
-
from orchestrator.search.core.types import EntityType
|
|
23
|
-
from orchestrator.search.indexing import run_indexing_for_entity
|
|
24
22
|
from orchestrator.services.settings import reset_search_index
|
|
25
23
|
from orchestrator.services.subscriptions import get_subscription
|
|
26
24
|
from orchestrator.targets import Target
|
|
@@ -157,6 +155,9 @@ def refresh_subscription_search_index(subscription: SubscriptionModel | None) ->
|
|
|
157
155
|
try:
|
|
158
156
|
reset_search_index()
|
|
159
157
|
if llm_settings.SEARCH_ENABLED and subscription:
|
|
158
|
+
from orchestrator.search.core.types import EntityType
|
|
159
|
+
from orchestrator.search.indexing import run_indexing_for_entity
|
|
160
|
+
|
|
160
161
|
run_indexing_for_entity(EntityType.SUBSCRIPTION, str(subscription.subscription_id))
|
|
161
162
|
except Exception:
|
|
162
163
|
# Don't fail workflow in case of unexpected error
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
orchestrator/__init__.py,sha256=
|
|
1
|
+
orchestrator/__init__.py,sha256=PDHbvTnKlKTY2ZjagOVmLKJuswsoWBmkLo557WTHrXk,1447
|
|
2
2
|
orchestrator/agentic_app.py,sha256=op7osw7KJRww90iYuWBt_bB5qI-sAkpG0fyr0liubQw,3968
|
|
3
3
|
orchestrator/app.py,sha256=UPKQuDpg8MWNC6r3SRRbp6l9RBzwb00IMIaGRk-jbCU,13203
|
|
4
4
|
orchestrator/exception_handlers.py,sha256=UsW3dw8q0QQlNLcV359bIotah8DYjMsj2Ts1LfX4ClY,1268
|
|
5
|
-
orchestrator/llm_settings.py,sha256=
|
|
5
|
+
orchestrator/llm_settings.py,sha256=UDehiEVXkRMfmPSfCTHQX8dtH2gLCGtZK_wQTU3yISg,2316
|
|
6
6
|
orchestrator/log_config.py,sha256=1cPl_OXT4tEUyNxG8cwIWXrmadUm1E81vq0mdtrV-v4,1912
|
|
7
7
|
orchestrator/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
orchestrator/security.py,sha256=iXFxGxab54aav7oHEKLAVkTgrQMJGHy6IYLojEnD7gI,2422
|
|
@@ -276,7 +276,7 @@ orchestrator/schemas/subscription.py,sha256=-jXyHZIed9Xlia18ksSDyenblNN6Q2yM2FlG
|
|
|
276
276
|
orchestrator/schemas/subscription_descriptions.py,sha256=Ft_jw1U0bf9Z0U8O4OWfLlcl0mXCVT_qYVagBP3GbIQ,1262
|
|
277
277
|
orchestrator/schemas/workflow.py,sha256=StVoRGyNT2iIeq3z8BIlTPt0bcafzbeYxXRrCucR6LU,2146
|
|
278
278
|
orchestrator/search/__init__.py,sha256=2uhTQexKx-cdBP1retV3CYSNCs02s8WL3fhGvupRGZk,571
|
|
279
|
-
orchestrator/search/llm_migration.py,sha256=
|
|
279
|
+
orchestrator/search/llm_migration.py,sha256=BklTa8xg85b26j4dadRji_tjaIWU3L0a9B3buwuld0E,4475
|
|
280
280
|
orchestrator/search/agent/__init__.py,sha256=_b7Q43peWSi2bb3-69CThAqt_sxgoaMbHeq6erLGR00,752
|
|
281
281
|
orchestrator/search/agent/agent.py,sha256=zhDyXwRf118vH96CmKRbo5O8GKl_mnLJTDNfWgvsKeE,2450
|
|
282
282
|
orchestrator/search/agent/prompts.py,sha256=-1VLYwPecC6xroKQTc9AE9MTtg_ffAUfHUi8ZATyUMg,4556
|
|
@@ -320,7 +320,7 @@ orchestrator/services/__init__.py,sha256=GyHNfEFCGKQwRiN6rQmvSRH2iYX7npjMZn97n8X
|
|
|
320
320
|
orchestrator/services/fixed_inputs.py,sha256=kyz7s2HLzyDulvcq-ZqefTw1om86COvyvTjz0_5CmgI,876
|
|
321
321
|
orchestrator/services/input_state.py,sha256=6BZOpb3cHpO18K-XG-3QUIV9pIM25_ufdODrp5CmXG4,2390
|
|
322
322
|
orchestrator/services/process_broadcast_thread.py,sha256=D44YbjF8mRqGuznkRUV4SoRn1J0lfy_x1H508GnSVlU,4649
|
|
323
|
-
orchestrator/services/processes.py,sha256=
|
|
323
|
+
orchestrator/services/processes.py,sha256=LpJbq13UJOrNUKorwYBTV4-MJj-XLXFv6LBk7iyQgl8,30622
|
|
324
324
|
orchestrator/services/products.py,sha256=BP4KyE8zO-8z7Trrs5T6zKBOw53S9BfBJnHWI3p6u5Y,1943
|
|
325
325
|
orchestrator/services/resource_types.py,sha256=_QBy_JOW_X3aSTqH0CuLrq4zBJL0p7Q-UDJUcuK2_qc,884
|
|
326
326
|
orchestrator/services/settings.py,sha256=HEWfFulgoEDwgfxGEO__QTr5fDiwNBEj1UhAeTAdbLQ,3159
|
|
@@ -361,7 +361,7 @@ orchestrator/websocket/managers/memory_websocket_manager.py,sha256=lF5EEx1iFMCGE
|
|
|
361
361
|
orchestrator/workflows/__init__.py,sha256=NzIGGI-8SNAwCk2YqH6sHhEWbgAY457ntDwjO15N8v4,4131
|
|
362
362
|
orchestrator/workflows/modify_note.py,sha256=eXt5KQvrkOXf-3YEXCn2XbBLP9N-n1pUYRW2t8Odupo,2150
|
|
363
363
|
orchestrator/workflows/removed_workflow.py,sha256=V0Da5TEdfLdZZKD38ig-MTp3_IuE7VGqzHHzvPYQmLI,909
|
|
364
|
-
orchestrator/workflows/steps.py,sha256=
|
|
364
|
+
orchestrator/workflows/steps.py,sha256=VVLRK9_7KzrBlnK7L8eSmRMNVOO7VJBh5OSjHQHM9fU,7019
|
|
365
365
|
orchestrator/workflows/utils.py,sha256=VUCDoIl5XAKtIeAJpVpyW2pCIg3PoVWfwGn28BYlYhA,15424
|
|
366
366
|
orchestrator/workflows/tasks/__init__.py,sha256=GyHNfEFCGKQwRiN6rQmvSRH2iYX7npjMZn97n8XzmLU,571
|
|
367
367
|
orchestrator/workflows/tasks/cleanup_tasks_log.py,sha256=BfWYbPXhnLAHUJ0mlODDnjZnQQAvKCZJDVTwbwOWI04,1624
|
|
@@ -369,7 +369,7 @@ orchestrator/workflows/tasks/resume_workflows.py,sha256=T3iobSJjVgiupe0rClD34kUZ
|
|
|
369
369
|
orchestrator/workflows/tasks/validate_product_type.py,sha256=paG-NAY1bdde3Adt8zItkcBKf5Pxw6f5ngGW6an6dYU,3192
|
|
370
370
|
orchestrator/workflows/tasks/validate_products.py,sha256=kXBGZTkobfYH8e_crhdErT-ypdouH0a3_WLImmbKXcE,8523
|
|
371
371
|
orchestrator/workflows/translations/en-GB.json,sha256=ST53HxkphFLTMjFHonykDBOZ7-P_KxksktZU3GbxLt0,846
|
|
372
|
-
orchestrator_core-4.5.
|
|
373
|
-
orchestrator_core-4.5.
|
|
374
|
-
orchestrator_core-4.5.
|
|
375
|
-
orchestrator_core-4.5.
|
|
372
|
+
orchestrator_core-4.5.1.dist-info/licenses/LICENSE,sha256=b-aA5OZQuuBATmLKo_mln8CQrDPPhg3ghLzjPjLn4Tg,11409
|
|
373
|
+
orchestrator_core-4.5.1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
374
|
+
orchestrator_core-4.5.1.dist-info/METADATA,sha256=uvFveqY4ktuPNUIh7LZzgu1YpdmBCkMk77-M1j3WpAg,6250
|
|
375
|
+
orchestrator_core-4.5.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|