SlideShare a Scribd company logo
zzzzzzz
Turn OutSystems
application data into
AI Conversations
Using Large Language Models Tools/Function
Capability in OutSystems Developer Cloud
Stefan Weber
Senior Director Software Development
Telelink Business Services
OutSystems MVP – OutSystems Certified Trainer – AWS Community Builder
2
Topics 1. Basics – Some basic information on LLMs and
OpenAI API
2. Tool – What is a tool and how does tool calling
work.
3. Tool Calling Demo – Using OpenAI API we take a
closer look on tool calling flow in both Postman
and OutSystems
OpenAI Chat Completions API became a de-facto
standard and is used by multiple other runtimes
● AWS Bedrock Converse
● LLMStudio
● …
The OpenAI API abstracts many features that
otherwise would need to added to the prompt, like
Conversations, Tools/Function Calling and more.
LLM Parameters -> OpenAI API (Completion)
Large Language Models Interactions have the same
request-response behavior as website interactions.
They do not store anything and they do not interact
with anything else.
● Settings – Additional settings to manage the
behavior of model, like creativity or stop
sequences.
● Prompt – The prompt sent to the model for text
inference.
3
Challenge
Large Language Models (LLM) exhibit inconsistency. On occasion, they excel in
providing accurate responses to inquiries, while at other times, they simply parrot
unrelated facts extracted from their training corpus. Their occasional lapses into
inconsistency are due to their systemic limitations.
LLMs possess a statistical understanding of word relationships but lack genuine
comprehension of meaning.
4
4
5
Retrievable Augmented Generation (RAG)
RAG is a technique for improving the quality of
generated responses by an LLM. In this
process, information from external knowledge
sources, along with further instructions, is
provided to generate fact-based results.
Mitigations
Model Fine-Tuning
LLM fine-tuning is a process of adjusting and adapting
a pre-trained large language model to perform specific
tasks or to cater to a particular domain more
effectively. While fine-tuning proves effective in
emulating behaviors, it's not the best fit for cases that
require extensive domain knowledge, such as legal or
financial sectors.
RAG and Model Fine-Tuning are not mutually exclusive but should be used in combination to ensure high-quality and uniform
results.
● Ingestion – Vectorize data using an embedding
model and store them in memory.
● Retrieve – Get data from memory based on
semantic vector similarity of user input.
● Augment – Embed retrieved data into a prompt.
● Generate – Send augmented prompt to model
for text inference.
Retrieval Augmented Generation
6
You are an assistant for question-answering
tasks. Use the following pieces of retrieved
context to answer the question. If you don't know
the answer, just say that you don't know. Use
three sentences maximum and keep the answer
concise.
Question: {{question}}
Context: {{context / text_chunks}}
RAG Flow
Turn information into data – Extract data
from information sources and create
semantic vector embeddings.
▪ Query – Perform semantic similarity
search across vectorized data.
▪ Synthesize – Prepare one-shot or
chain of thought prompt instructions
and inject search results.
▪ Generate – Let LLM completions
generate tailored results based on
prompt.
7
Examples
▪ Web Search – To fetch real-time information
from the internet.
▪ Data Fetch – To retrieve specific datasets or
information from databases.
▪ Actions – Execute any sort of logic, e.g. sending
an E-Mail or adding a database record
What is a Tool?
A tool refers to an external function or service that
can be integrated to a LLM API call.
The model analyzes the users input if a tool should be
called and tries to identify necessary input
parameters for the tool. The purpose of such tools is
to add dynamic information into a conversation.
It is not the model that executes a tool. It only
returns if a tool is applicable to run.
8
● Add tools_call message to message conversation.
● Call your tool.
● Add tools result message to conversation.
● Send API request.
Tool Calling Flow
● Add Tool description and input parameters to
API request.
● LLM reasons over tools and tries to identify input
parameters from conversation.
● LLM returns either parameter clarification
question or tools call message(s).
9
Demo Tool Calling
10
Stefan Weber
Senior Director Software Development
Telelink Business Services
OutSystems MVP – OutSystems Certified Trainer – AWS Community Builder
stefan.weber@tbs.tech
+49 1590 1888452
https://www.tbs.tech
https://without.systems
https://lcnc.blog
https://www.linkedin.com/in/stefanweber1/
Ad

More Related Content

Similar to OutSystems User Group November 2024 (20)

Serverless Machine Learning
Serverless Machine LearningServerless Machine Learning
Serverless Machine Learning
Asavari Tayal
 
Build an LLM-powered application using LangChain.pdf
Build an LLM-powered application using LangChain.pdfBuild an LLM-powered application using LangChain.pdf
Build an LLM-powered application using LangChain.pdf
StephenAmell4
 
Build an LLM-powered application using LangChain.pdf
Build an LLM-powered application using LangChain.pdfBuild an LLM-powered application using LangChain.pdf
Build an LLM-powered application using LangChain.pdf
AnastasiaSteele10
 
AI presentation for dummies LLM Generative AI.pptx
AI presentation for dummies LLM Generative AI.pptxAI presentation for dummies LLM Generative AI.pptx
AI presentation for dummies LLM Generative AI.pptx
emceemouli
 
TechDayPakistan-Slides RAG with Cosmos DB.pptx
TechDayPakistan-Slides RAG with Cosmos DB.pptxTechDayPakistan-Slides RAG with Cosmos DB.pptx
TechDayPakistan-Slides RAG with Cosmos DB.pptx
Usama Wahab Khan Cloud, Data and AI
 
Introduction to RAG (Retrieval Augmented Generation) and its application
Introduction to RAG (Retrieval Augmented Generation) and its applicationIntroduction to RAG (Retrieval Augmented Generation) and its application
Introduction to RAG (Retrieval Augmented Generation) and its application
Knoldus Inc.
 
introductiontoragretrievalaugmentedgenerationanditsapplication-240312101523-6...
introductiontoragretrievalaugmentedgenerationanditsapplication-240312101523-6...introductiontoragretrievalaugmentedgenerationanditsapplication-240312101523-6...
introductiontoragretrievalaugmentedgenerationanditsapplication-240312101523-6...
nikkishrija
 
MLflow: Infrastructure for a Complete Machine Learning Life Cycle
MLflow: Infrastructure for a Complete Machine Learning Life CycleMLflow: Infrastructure for a Complete Machine Learning Life Cycle
MLflow: Infrastructure for a Complete Machine Learning Life Cycle
Databricks
 
Explore The Machine Learning and TensorFlow
Explore The Machine Learning and TensorFlowExplore The Machine Learning and TensorFlow
Explore The Machine Learning and TensorFlow
MahaKhalidALhobishi
 
artificggggggggggggggialintelligence.pdf
artificggggggggggggggialintelligence.pdfartificggggggggggggggialintelligence.pdf
artificggggggggggggggialintelligence.pdf
tt4765690
 
Roman Kyslyi: Production RAG and GraphRAG (UA)
Roman Kyslyi: Production RAG and GraphRAG (UA)Roman Kyslyi: Production RAG and GraphRAG (UA)
Roman Kyslyi: Production RAG and GraphRAG (UA)
Lviv Startup Club
 
Session 8 AI Associate Series: Fundamentals of Model Training
Session 8 AI Associate Series: Fundamentals of Model TrainingSession 8 AI Associate Series: Fundamentals of Model Training
Session 8 AI Associate Series: Fundamentals of Model Training
UiPathCommunity
 
Introduction to Machine Learning - WeCloudData
Introduction to Machine Learning - WeCloudDataIntroduction to Machine Learning - WeCloudData
Introduction to Machine Learning - WeCloudData
WeCloudData
 
Introduction to Machine Learning - WeCloudData
Introduction to Machine Learning - WeCloudDataIntroduction to Machine Learning - WeCloudData
Introduction to Machine Learning - WeCloudData
WeCloudData
 
Software_Engineering_Presentation (1).pptx
Software_Engineering_Presentation (1).pptxSoftware_Engineering_Presentation (1).pptx
Software_Engineering_Presentation (1).pptx
ArifaMehreen1
 
Sandesh_Rao_Unlocking Oracle Database Mysteries AHF Insights and the AI-LLM D...
Sandesh_Rao_Unlocking Oracle Database Mysteries AHF Insights and the AI-LLM D...Sandesh_Rao_Unlocking Oracle Database Mysteries AHF Insights and the AI-LLM D...
Sandesh_Rao_Unlocking Oracle Database Mysteries AHF Insights and the AI-LLM D...
Sandesh Rao
 
RAG v/s Fine-Tuning v/s Prompt Tuning | Advanced Prompt Engineering | RAG Ope...
RAG v/s Fine-Tuning v/s Prompt Tuning | Advanced Prompt Engineering | RAG Ope...RAG v/s Fine-Tuning v/s Prompt Tuning | Advanced Prompt Engineering | RAG Ope...
RAG v/s Fine-Tuning v/s Prompt Tuning | Advanced Prompt Engineering | RAG Ope...
mayankbanoula2
 
RAG v/s Fine-Tuning v/s Prompt Tuning | Advanced Prompt Engineering | RAG Ope...
RAG v/s Fine-Tuning v/s Prompt Tuning | Advanced Prompt Engineering | RAG Ope...RAG v/s Fine-Tuning v/s Prompt Tuning | Advanced Prompt Engineering | RAG Ope...
RAG v/s Fine-Tuning v/s Prompt Tuning | Advanced Prompt Engineering | RAG Ope...
Simplilearn
 
Natural Language Processing (NLP), RAG and its applications .pptx
Natural Language Processing (NLP), RAG and its applications .pptxNatural Language Processing (NLP), RAG and its applications .pptx
Natural Language Processing (NLP), RAG and its applications .pptx
fkyes25
 
SOFTWARE ENGINEERING PROJECT FOR AI AND APPLICATION
SOFTWARE ENGINEERING PROJECT FOR AI AND APPLICATIONSOFTWARE ENGINEERING PROJECT FOR AI AND APPLICATION
SOFTWARE ENGINEERING PROJECT FOR AI AND APPLICATION
oishis2004
 
Serverless Machine Learning
Serverless Machine LearningServerless Machine Learning
Serverless Machine Learning
Asavari Tayal
 
Build an LLM-powered application using LangChain.pdf
Build an LLM-powered application using LangChain.pdfBuild an LLM-powered application using LangChain.pdf
Build an LLM-powered application using LangChain.pdf
StephenAmell4
 
Build an LLM-powered application using LangChain.pdf
Build an LLM-powered application using LangChain.pdfBuild an LLM-powered application using LangChain.pdf
Build an LLM-powered application using LangChain.pdf
AnastasiaSteele10
 
AI presentation for dummies LLM Generative AI.pptx
AI presentation for dummies LLM Generative AI.pptxAI presentation for dummies LLM Generative AI.pptx
AI presentation for dummies LLM Generative AI.pptx
emceemouli
 
Introduction to RAG (Retrieval Augmented Generation) and its application
Introduction to RAG (Retrieval Augmented Generation) and its applicationIntroduction to RAG (Retrieval Augmented Generation) and its application
Introduction to RAG (Retrieval Augmented Generation) and its application
Knoldus Inc.
 
introductiontoragretrievalaugmentedgenerationanditsapplication-240312101523-6...
introductiontoragretrievalaugmentedgenerationanditsapplication-240312101523-6...introductiontoragretrievalaugmentedgenerationanditsapplication-240312101523-6...
introductiontoragretrievalaugmentedgenerationanditsapplication-240312101523-6...
nikkishrija
 
MLflow: Infrastructure for a Complete Machine Learning Life Cycle
MLflow: Infrastructure for a Complete Machine Learning Life CycleMLflow: Infrastructure for a Complete Machine Learning Life Cycle
MLflow: Infrastructure for a Complete Machine Learning Life Cycle
Databricks
 
Explore The Machine Learning and TensorFlow
Explore The Machine Learning and TensorFlowExplore The Machine Learning and TensorFlow
Explore The Machine Learning and TensorFlow
MahaKhalidALhobishi
 
artificggggggggggggggialintelligence.pdf
artificggggggggggggggialintelligence.pdfartificggggggggggggggialintelligence.pdf
artificggggggggggggggialintelligence.pdf
tt4765690
 
Roman Kyslyi: Production RAG and GraphRAG (UA)
Roman Kyslyi: Production RAG and GraphRAG (UA)Roman Kyslyi: Production RAG and GraphRAG (UA)
Roman Kyslyi: Production RAG and GraphRAG (UA)
Lviv Startup Club
 
Session 8 AI Associate Series: Fundamentals of Model Training
Session 8 AI Associate Series: Fundamentals of Model TrainingSession 8 AI Associate Series: Fundamentals of Model Training
Session 8 AI Associate Series: Fundamentals of Model Training
UiPathCommunity
 
Introduction to Machine Learning - WeCloudData
Introduction to Machine Learning - WeCloudDataIntroduction to Machine Learning - WeCloudData
Introduction to Machine Learning - WeCloudData
WeCloudData
 
Introduction to Machine Learning - WeCloudData
Introduction to Machine Learning - WeCloudDataIntroduction to Machine Learning - WeCloudData
Introduction to Machine Learning - WeCloudData
WeCloudData
 
Software_Engineering_Presentation (1).pptx
Software_Engineering_Presentation (1).pptxSoftware_Engineering_Presentation (1).pptx
Software_Engineering_Presentation (1).pptx
ArifaMehreen1
 
Sandesh_Rao_Unlocking Oracle Database Mysteries AHF Insights and the AI-LLM D...
Sandesh_Rao_Unlocking Oracle Database Mysteries AHF Insights and the AI-LLM D...Sandesh_Rao_Unlocking Oracle Database Mysteries AHF Insights and the AI-LLM D...
Sandesh_Rao_Unlocking Oracle Database Mysteries AHF Insights and the AI-LLM D...
Sandesh Rao
 
RAG v/s Fine-Tuning v/s Prompt Tuning | Advanced Prompt Engineering | RAG Ope...
RAG v/s Fine-Tuning v/s Prompt Tuning | Advanced Prompt Engineering | RAG Ope...RAG v/s Fine-Tuning v/s Prompt Tuning | Advanced Prompt Engineering | RAG Ope...
RAG v/s Fine-Tuning v/s Prompt Tuning | Advanced Prompt Engineering | RAG Ope...
mayankbanoula2
 
RAG v/s Fine-Tuning v/s Prompt Tuning | Advanced Prompt Engineering | RAG Ope...
RAG v/s Fine-Tuning v/s Prompt Tuning | Advanced Prompt Engineering | RAG Ope...RAG v/s Fine-Tuning v/s Prompt Tuning | Advanced Prompt Engineering | RAG Ope...
RAG v/s Fine-Tuning v/s Prompt Tuning | Advanced Prompt Engineering | RAG Ope...
Simplilearn
 
Natural Language Processing (NLP), RAG and its applications .pptx
Natural Language Processing (NLP), RAG and its applications .pptxNatural Language Processing (NLP), RAG and its applications .pptx
Natural Language Processing (NLP), RAG and its applications .pptx
fkyes25
 
SOFTWARE ENGINEERING PROJECT FOR AI AND APPLICATION
SOFTWARE ENGINEERING PROJECT FOR AI AND APPLICATIONSOFTWARE ENGINEERING PROJECT FOR AI AND APPLICATION
SOFTWARE ENGINEERING PROJECT FOR AI AND APPLICATION
oishis2004
 

Recently uploaded (20)

Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Ad

OutSystems User Group November 2024

  • 1. zzzzzzz Turn OutSystems application data into AI Conversations Using Large Language Models Tools/Function Capability in OutSystems Developer Cloud Stefan Weber Senior Director Software Development Telelink Business Services OutSystems MVP – OutSystems Certified Trainer – AWS Community Builder
  • 2. 2 Topics 1. Basics – Some basic information on LLMs and OpenAI API 2. Tool – What is a tool and how does tool calling work. 3. Tool Calling Demo – Using OpenAI API we take a closer look on tool calling flow in both Postman and OutSystems
  • 3. OpenAI Chat Completions API became a de-facto standard and is used by multiple other runtimes ● AWS Bedrock Converse ● LLMStudio ● … The OpenAI API abstracts many features that otherwise would need to added to the prompt, like Conversations, Tools/Function Calling and more. LLM Parameters -> OpenAI API (Completion) Large Language Models Interactions have the same request-response behavior as website interactions. They do not store anything and they do not interact with anything else. ● Settings – Additional settings to manage the behavior of model, like creativity or stop sequences. ● Prompt – The prompt sent to the model for text inference. 3
  • 4. Challenge Large Language Models (LLM) exhibit inconsistency. On occasion, they excel in providing accurate responses to inquiries, while at other times, they simply parrot unrelated facts extracted from their training corpus. Their occasional lapses into inconsistency are due to their systemic limitations. LLMs possess a statistical understanding of word relationships but lack genuine comprehension of meaning. 4 4
  • 5. 5 Retrievable Augmented Generation (RAG) RAG is a technique for improving the quality of generated responses by an LLM. In this process, information from external knowledge sources, along with further instructions, is provided to generate fact-based results. Mitigations Model Fine-Tuning LLM fine-tuning is a process of adjusting and adapting a pre-trained large language model to perform specific tasks or to cater to a particular domain more effectively. While fine-tuning proves effective in emulating behaviors, it's not the best fit for cases that require extensive domain knowledge, such as legal or financial sectors. RAG and Model Fine-Tuning are not mutually exclusive but should be used in combination to ensure high-quality and uniform results.
  • 6. ● Ingestion – Vectorize data using an embedding model and store them in memory. ● Retrieve – Get data from memory based on semantic vector similarity of user input. ● Augment – Embed retrieved data into a prompt. ● Generate – Send augmented prompt to model for text inference. Retrieval Augmented Generation 6 You are an assistant for question-answering tasks. Use the following pieces of retrieved context to answer the question. If you don't know the answer, just say that you don't know. Use three sentences maximum and keep the answer concise. Question: {{question}} Context: {{context / text_chunks}}
  • 7. RAG Flow Turn information into data – Extract data from information sources and create semantic vector embeddings. ▪ Query – Perform semantic similarity search across vectorized data. ▪ Synthesize – Prepare one-shot or chain of thought prompt instructions and inject search results. ▪ Generate – Let LLM completions generate tailored results based on prompt. 7
  • 8. Examples ▪ Web Search – To fetch real-time information from the internet. ▪ Data Fetch – To retrieve specific datasets or information from databases. ▪ Actions – Execute any sort of logic, e.g. sending an E-Mail or adding a database record What is a Tool? A tool refers to an external function or service that can be integrated to a LLM API call. The model analyzes the users input if a tool should be called and tries to identify necessary input parameters for the tool. The purpose of such tools is to add dynamic information into a conversation. It is not the model that executes a tool. It only returns if a tool is applicable to run. 8
  • 9. ● Add tools_call message to message conversation. ● Call your tool. ● Add tools result message to conversation. ● Send API request. Tool Calling Flow ● Add Tool description and input parameters to API request. ● LLM reasons over tools and tries to identify input parameters from conversation. ● LLM returns either parameter clarification question or tools call message(s). 9
  • 11. Stefan Weber Senior Director Software Development Telelink Business Services OutSystems MVP – OutSystems Certified Trainer – AWS Community Builder [email protected] +49 1590 1888452 https://www.tbs.tech https://without.systems https://lcnc.blog https://www.linkedin.com/in/stefanweber1/