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
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
410
AgentCoreとHuman in the Loop
har1101
5
220
Implementation Patterns
denyspoltorak
0
280
AIで開発はどれくらい加速したのか?AIエージェントによるコード生成を、現場の評価と研究開発の評価の両面からdeep diveしてみる
daisuketakeda
1
970
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
1
230
CSC307 Lecture 04
javiergs
PRO
0
650
プロダクトオーナーから見たSOC2 _SOC2ゆるミートアップ#2
kekekenta
0
190
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.3k
CSC307 Lecture 09
javiergs
PRO
1
830
CSC307 Lecture 01
javiergs
PRO
0
680
MDN Web Docs に日本語翻訳でコントリビュート
ohmori_yusuke
0
640
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
Featured
See All Featured
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
130
Building a Modern Day E-commerce SEO Strategy
aleyda
45
8.6k
First, design no harm
axbom
PRO
2
1.1k
From π to Pie charts
rasagy
0
120
Paper Plane (Part 1)
katiecoart
PRO
0
4k
Everyday Curiosity
cassininazir
0
130
Are puppies a ranking factor?
jonoalderson
1
2.7k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.7k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
56
50k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2k
Producing Creativity
orderedlist
PRO
348
40k
Utilizing Notion as your number one productivity tool
mfonobong
2
210
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