# Entrapix: You Should Have A ConfusedAgentError

DevFeed: [Entrapix: You Should Have A ConfusedAgentError](<https://devfeed.tech/articles/entrapix-you-should-have-a-confusedagenterror-33445.md>)

Original publisher: [Read original article](<https://timkellogg.me/blog/2024/12/08/ollama-entrapix>)

Published: 2024-12-08T00:00:00Z

Content type: article

Language: en

Sources: [Tim Kellogg](<https://devfeed.tech/sources/tim-kellogg.md>)

Topics: [Ollama](<https://devfeed.tech/topics/ollama.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [systems](<https://devfeed.tech/topics/systems.md>), [API](<https://devfeed.tech/topics/api.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [api](<https://devfeed.tech/tags/api.md>), [llm](<https://devfeed.tech/tags/llm.md>), [ollama](<https://devfeed.tech/tags/ollama.md>), [rag](<https://devfeed.tech/tags/rag.md>)

## AI overview

The article introduces Entrapix, a fork of Ollama that detects high entropy and varentropy in an LLM and exits through the API when the model appears uncertain. It contrasts this approach with entropix's dynamic sampling and discusses handling confused agents with clarification or retrieval.

## Source excerpt

I just released entrapix, which is a fork of Ollama that raises a ConfusedAgentError, so to speak, when the LLM becomes unsure of itself.