SlideShare ist ein Scribd-Unternehmen logo
1 von 22
More than the sum of its parts
Building Multi-Agent
systems with AutoGen
Nico Kreiling
Nico Kreiling
Nico Kreiling
Data Scientist @ scieneers
Host of techtiefen.de
We gain knowledge from data and create
value. For our customers, society and
ourselves.
Most minimal repitition of modern LLMs
Genera&ve Pretrained Transformers (GPT)
à Huge LLMs to predict the next token
Instruc&on Tuning
à Fine Tuning technique to teach language model to
follow user intents
ChatGPT / gpt-3.5-turbo
à GPT3 + instruc@on tuning by OpenAI
Func&on Calling feature in LLMs
à Ability to decide, that it would be beneficial to call
an abstract func@on
Reading-Tip for an intui1ve explana1on of transformers: h9ps://ig.<.com/genera1ve-ai/
Agents
• Leverage power of LLMs to implement
custom business logic
• Remember a full conversa@on (statefull)
• Can execute func@ons (i.e. run a cypher
query and return the result
Large-Language-Models
• Trained to do text genera@on
• Does not have any history (stateless)
• Can recommend call a func@on (i.e. to
execute some Cypher-Query)
From Large Language Models to Agents: What are the differences?
Autogen enables the seamless creation of flexible multi-
agent conversations
• Open Source project mainly developed by microso6 employees
• Focus on the easy crea9on of llm agent applica9ons in many varia9ons:
- Simple interac9on with one agent
- Explicitley modeled conversa9ons between agents
- Interac9ve Groupchats
• Offers some more nice features such as:
- Caching of repeated requests
- Usage Summary with cost tracking
- Unified model API to use different providers and models
- Hyper Parameter Op9miza9on
- Templa9ng
• Recently Released Autogen Studio UI
Autogen offers three types of agents
- UserProxyAgent:
• Represents the user (sends his messages, gets his feedback…)
• Executes func9ons (python interpreter, browsing…)
- AssistantAgent
• An LLM configured with a system message and func9on calling
• The main part to adapt according to own needs
- GroupChatManager
• Used in group conversa9ons to manage message flow
• Can follow simple heuris9cs or use LLM calls to decide to
coordinate between agents
How to create a chat with AutoGen?
Demo 1
Idea: Connect multiple data sources using LLMs
Problem: Big companies have a lot of data in many
different loca@ons and systems.
Combining them into one huge datalake is difficult,
because of different schemas, conven1ons and
technologies used.
Idea: Can we use a chatbot to inui@vely ask ques@ons
regarding all those heterogenous data sources
(knowledge graphs, text-blobs, tables…)?
Knowledge Graphs represents a network of real-world
entities and illustrates the relationship between them
Usually stored in Graph Databases
(neo4j, Memgraph, Nebula Graph…),
or RDF stores (Apache Jeno, Amazon
Neptune, Virtuoso…)
Querried by a dedicated language such as
Cypher, SPARQL, Gremlin…
The BeTrend Knowledge Graph
Trend
word
Country
Crawl
Related
Topic
Henry Kissinger
Datum: 2023-12-01
Country: Germany
Source: v3wikipediatrends
topic: Nancy Kissinger
type: American philanthropist ‧
Henry Kissinger's wife
eid: Nancy Kissinger
wikiTypes: Agent,Person
wikidataID: Q6962785
wikipedia: http://en.wikipedia.org/
wiki/Nancy_Kissinger
Data Sources:
En3ty
Ways to interact with a knowledge graph
Op@on 2: Directly query the knowledge graph
à ChatGPT writes surprisingly good cypher querries when
given a schema and some examples.
Op@on 1: Using predefined querries using APIs:
à Works, but limited flexibility (and boring)
But Problema-c when asked for exact terms that might have different
spellings or formula9ons
Lexical search does not work well though short length
Vector search performs bad as names are mostly unkown to
tokenizer
Solu9on: Using Wikidata search that knows pseudonyms and
takes term popularity into account
Retry mechanism in case of errors, providing the error message with
some hints to the query generator
👱What were the most important trends in Denmark on the first of Octobre 2022?
MATCH (c:CountryCrawl {country: "denmark", day: 1, month: 10, year: 2022})-
[:DAYTREND]-(t:Trendword)
WITH t, t.rank as rank
ORDER BY rank ASC
LIMIT 3
RETURN t.trendword AS popular_trendword
BeTrend
Using ChatGPT to interact with the BeTrend-Knowledge-
Graph
• A user asks about trends that relate to Angela
Merkel
• The Coder realizes, that Angela Merkel is an
en9ty, therefore he should look up the wikidata
ID
• Using this wikidata ID, he constructs a cypher
query and passes that one into a func9on call to
run it on the BeTrend Neo4j instance
• If the result is to big for the agents conext size or
empty, corresponding error message will be
passed back to the coder to do another try
• If the cypher query was successful, the agent
reads the JSON response and creates an answer
in natural language
👨💻
👱
Trends related to
Angela Merkel
Angela Merkel =>
Q567
MATCH … => {json}
Angela Merkel related to
the trends…
Cypher-Coder: Your task is to answer questions
using Neo4j. Therefore convert questions to
Cypher queries and run them using provided tools.
Use only the provided relationship types and
properties. Cypher Schema: {schema-info}
User
Demo 2
Connect multiple data sources using Large-Language-
Models
Title: Scholz weist Erdogan in die Schranken:
Israel-Vorwürfe sind „absurd“!
Source: Bild
Date: 15.11.2023
Vector: [0.234, 0.012, 0.03..
Vector-Datbases:
Used to store ar3cles with full-text
Provides a capable vector-search
op3on to search for similar texts
Has Filtering capabili3es
You are an helpful AI,
that answers user ques@ons
using tools:
🤖
Neo4j: Can run cypher querries.
Helpful for analy@cal ques@ons
regarding en@@es and trends.
Use the following schema when genera@on
cypher code: {schema-info-in-JSON}
Graph-Database:
Used to store different types of data
points (such as trend or en33es) and
their rela3onship
Not intended to store long texts
Could also be used in combina3on
with vector search
Sparql-Querries: [really-complicated-schema….]
Qdrant: A tool to search full text
informa@on from ar@cles
Webbrowsing…
Agents
• Leverage power of LLMs to implement
custom business logic
• Remember a full conversa@on (statefull)
• Can execute func@ons (i.e. run a cypher
query and return the result
Divide and Conquer – Combining multiple agents together
Mul&-Agent System
• Configure each agent with a specific system
message and model configura@ons
• Agents use only relevant parts of message
history
• One dedicated model execu@on point
How to create a dynamic groupchat with AutoGen?
Demo 3
👱
✍
👩💻
👨🔬
👩💼 👨💻
User
I am the coordinator, I
deligate ques;ons
I can help with analy;cal ques;ons
by querying BeTrend as well as full-
text-lookups
I can write ar;cles in
different styles using
given informa;on
I can look up informa;on
in the RTL+ Graph
I construct SPARQL querries for
RTL+ Knowledge graph. Use me
with care!
Future
❓
Poten;ally more sources
to come
Future
What trends every year on the
21. of december
In many years, the beginning of
winter is a trending topic on the 21.
of december
👱
✍
👩💻
👨🔬
👩💼 👨💻
User
I am the coordinator, I
deligate ques;ons
I can help with analy;cal ques;ons
by querying BeTrend as well as full-
text-lookups
I can write ar;cles in
different styles using
given informa;on
I can look up informa;on
in the RTL+ Graph
I construct SPARQL querries for
RTL+ Knowledge graph. Use me
with care!
Future
❓
Poten;ally more sources
to come
Future
Write an arLcle about this in
the style of bild. Use their
previous informaLon.
Darum gibt es zwei Daten für den
Winteranfang…
Wann ist eigentlich Winteranfang?
Top 5 Fakten zum Winteranfang
die du sicher noch nicht kennst…
Demo 4
Summary: Agents are great, might be even better
Some Take-Aways:
• Agents with code execu9on are really powerfull
• It is easy to get started
• The genera9on of cypher querries works well with a limited schema
Benefits of using Mul-ple Agents
• More fine-grained control on models to use and their configura9on
• Possibility to define dedicated system messages
Downsides of using mul-ple agents:
• AutoGen, as all other LLM frameworks, is s9ll work in progress
• Simply trus9ng the group chat manager to pick the right agent is not
enough
• Models have trouble to evaluate if their answer is sufficient
• Much more requests (therefore poten9ally more expensive)

Weitere ähnliche Inhalte

Kürzlich hochgeladen

Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangaloreamitlee9823
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramMoniSankarHazra
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...amitlee9823
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxolyaivanovalion
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Delhi Call girls
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsJoseMangaJr1
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionfulawalesam
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...amitlee9823
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfadriantubila
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...amitlee9823
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...amitlee9823
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightDelhi Call girls
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% SecurePooja Nehwal
 

Kürzlich hochgeladen (20)

Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics Program
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 

Empfohlen

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 

Empfohlen (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

More than the sum of its parts - Building Multi-Agent systems with AutoGen

  • 1. More than the sum of its parts Building Multi-Agent systems with AutoGen Nico Kreiling
  • 2. Nico Kreiling Nico Kreiling Data Scientist @ scieneers Host of techtiefen.de We gain knowledge from data and create value. For our customers, society and ourselves.
  • 3. Most minimal repitition of modern LLMs Genera&ve Pretrained Transformers (GPT) à Huge LLMs to predict the next token Instruc&on Tuning à Fine Tuning technique to teach language model to follow user intents ChatGPT / gpt-3.5-turbo à GPT3 + instruc@on tuning by OpenAI Func&on Calling feature in LLMs à Ability to decide, that it would be beneficial to call an abstract func@on Reading-Tip for an intui1ve explana1on of transformers: h9ps://ig.<.com/genera1ve-ai/
  • 4. Agents • Leverage power of LLMs to implement custom business logic • Remember a full conversa@on (statefull) • Can execute func@ons (i.e. run a cypher query and return the result Large-Language-Models • Trained to do text genera@on • Does not have any history (stateless) • Can recommend call a func@on (i.e. to execute some Cypher-Query) From Large Language Models to Agents: What are the differences?
  • 5. Autogen enables the seamless creation of flexible multi- agent conversations • Open Source project mainly developed by microso6 employees • Focus on the easy crea9on of llm agent applica9ons in many varia9ons: - Simple interac9on with one agent - Explicitley modeled conversa9ons between agents - Interac9ve Groupchats • Offers some more nice features such as: - Caching of repeated requests - Usage Summary with cost tracking - Unified model API to use different providers and models - Hyper Parameter Op9miza9on - Templa9ng • Recently Released Autogen Studio UI
  • 6. Autogen offers three types of agents - UserProxyAgent: • Represents the user (sends his messages, gets his feedback…) • Executes func9ons (python interpreter, browsing…) - AssistantAgent • An LLM configured with a system message and func9on calling • The main part to adapt according to own needs - GroupChatManager • Used in group conversa9ons to manage message flow • Can follow simple heuris9cs or use LLM calls to decide to coordinate between agents
  • 7. How to create a chat with AutoGen?
  • 9. Idea: Connect multiple data sources using LLMs Problem: Big companies have a lot of data in many different loca@ons and systems. Combining them into one huge datalake is difficult, because of different schemas, conven1ons and technologies used. Idea: Can we use a chatbot to inui@vely ask ques@ons regarding all those heterogenous data sources (knowledge graphs, text-blobs, tables…)?
  • 10. Knowledge Graphs represents a network of real-world entities and illustrates the relationship between them Usually stored in Graph Databases (neo4j, Memgraph, Nebula Graph…), or RDF stores (Apache Jeno, Amazon Neptune, Virtuoso…) Querried by a dedicated language such as Cypher, SPARQL, Gremlin…
  • 11. The BeTrend Knowledge Graph Trend word Country Crawl Related Topic Henry Kissinger Datum: 2023-12-01 Country: Germany Source: v3wikipediatrends topic: Nancy Kissinger type: American philanthropist ‧ Henry Kissinger's wife eid: Nancy Kissinger wikiTypes: Agent,Person wikidataID: Q6962785 wikipedia: http://en.wikipedia.org/ wiki/Nancy_Kissinger Data Sources: En3ty
  • 12. Ways to interact with a knowledge graph Op@on 2: Directly query the knowledge graph à ChatGPT writes surprisingly good cypher querries when given a schema and some examples. Op@on 1: Using predefined querries using APIs: à Works, but limited flexibility (and boring) But Problema-c when asked for exact terms that might have different spellings or formula9ons Lexical search does not work well though short length Vector search performs bad as names are mostly unkown to tokenizer Solu9on: Using Wikidata search that knows pseudonyms and takes term popularity into account Retry mechanism in case of errors, providing the error message with some hints to the query generator 👱What were the most important trends in Denmark on the first of Octobre 2022? MATCH (c:CountryCrawl {country: "denmark", day: 1, month: 10, year: 2022})- [:DAYTREND]-(t:Trendword) WITH t, t.rank as rank ORDER BY rank ASC LIMIT 3 RETURN t.trendword AS popular_trendword
  • 13. BeTrend Using ChatGPT to interact with the BeTrend-Knowledge- Graph • A user asks about trends that relate to Angela Merkel • The Coder realizes, that Angela Merkel is an en9ty, therefore he should look up the wikidata ID • Using this wikidata ID, he constructs a cypher query and passes that one into a func9on call to run it on the BeTrend Neo4j instance • If the result is to big for the agents conext size or empty, corresponding error message will be passed back to the coder to do another try • If the cypher query was successful, the agent reads the JSON response and creates an answer in natural language 👨💻 👱 Trends related to Angela Merkel Angela Merkel => Q567 MATCH … => {json} Angela Merkel related to the trends… Cypher-Coder: Your task is to answer questions using Neo4j. Therefore convert questions to Cypher queries and run them using provided tools. Use only the provided relationship types and properties. Cypher Schema: {schema-info} User
  • 15. Connect multiple data sources using Large-Language- Models Title: Scholz weist Erdogan in die Schranken: Israel-Vorwürfe sind „absurd“! Source: Bild Date: 15.11.2023 Vector: [0.234, 0.012, 0.03.. Vector-Datbases: Used to store ar3cles with full-text Provides a capable vector-search op3on to search for similar texts Has Filtering capabili3es You are an helpful AI, that answers user ques@ons using tools: 🤖 Neo4j: Can run cypher querries. Helpful for analy@cal ques@ons regarding en@@es and trends. Use the following schema when genera@on cypher code: {schema-info-in-JSON} Graph-Database: Used to store different types of data points (such as trend or en33es) and their rela3onship Not intended to store long texts Could also be used in combina3on with vector search Sparql-Querries: [really-complicated-schema….] Qdrant: A tool to search full text informa@on from ar@cles Webbrowsing…
  • 16. Agents • Leverage power of LLMs to implement custom business logic • Remember a full conversa@on (statefull) • Can execute func@ons (i.e. run a cypher query and return the result Divide and Conquer – Combining multiple agents together Mul&-Agent System • Configure each agent with a specific system message and model configura@ons • Agents use only relevant parts of message history • One dedicated model execu@on point
  • 17. How to create a dynamic groupchat with AutoGen?
  • 19. 👱 ✍ 👩💻 👨🔬 👩💼 👨💻 User I am the coordinator, I deligate ques;ons I can help with analy;cal ques;ons by querying BeTrend as well as full- text-lookups I can write ar;cles in different styles using given informa;on I can look up informa;on in the RTL+ Graph I construct SPARQL querries for RTL+ Knowledge graph. Use me with care! Future ❓ Poten;ally more sources to come Future What trends every year on the 21. of december In many years, the beginning of winter is a trending topic on the 21. of december
  • 20. 👱 ✍ 👩💻 👨🔬 👩💼 👨💻 User I am the coordinator, I deligate ques;ons I can help with analy;cal ques;ons by querying BeTrend as well as full- text-lookups I can write ar;cles in different styles using given informa;on I can look up informa;on in the RTL+ Graph I construct SPARQL querries for RTL+ Knowledge graph. Use me with care! Future ❓ Poten;ally more sources to come Future Write an arLcle about this in the style of bild. Use their previous informaLon. Darum gibt es zwei Daten für den Winteranfang… Wann ist eigentlich Winteranfang? Top 5 Fakten zum Winteranfang die du sicher noch nicht kennst…
  • 22. Summary: Agents are great, might be even better Some Take-Aways: • Agents with code execu9on are really powerfull • It is easy to get started • The genera9on of cypher querries works well with a limited schema Benefits of using Mul-ple Agents • More fine-grained control on models to use and their configura9on • Possibility to define dedicated system messages Downsides of using mul-ple agents: • AutoGen, as all other LLM frameworks, is s9ll work in progress • Simply trus9ng the group chat manager to pick the right agent is not enough • Models have trouble to evaluate if their answer is sufficient • Much more requests (therefore poten9ally more expensive)