Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Have you met Ada? Word Embeddings with Open AI ...
Search
Diana Scharf
June 19, 2024
Programming
0
270
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
Tweet
Share
More Decks by Diana Scharf
See All by Diana Scharf
Debugging Self-Doubt: Fixing the Imposter Syndrome
dianawebdev
0
140
Other Decks in Programming
See All in Programming
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
200
AIエージェント、”どう作るか”で差は出るか? / AI Agents: Does the "How" Make a Difference?
rkaga
4
2k
360° Signals in Angular: Signal Forms with SignalStore & Resources @ngLondon 01/2026
manfredsteyer
PRO
0
140
CSC307 Lecture 08
javiergs
PRO
0
670
日本だけで解禁されているアプリ起動の方法
ryunakayama
0
240
コマンドとリード間の連携に対する脅威分析フレームワーク
pandayumi
1
470
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
5
1k
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
610
要求定義・仕様記述・設計・検証の手引き - 理論から学ぶ明確で統一された成果物定義
orgachem
PRO
1
230
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
250
AI巻き込み型コードレビューのススメ
nealle
2
1.4k
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
Featured
See All Featured
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
230
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.3k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
430
Tell your own story through comics
letsgokoyo
1
810
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.3k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
1
1.3k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
250
Un-Boring Meetings
codingconduct
0
200
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
220
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
310
Fireside Chat
paigeccino
41
3.8k
Leo the Paperboy
mayatellez
4
1.4k
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