Compare commits
No commits in common. "769d3f41bf23972e155942f1c0e32b28afa57821" and "2a2179a1384d0e2484ca53f8c3ba9768df40de3e" have entirely different histories.
769d3f41bf
...
2a2179a138
@ -16,7 +16,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: atlasbot
|
app: atlasbot
|
||||||
annotations:
|
annotations:
|
||||||
checksum/atlasbot-configmap: manual-atlasbot-89
|
checksum/atlasbot-configmap: manual-atlasbot-88
|
||||||
vault.hashicorp.com/agent-inject: "true"
|
vault.hashicorp.com/agent-inject: "true"
|
||||||
vault.hashicorp.com/role: "comms"
|
vault.hashicorp.com/role: "comms"
|
||||||
vault.hashicorp.com/agent-inject-secret-turn-secret: "kv/data/atlas/comms/turn-shared-secret"
|
vault.hashicorp.com/agent-inject-secret-turn-secret: "kv/data/atlas/comms/turn-shared-secret"
|
||||||
|
|||||||
@ -3605,25 +3605,10 @@ def _open_ended_multi(
|
|||||||
|
|
||||||
def _open_ended_total_steps(mode: str) -> int:
|
def _open_ended_total_steps(mode: str) -> int:
|
||||||
if mode == "fast":
|
if mode == "fast":
|
||||||
return 3
|
return 2
|
||||||
return 7
|
return 7
|
||||||
|
|
||||||
|
|
||||||
def _fast_fact_lines(
|
|
||||||
fact_lines: list[str],
|
|
||||||
fact_meta: dict[str, dict[str, Any]],
|
|
||||||
fact_ids: list[str],
|
|
||||||
) -> list[str]:
|
|
||||||
if not fact_ids:
|
|
||||||
return fact_lines
|
|
||||||
selected = [
|
|
||||||
line
|
|
||||||
for line in fact_lines
|
|
||||||
if fact_meta.get(line, {}).get("id") in set(fact_ids)
|
|
||||||
]
|
|
||||||
return selected or fact_lines
|
|
||||||
|
|
||||||
|
|
||||||
def _open_ended_fast_single(
|
def _open_ended_fast_single(
|
||||||
prompt: str,
|
prompt: str,
|
||||||
*,
|
*,
|
||||||
@ -3657,27 +3642,6 @@ def _open_ended_fast(
|
|||||||
state: ThoughtState | None = None,
|
state: ThoughtState | None = None,
|
||||||
) -> str:
|
) -> str:
|
||||||
model = _model_for_mode("fast")
|
model = _model_for_mode("fast")
|
||||||
if state:
|
|
||||||
state.update("selecting", step=2, note="picking key facts")
|
|
||||||
subjective = _is_subjective_query(prompt)
|
|
||||||
focus_tags = _preferred_tags_for_prompt(prompt)
|
|
||||||
if not focus_tags and subjective:
|
|
||||||
focus_tags = set(_ALLOWED_INSIGHT_TAGS)
|
|
||||||
primary_ids = _open_ended_select_facts(
|
|
||||||
prompt,
|
|
||||||
fact_pack=fact_pack,
|
|
||||||
fact_meta=fact_meta,
|
|
||||||
history_lines=history_lines,
|
|
||||||
focus_tags=focus_tags,
|
|
||||||
avoid_fact_ids=[],
|
|
||||||
count=3,
|
|
||||||
subjective=subjective,
|
|
||||||
state=state,
|
|
||||||
step=2,
|
|
||||||
model=model,
|
|
||||||
)
|
|
||||||
selected_lines = _fast_fact_lines(fact_lines, fact_meta, primary_ids)
|
|
||||||
fact_pack = _fact_pack_text(selected_lines, fact_meta)
|
|
||||||
return _open_ended_fast_single(
|
return _open_ended_fast_single(
|
||||||
prompt,
|
prompt,
|
||||||
fact_pack=fact_pack,
|
fact_pack=fact_pack,
|
||||||
@ -4128,7 +4092,6 @@ def _ollama_call(
|
|||||||
"Do not suggest commands unless explicitly asked. "
|
"Do not suggest commands unless explicitly asked. "
|
||||||
"Respond in plain sentences; do not return JSON or code fences unless explicitly asked. "
|
"Respond in plain sentences; do not return JSON or code fences unless explicitly asked. "
|
||||||
"Translate metrics into natural language instead of echoing raw label/value pairs. "
|
"Translate metrics into natural language instead of echoing raw label/value pairs. "
|
||||||
"When providing counts or totals, use the exact numbers from the context; do not invent or truncate. "
|
|
||||||
"Avoid bare lists unless the user asked for a list; weave numbers into sentences. "
|
"Avoid bare lists unless the user asked for a list; weave numbers into sentences. "
|
||||||
"Do not answer by only listing runbooks; if the question is about Atlas/Othrys, summarize the cluster first and mention docs only if useful. "
|
"Do not answer by only listing runbooks; if the question is about Atlas/Othrys, summarize the cluster first and mention docs only if useful. "
|
||||||
"If the question is not about Atlas/Othrys and no cluster context is provided, answer using general knowledge and say when you are unsure. "
|
"If the question is not about Atlas/Othrys and no cluster context is provided, answer using general knowledge and say when you are unsure. "
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user