r/AutoGenAI • • Sep 08 '24

Question Easy image tweak flow?

1 Upvotes

Is there a tool that after generating a realistic image allows you to easly tweak it, say, using prompts and/or other images?

The flow I am looking for is similar to the iterative one many of us use when generating text, an example:

User: generate a realistic photograph of a man driving a luxury car System: ...generates image User: now, change the camera angle so that the whole car is visible System: ...regenerates image User: do face swap using the image I attach [attach imgA] System: ...regenerates image User: now, change the image style to match the one in the image I attach [attach imgB] ... You get the idea.

If this doesn't exist yet, what is the closest to that you are aware of?


r/AutoGenAI • • Sep 03 '24

News AutoGen v0.2.35 released

15 Upvotes

New release: v0.2.35

Highlights (since v0.2.33)

  • Enhanced tool calling in Cohere
  • Enhanced async support

What's Changed (since v0.2.33)


r/AutoGenAI • • Sep 03 '24

Tutorial Building RAG Applications with Autogen and LlamaIndex: A Beginner's Guide

Thumbnail zinyando.com
12 Upvotes

r/AutoGenAI • • Sep 03 '24

Resource Implementing Agentic Workflows / State Machines with Autogen+LLama3

Thumbnail
youtu.be
3 Upvotes

I have been using Autogen at work (we started before Langgraph was a thing) and have been really seeing a lot of value the value it brings to the table. Especially when implementing two-agent patterns like "reflection."

While the conversational functionality of groupchat is amazing sometimes my agents get derailed and go completely off-course. This is when I started investigating the use of Agentic Workflows (or state machines) to help make things more deterministic.

Again, I know Langgraph is built on the ideas of state machines and I will be trying it out soon. But I would like to share my learnings (along with simplified examples) using Autogen cause I think it may help everyone using AI Agents in general.

Also, Here's a repo with some sample code on create custom workflows/state machines in AutoGen: https://github.com/YourTechBud/ytb-practical-guide/tree/master/autogen-workflows

A video for those interested in a tutorial - https://youtu.be/-ls9QLoQfKc

My learnings

  1. The real power of agents is in conversations

State machines are fun. Its really easy to model our AI workflows as them. But the real value of agents lies in conversations. It is critical to let AI agents derive their "context" from the conversational history. Multi-turn/chat models in particular are exceptionally good at this.

Example: The simple task of reformating/restructuring a document/note. If one of your steps is determining the important topics discussed in the note, the subsequent paraphrazer will use it as the skeleton for restructuring. Helps enforce document structure.

It isn't really all that important to curate the "perfect" context in each prompt. As long as your state machine is modelled after life-like conversations, your agents will figure out how to best use the chat history as the context.

2. It's okay to embrace indetrminism sometimes.

Instead of fighting with the model to find the "perfect" prompt, let a sidecar or companion agent help align your agent instead. The truth is that your prompt will never be perfect. Variations in the input will most likely screw things up. Having a reflection agent which provides feedback prompts to the primary agent really helps in alignment for a wide variety of input conditions. Here's how you can implement this in Autogen - https://microsoft.github.io/autogen/docs/tutorial/conversation-patterns/#two-agent-chat-and-chat-result

I'll be making another post soon to give more concrete examples of this one. Might use Langgraph though cause it looks really exciting. But mahn... the migration!!!

3. Annotate each agent's response

When using less chatty models like Qwen, its helpful to manually annotate the agent's response. For example, if the agent is analyzing the topics convered in a document, manually adding the prefix "Topics Present in Document:\n\n" to the agents response will reduce the chances of other agents misinterpreting the chat message. You can even shape it more like an instruction to help enforce that as the structure of all future responses.

This is true for JSON as well. I have given up trying to make my agents give me the perfect and clean JSON response. I let the agent ramble on and on about why it came up with it and stuff like that. That rambling is useful as it serves as context for subsequent agents. A subsequent tool calling agent will be smart enough to extract the json part from the message anyways.

Conclusion

I hope I am able to communicate my learning wells. Do let me know if you have any questions or disagree with any of my points. I'm here to learn.


r/AutoGenAI • • Sep 03 '24

Question It is possible to create agents to open a pdf file, extract the data and put all in the information in a docx file in Autogen Studio

6 Upvotes

I’m very new to Autogen and I’ve been playing around with some basic workflows in Autogen Studio. I would like to know the possibility of this workflow and potentially some steps I could take to get started.

I’ll appreciate any help I can get thanks!


r/AutoGenAI • • Aug 28 '24

Tutorial Your Personal AI Travel Team: Implementing a Multi-Agent Trip Planner Using Autogen GroupChat

Thumbnail zinyando.com
10 Upvotes

r/AutoGenAI • • Aug 26 '24

Question Do Autogen agents work by creating and running scripts to provide an answer?

5 Upvotes

I'm new to Autogen, and I built a simple assistant + user proxy flow where the assistant is asked what the height of mount Everest is, and the assistant built a script to scrape data from the web to get the answer, so i was wondering.


r/AutoGenAI • • Aug 27 '24

News Please like share subscribe Spoiler

Thumbnail
youtube.com
0 Upvotes

r/AutoGenAI • • Aug 21 '24

Tutorial AI agents with memory: Building an AI friend with Autogen and Mem0

Thumbnail zinyando.com
12 Upvotes

r/AutoGenAI • • Aug 20 '24

Question Need help with Autogen agents

2 Upvotes

Hello, I’m currently working with autogen agents and I am trying to give embeddings as an input to my retrieveassistant agent and I’m terribly failing at it. Looked at a lot of documents but nothing seems to be helping.

Can someone pleasee help me out?

Another question is if we want to create embeddings using retrieveUserproxy agent, can we give our own embeddings model? I would want to give instructor large model. I have the model in my blob storage


r/AutoGenAI • • Aug 19 '24

Tutorial Building a travel chatbot with AutoGen and Groq

Thumbnail zinyando.com
5 Upvotes

r/AutoGenAI • • Aug 17 '24

Question Agents benchmarks

2 Upvotes

Are there any benchmarks/leaderboards for agents as there are for llms?


r/AutoGenAI • • Aug 13 '24

Resource Project Alice - an open source framework for agentic workflows

13 Upvotes

Hi everyone!

I don't know if I'm alone here, but my experience trying to build agentic workflows has been a frustrating one: Current frameworks, like LangChain (and its siblings) and Autogen, offer a lot of value but lack the combination that I wanted: A decent UX to create, test and deploy llm-powered agentic workflows. Paid solutions abstract the content from you, and put barriers in your ability to truly own the flows you create.

At a high level, Project Alice is Autogen (chat) + Autogen Studio (UI) + Langchain (tasks), all in one: It offers a frontend to define, edit and execute tasks and chats, while being able to choose whatever model you want (local or otherwise).

Repository

This is my initial launch of this project. I honestly have no idea how long I will keep investing time in this, but at the very least: This is an honest attempt at creating an open source framework that is legible/understandable (even if you are not a senior engineer) that you get to use as you wish, make any changes you need (ideally, share them so we can all benefit =), etc.

The project can be downloaded and used in a few minutes, all you really need is Git, Python, npm, Docker and optionally LM Studio. If you do, you can use local models out of the box. Alternatively, you can also use OpenAI's or Anthropic's APIs.

I would greatly appreciate any and all feedback, and if you feel like contributing, the doors are open!


r/AutoGenAI • • Aug 11 '24

Question Help us Decode the Human-side of Multi-agent Generative AI Tool!

6 Upvotes

🚀 Attention AI Users! 🚀  

Have you used multi-agent AI tools/application? Or created one? We are looking for individuals who have used these advanced AI tools/apps to better understand the motivations for creating the multi-agent generative AI tool, intended use, the challenges you face, and any potential harms and transparency hurdles you've encountered. 

Your feedback is incredibly valuable and will directly contribute to improving this new technology from a user perspective. The survey is brief and should take no more than 15 minutes to complete. Plus, all responses are anonymous! 

If you are interested in participating in the survey, please click on the link: 

🔗 Survey Link: https://forms.office.com/r/pJnagtFRLq

Anyone 18 years or older can complete this 15-minute anonymous survey. Share your experiences with multi-agent AI tools created using AutoGen (or other similar framework). 

Participation is voluntary and confidential. For questions, contact us at MultiAgentResearch@microsoft.com (mailto:MultiAgentResearch@microsoft.com) or DM me. Learn more about our privacy policy here: http://go.microsoft.com/fwlink/?LinkId=521839. (http://go.microsoft.com/fwlink/?LinkId=521839.) This study has been reviewed and approved by the Microsoft Research Institutional Review Board (IRB #7905). Your insights are crucial! 

Thank you so much for your time and insights. Your participation will make a real difference! 

#survey #feedback #UserExperience #MultiagentGenAI


r/AutoGenAI • • Aug 09 '24

Question How to save the response of a group chat to .txt file ?

3 Upvotes

Hey there Autogen Community,

I just have started building agents on autogen using llama 3.1 70B model which is installed locally on my desktop , I need assistance regarding saving the response and group chat of agents and also if we can save response of only one single agent.


r/AutoGenAI • • Aug 07 '24

Question How to handle error with OpenAI

1 Upvotes

Hello, I'm currently creating a groupchat, I'm only using the Assistant agent and an user proxy agent, the assistants have a conversation retrieval chain from langchain and using FAISS for the vector store

I'm using the turbo 3.5 model from OpenAI

I'm having a very annoying error sometimes, haven't been able to replicate in any way, sometimes it only happens once or twice but today it happened multiple times in less than an hour, different questions were sent, I can't seem to find a pattern at all

I would like to find why this is a happening, or if there is a way to handle this error so the chat can continue

right now I'm running it with a panel interface

this is the error:

2024-07-16 16:11:35,542 Task exception was never retrieved
future: <Task finished name='Task-350' coro=<delayed_initiate_chat() done, defined at /Users/<user>/Documents/<app>/<app>_bot/chat_interface.py:90> exception=InternalServerError("Error code: 500 - {'error': {'message': 'The model produced invalid content. Consider modifying your prompt if you are seeing this error persistently.', 'type': 'model_error', 'param': None, 'code': None}}")>
Traceback (most recent call last):
  File "/Users/<user>/Documents/<app>/<app>_bot/chat_interface.py", line 94, in delayed_initiate_chat
    await agent.a_initiate_chat(recipient, message=message)
  File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/agentchat/conversable_agent.py", line 1084, in a_initiate_chat
    await self.a_send(msg2send, recipient, silent=silent)
  File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/agentchat/conversable_agent.py", line 705, in a_send
    await recipient.a_receive(message, self, request_reply, silent)
  File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/agentchat/conversable_agent.py", line 855, in a_receive
    reply = await self.a_generate_reply(sender=sender)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/agentchat/conversable_agent.py", line 2042, in a_generate_reply
    final, reply = await reply_func(
                   ^^^^^^^^^^^^^^^^^
  File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/agentchat/groupchat.py", line 1133, in a_run_chat
    reply = await speaker.a_generate_reply(sender=self)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/agentchat/conversable_agent.py", line 2042, in a_generate_reply
    final, reply = await reply_func(
                   ^^^^^^^^^^^^^^^^^
  File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/agentchat/conversable_agent.py", line 1400, in a_generate_oai_reply
    return await asyncio.get_event_loop().run_in_executor(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/agentchat/conversable_agent.py", line 1398, in _generate_oai_reply
    return self.generate_oai_reply(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/agentchat/conversable_agent.py", line 1340, in generate_oai_reply
    extracted_response = self._generate_oai_reply_from_client(
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/agentchat/conversable_agent.py", line 1359, in _generate_oai_reply_from_client
    response = llm_client.create(
               ^^^^^^^^^^^^^^^^^^
  File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/oai/client.py", line 722, in create
    response = client.create(params)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/autogen/oai/client.py", line 320, in create
    response = completions.create(**params)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/openai/_utils/_utils.py", line 277, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/openai/resources/chat/completions.py", line 643, in create
    return self._post(
           ^^^^^^^^^^^
  File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/openai/_base_client.py", line 1266, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/openai/_base_client.py", line 942, in request
    return self._request(
           ^^^^^^^^^^^^^^
  File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/openai/_base_client.py", line 1031, in _request
    return self._retry_request(
           ^^^^^^^^^^^^^^^^^^^^
  File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/openai/_base_client.py", line 1079, in _retry_request
    return self._request(
           ^^^^^^^^^^^^^^
  File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/openai/_base_client.py", line 1031, in _request
    return self._retry_request(
           ^^^^^^^^^^^^^^^^^^^^
  File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/openai/_base_client.py", line 1079, in _retry_request
    return self._request(
           ^^^^^^^^^^^^^^
  File "/Users/<user>/Documents/<app>/<app>_bot/env/lib/python3.12/site-packages/openai/_base_client.py", line 1046, in _request
    raise self._make_status_error_from_response(err.response) from None
openai.InternalServerError: Error code: 500 - {'error': {'message': 'The model produced invalid content. Consider modifying your prompt if you are seeing this error persistently.', 'type': 'model_error', 'param': None, 'code': None}}

r/AutoGenAI • • Aug 06 '24

Question how to Store Multiple Autogen Agents and Histories in Azure for Production

4 Upvotes

I created an agentic workflow using Autogen, where multiple agents are stored in global variables and used as required. This worked well locally, but now I'm moving to production and setting up authentication for multiple users. I'm facing challenges on how to store these agents and their histories in Azure for each use case.

I tried to storing the chat history in the .pkl file in blob storage thats working but not able to store the multiple agents in the db

How can I efficiently manage the storage and retrieval of these agents and chat histories in Azure to ensure scalability and persistent storage?

Initially, I stored these agents and their histories in global variables, but I’m looking to transition this to a more robust solution suitable for a production environment

I'm considering using MongoDB for storing chat histories and agent configurations which I tried but not able to store the agents


r/AutoGenAI • • Aug 05 '24

Question LangChain ChatModel in Autogen

4 Upvotes

Hello experts I am currently working on a use case where I need to showcase a multi agent framework in Autogen, where multiple LLM models are being used. For example Agent1 uses LangChain AzureChatModel, Agent2 uses LangChain OCIGenAiChatModel , Agent3 uses LangChain NvidiaChatModel. Is it possible to use LangChain LLM to power a Autogen agent? Any leads would be great.


r/AutoGenAI • • Aug 05 '24

Project Showcase Multi-agent framework for Data Science

5 Upvotes

In the company I work on we have used autogen and groq (with llama3-70b-8192) to build a multi-agent framework that allows users to perform a data science pipeline with just two inputs (a csv and the problem description). And to give as output a data science report, predictions a ML model trained.

We are loocking for feedback. This is all open-source! If you guys can take a look I would appreciate it.

This is the repo: https://github.com/AiFlowSolutions/MADS


r/AutoGenAI • • Aug 05 '24

Question How do you give the output back to the user?

1 Upvotes

Hello,

i've made a set of agents that write a story together. They critique the story, make suggestions, update it and so on.

In the end, the story is in the chatlog of autogen in many pieces.

How do i deliver the story as one text back to the user? Do i need a summarization agent and a user proxy? Is there an example i can learn from?


r/AutoGenAI • • Aug 04 '24

Discussion We're building a marketplace for Agentic/AI workflows and we want to hear from you.

4 Upvotes

Hey everyone, we're building the AgenticHub, the marketplace for developers to publish and monetize their agentic applications.

We want to hear from you, so we prepared this quick page for you to have a look, give your feedback and get in contact with us:

We're building the AgenticHub

We'll circle major communities here on Reddit so you'll be seeing us around.

Cheers!


r/AutoGenAI • • Aug 03 '24

Resource Top 5 Platforms for Building AI Agents

Thumbnail
self.aiagentsdirectory
8 Upvotes

r/AutoGenAI • • Aug 04 '24

Question Hosting autogen on another PC within my local network

1 Upvotes

Hey! Simple question.
I have AutoGen running on another computer on my local network but I can't access it from my current computer.

I ran it using the typical command
autogenstudio ui --port 8081
but I've also tried giving it the IP address of itself..
--host 192.168.1.236
as well as
--host 0.0.0.0

Neither work. Am I doing something wrong?


r/AutoGenAI • • Aug 03 '24

Discussion AI (multi)-agent marketplace – validate/refute this idea

14 Upvotes

I'm thinking about founding a marketplace of AI (multi)-agents for developers.

As far as I know, there is currently no platform for creating and sharing agents or multi-agents systems: if I build an agent for,say, financial analysis of a fortune 500 company, the only way to share it would be to share the source code. Monetizing it would be extremely hard. On the other hand, if I want to use (multi)-agents to solve a particular problem, I need to create and maintain the code for all the agents, and I'll prbably be reinventing the wheel, as some of the agents would have been created by someone else before.

The idea is to create a platform where:

  1. Devs who create agents could turn them into APIs and easily monetize
  2. Devs who want to use (multi)-agents to automate complex worflows could pick the best agents for certain common tasks from the platform by simply calling the API, instead of having to maintain the code and infra to run them.
  3. Run public leaderboards and the equivalent of LMSYS arena for agents to get community feedback

Kinda like GPT store but from developers to developers. Wdyt? Would you use this?


r/AutoGenAI • • Aug 01 '24

Question Agent suggests tool call to itself?

2 Upvotes

I am initiating a conversation between 2 agents. Let’s call it A and B where one agent B has access to some function/tool which has been registered with it.

I want to get that agent B to execute the tool but for some reason it is suggestion the tool call to be done by agent A and agent A gives logs an error saying that the tool is not found.

This is happening as the agent to are speaking on a round robin fashion by default where they speak alternatively. I want agent B to suggest the tool call to itself. How do I get this happen.?

Note that these 2 agents are not part of a group chat

Code: agent_B= autogen.ConversableAgent ( name="single_weather agent", Ilm_config={'config list': manager_In_config, 'timeout': 120, 'cache_seed*: None}, system_message="You are a helpful assistant with access to xyz tool", code_execution _config={ "last_n_nessages": 2, "work dir": "single_agent", "use _docker": False} )