This is the error message I got:
poetry add llama-index-embeddings-ollama
Using version ^0.4.0 for llama-index-embeddings-ollama
Updating dependencies
Resolving dependencies... (0.7s)
Because no versions of llama-index-agent-openai match >0.3.0,<0.3.1 || >0.3.1,<0.3.2 || >0.3.2,<0.3.3 || >0.3.3,<0.3.4 || >0.3.4,<0.4.0
and llama-index-agent-openai (0.3.0) depends on llama-index-core (>=0.11.0,<0.12.0), llama-index-agent-openai (>=0.3.0,<0.3.1 || >0.3.1,<0.3.2 ||
>0.3.2,<0.3.3 || >0.3.3,<0.3.4 || >0.3.4,<0.4.0) requires llama-index-core (>=0.11.0,<0.12.0).
And because llama-index-agent-openai (0.3.1) depends on llama-index-core (>=0.11.0,<0.12.0)
and llama-index-agent-openai (0.3.2) depends on llama-index-core (>=0.11.0,<0.12.0), llama-index-agent-openai (>=0.3.0,<0.3.3 || >0.3.3,<0.3.4 ||
>0.3.4,<0.4.0) requires llama-index-core (>=0.11.0,<0.12.0).
And because llama-index-agent-openai (0.3.3) depends on llama-index-core (>=0.11.0,<0.12.0)
and llama-index-agent-openai (0.3.4) depends on llama-index-core (>=0.11.0,<0.12.0), llama-index-agent-openai (>=0.3.0,<0.4.0) requires llama-index-core (>=0.11.0,<0.12.0).
Because no versions of llama-index-embeddings-ollama match >0.4.0,<0.5.0
and llama-index-embeddings-ollama (0.4.0) depends on llama-index-core (>=0.12.0,<0.13.0), llama-index-embeddings-ollama (>=0.4.0,<0.5.0) requires
llama-index-core (>=0.12.0,<0.13.0).
Thus, llama-index-embeddings-ollama (>=0.4.0,<0.5.0) is incompatible with llama-index-agent-openai (>=0.3.0,<0.4.0).
So, because app depends on both llama-index-agent-openai (^0.3.0) and llama-index-embeddings-ollama (^0.4.0), version solving failed.