microsoft / autogen

A programming framework for agentic AI 🤖
https://microsoft.github.io/autogen/
Creative Commons Attribution 4.0 International
31.5k stars 4.58k forks source link

[Bug]: llama_index module issue #2901

Open SushmitaSahuAI opened 3 months ago

SushmitaSahuAI commented 3 months ago

Describe the bug

I am trying to run the notebook : agentchat_group_chat_with_llamaindex_agents.ipynb i am getting the error ModuleNotFoundError: No module named 'llamaindex_conversable_agent' My env has llama-index 0.10.43 version. Can any please help me with fixing this issue

Steps to reproduce

No response

Model Used

gpt-4

Expected Behavior

No response

Screenshots and logs

No response

Additional Information

No response

andyops commented 3 months ago

Hi, Try using from autogen.agentchat.contrib import llamaindex_conversable_agent I think the example is not updated i m also facing issues

andyops commented 3 months ago

pls try using from autogen.agentchat.contrib.llamaindex_conversable_agent import LLamaIndexConversableAgent as they have updated the documentation but the examples are still old

cmmolanos2 commented 3 months ago

I have used from autogen.agentchat.contrib.llamaindex_conversable_agent import LLamaIndexConversableAgent . But I get this error:

_10 from llama_index.core.agent.runner.base import AgentRunner 11 from llama_index.core.chat_engine.types import AgentChatResponse ---> 12 from llama_index_client import ChatMessage 13 except ImportError as e: 14 logger.fatal("Failed to import llama-index. Try running 'pip install llama-index'")

ModuleNotFoundError: No module named 'llama_indexclient'

What could be the library that contains llama_index_client? Or it has another route in llama_index?

Thanks.

cmmolanos2 commented 3 months ago

It works if change : from llama_index_client import ChatMessage

To: from llama_index.core.llms import ChatMessage.

If it is an issue about llama_index version, please specify which llama_index does not generate conflict.

Thanks.

RohitTaparia commented 1 month ago

Can you provide a sample code of how did you run your Groq llm in Autogen. Very new to this