Skip to content

Commit ff351f0

Browse files
committed
small tweaks
1 parent 1649580 commit ff351f0

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

python/04-minions/demo.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def ensure_stateless(msgs):
107107
class LocalWorkerExecutor(Executor):
108108
"""Processes document chunks with the local SLM to extract relevant facts for each job."""
109109

110-
def __init__(self, name: str, client: BaseChatClient, state: MinionsState, document: str, chunk_size: int = 500):
110+
def __init__(self, name: str, client: BaseChatClient, state: MinionsState, document: str, chunk_size: int = 1000):
111111
super().__init__(id=name)
112112
self.client = client
113113
self.state = state
@@ -138,10 +138,10 @@ async def handle_decomposer_response(self, message: AgentExecutorResponse, ctx:
138138
is_failure = result_lower == "none"
139139

140140
if not is_failure and result:
141-
print(f" - SUCCESS: Found relevant result in chunk {i + 1}!")
141+
print(f" - SUCCESS: Found relevant result in chunk {i + 1}!")
142142
self.state.results.setdefault(job, []).append(result)
143143
else:
144-
print(f" - No relevant info found in chunk {i + 1}.")
144+
print(f" - No relevant info found in chunk {i + 1}.")
145145

146146
print(f" (LocalLM response: '{result}')")
147147

@@ -238,8 +238,8 @@ async def main():
238238
print(" MINIONS Protocol Demo (Agent Framework)")
239239
print("=" * 50)
240240

241-
user_query = "what did Planck and Bohr contribute to quantum mechanics and who developed the relativistic description of the wavefunction?"
242-
print(f"\nUser Query: {user_query}")
241+
user_query = "what did Planck and Bohr contribute to quantum mechanics and who developed the relativistic description of the wavefunction of an electron?"
242+
print(f"\n👩 User: {user_query}")
243243

244244
state = MinionsState(user_query=user_query)
245245
parse_jobs, has_results = create_transitions(state)

python/05-chain-of-agents/demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ async def main():
147147
print(f"📄 Document split into {len(document_chunks)} sequential chunks.\n")
148148

149149
# 1. Local SLM for the Workers (Stage 1)
150-
local_config = LocalGenerationConfig(max_tokens=250, temp=0.1, repetition_penalty=1.15)
150+
local_config = LocalGenerationConfig(max_tokens=250, temp=0.0, repetition_penalty=1.15)
151151
local_client = create_local_client(
152152
model_path=os.environ.get("LOCAL_MODEL_PATH", "phi-4-8bit"),
153153
generation_config=local_config,

0 commit comments

Comments
 (0)