Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Have you met Ada? Word Embeddings with Open AI ...
Search
Diana Scharf
June 19, 2024
Programming
300
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Have you met Ada? Word Embeddings with Open AI and Laravel
@ Laravel Live UK, London 2024
https://dianaweb.dev/talk/ada
Diana Scharf
June 19, 2024
More Decks by Diana Scharf
See All by Diana Scharf
Debugging Self-Doubt: Fixing the Imposter Syndrome
dianawebdev
0
150
Other Decks in Programming
See All in Programming
PumaからFalconに移行したRailsアプリケーションでの実践
falcon8823
0
180
Agents on Rails - Rails at Scale 2026
irinanazarova
0
570
AIに “答え“を書かせるのを やめてみた
___akari11
0
120
Vue Fes Japan の “作る側”に関わってみて
naokihaba
0
160
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
350
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
120
[JA] Domain Modeling with Vanilla Rails: 「操作」から再考するRailsの設計論
yasaichi
3
430
AmebaブログはKMPから卒業します
kmars0605
0
200
現場と育てるRailsモデリング 〜Spreadsheetから始めたモデル設計〜
siroemk
2
630
dotNET_vulnclicker_intro.pdf
deka_morita
0
140
個人開発者よ、Honoを使え(おじさんver)
tanahiro2010
2
260
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2.3k
Featured
See All Featured
Building AI with AI
inesmontani
PRO
1
1.3k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
Why Our Code Smells
bkeepers
PRO
340
58k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Mind Mapping
helmedeiros
1
400
Intergalactic Javascript Robots from Outer Space
tanoku
273
28k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
2.9k
How to Ace a Technical Interview
jacobian
280
24k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
The Pragmatic Product Professional
lauravandoore
37
7.5k
Transcript
Diana Scharf Laravel Live UK • June 19th, 2024 Have
you met Ada? Word Embeddings with Open AI and Laravel
DIANA SCHARF LARAVEL LIVE UK 2024 🐕 Full-Stack Code Witch
at Beyond Code dianaweb.dev pinkary.com/@dianawebdev Diana Scharf 🥨 🐘
DIANA SCHARF LARAVEL LIVE UK 2024 Word Theory
DIANA SCHARF LARAVEL LIVE UK 2024 What is a Word
Embedding?
DIANA SCHARF LARAVEL LIVE UK 2024 What is a Word
Embedding?
DIANA SCHARF LARAVEL LIVE UK 2024 A word embedding is
a vector- based representation of a word.
DIANA SCHARF LARAVEL LIVE UK 2024 Embeddings help computers to
work with human semantics.
DIANA SCHARF LARAVEL LIVE UK 2024 Usage of Embeddings Semantic
Search Content Moderation Text Classi fi cation Clustering Text Similarity
DIANA SCHARF LARAVEL LIVE UK 2024 A word embedding is
a vector- based representation of a word.
DIANA SCHARF LARAVEL LIVE UK 2024 What’s a vector?
DIANA SCHARF LARAVEL LIVE UK 2024 A vector is a
quantity with magnitude and direction in an n-dimensional space.
DIANA SCHARF LARAVEL LIVE UK 2024 cat
DIANA SCHARF LARAVEL LIVE UK 2024 Creating an embedding model
DIANA SCHARF LARAVEL LIVE UK 2024
DIANA SCHARF LARAVEL LIVE UK 2024 Flying objects in context
(wings, engine, altitude) Helicopter: ( 0 , 2 , 3 ) 0 2 3
DIANA SCHARF LARAVEL LIVE UK 2024 wings engine altitude Helicopter
0 2 3 Bird 3 0 2 Airplane 2 3 4 Bumblebee 3 0 1 Rocket 0 4 5 Flying objects in context
DIANA SCHARF LARAVEL LIVE UK 2024 Flying objects in context
DIANA SCHARF LARAVEL LIVE UK 2024 Are cats pets? DIANA
SCHARF DIANA SCHARF LARAVEL LIVE UK 2024
DIANA SCHARF LARAVEL LIVE UK 2024 King = Queen -
Man + Woman Math fun with vectors
DIANA SCHARF LARAVEL LIVE UK 2024 Dang, that’s a lot
of math.
DIANA SCHARF LARAVEL LIVE UK 2024 🐈 🐕 🚗
DIANA SCHARF LARAVEL LIVE UK 2024 How can we use
embeddings with Laravel?
DIANA SCHARF LARAVEL LIVE UK 2024 Let’s meet Ada /v1/embeddings
Price per 1M tokens MTEB text-embedding-3-small $0.02 62.3% text-embedding-3-large $0.13 64.6% text-embedding-ada-002 $0.10 61.0%
DIANA SCHARF LARAVEL LIVE UK 2024 Let’s meet Ada /v1/embeddings
Price per 1M tokens MTEB text-embedding-3-small $0.02 62.3% text-embedding-3-large $0.13 64.6% text-embedding-ada-002 $0.10 61.0% Ada Lovelace
DIANA SCHARF LARAVEL LIVE UK 2024 A token is a
sequence of characters converted into a numerical format.
DIANA SCHARF LARAVEL LIVE UK 2024 Semantic Search 1. Embed
the query or question 2. Perform nearest neighbor vector search to fi nd matching context 3. Send question with context to a chat endpoint to get a custom answer (optional)
DIANA SCHARF LARAVEL LIVE UK 2024 Thank you! dianaweb.dev/talk/ada github.com/5am-code/ada-laravel