document llm dedupe guardrails
This commit is contained in:
parent
76802f418f
commit
14b465f076
1 changed files with 5 additions and 1 deletions
|
|
@ -241,7 +241,11 @@ async def _resolve_with_llm(
|
|||
previous_episodes: list[EpisodicNode] | None,
|
||||
entity_types: dict[str, type[BaseModel]] | None,
|
||||
) -> None:
|
||||
"""Escalate unresolved nodes to the dedupe prompt so the LLM can select or reject duplicates."""
|
||||
"""Escalate unresolved nodes to the dedupe prompt so the LLM can select or reject duplicates.
|
||||
|
||||
The guardrails below defensively ignore malformed or duplicate LLM responses so the
|
||||
ingestion workflow remains deterministic even when the model misbehaves.
|
||||
"""
|
||||
if not state.unresolved_indices:
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue