Chanho

[RAG] Embedding model ์‚ฌ์šฉํ•ด๋ณด๊ธฐ with GeminiAPI & BGE-M3

Embedding Model ๐Ÿ’ก ์ž„๋ฒ ๋”ฉ ์ด๋ž€? ์ž„๋ฒ ๋”ฉ์€ ํ…์ŠคํŠธ์˜ ์‹œ๋งจํ‹ฑ ์˜๋ฏธ์™€ ๋งฅ๋ฝ์„ ํฌ์ฐฉํ•˜์—ฌ ์œ ์‚ฌํ•œ ์˜๋ฏธ๋ฅผ ๊ฐ€์ง„ ํ…์ŠคํŠธ์˜ ์ž„๋ฒ ๋”ฉ์ด ๋ฒกํ„ฐ ๊ณต๊ฐ„์—์„œ ๊ฐ€๊น๊ฒŒ ์œ„์น˜ํ•˜๋„๋ก ํ•œ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด โ€˜๊ฐ•์•„์ง€๋ฅผ ๋™๋ฌผ ๋ณ€์›์— ๋ฐ๋ ค๊ฐ”์Šต๋‹ˆ๋‹คโ€์™€ โ€œ๊ณ ์–‘์ด๋ฅผ ๋™๋ฌผ๋ณ‘์›์— ๋ฐ๋ ค๊ฐ”์Šต๋‹ˆ๋‹คโ€ ๋ผ๋Š” ๋ฌธ์žฅ์€ ์œ ์‚ฌํ•œ ๋งฅ๋ฝ์„ ๊ฐ€์ง€๋ฏ€๋กœ, ์ด๋“ค์˜ ์ž„๋ฒ ๋”ฉ์€ ๋ฒกํ„ฐ ๊ณต๊ฐ„์—์„œ ์„œ๋กœ ๊ฐ€๊น๊ฒŒ ์œ„์น˜ํ•ฉ...

[RAG] RAG๋Š” ๋ฌด์—‡์ด๊ณ  ํ™œ์šฉ ๋ฐฉ๋ฒ•์€ ๋ฌด์—‡์ธ๊ฐ€ with langchain

RAG (Retrieval-Augmented Generation) Large Language Model์„ ํ™•์žฅํ•˜์—ฌ, ์ฃผ์–ด์ง„ ์ปจํ…์ŠคํŠธ๋‚˜ ์งˆ๋ฌธ์— ๋Œ€ํ•ด ๋”์šฑ ์ •ํ™•ํ•˜๊ณ  ํ’๋ถ€ํ•œ ์ •๋ณด๋ฅผ ์ œ๊ณตํ•˜๋Š” ๋ฐฉ๋ฒ•์œผ๋กœ, ์งˆ๋ฌธ์— ๋Œ€ํ•œ ๋‹ต๋ณ€์„ ์ƒ์„ฑํ•˜๊ธฐ ์œ„ํ•ด ๊ฒ€์ƒ‰(Retrieval)๊ณผ ์ƒ์„ฑ(Generation)์„ ๊ฒฐํ•ฉํ•œ ์ž์—ฐ์–ด ์ฒ˜๋ฆฌ ๊ธฐ์ˆ ์ด๋‹ค. Retrieval Phase...

[LMM] Attention is All You Need๋ฅผ ์ฝ์–ด๋ณด์ž(5)_Model Architecture

์˜ค๋Š˜์€ ์ผ์ด ๋งŽ์•„ ์ž‘์„ฑํ•˜์ง€ ๋ชปํ•˜๊ณ  ์žˆ๋˜ โ€˜Attention is All You Needโ€™ ๋…ผ๋ฌธ์˜ Model Architecture ๋ถ€๋ถ„์„ ๋ฆฌ๋ทฐ ํ•˜๊ณ ์ž ํ•œ๋‹ค. Attention is All You Need - Transformer Model Attention Is All You Need Ashish Vaswani, Noam Shazeer...

[LMM] Attention is All You Need๋ฅผ ์ฝ์–ด๋ณด์ž(4)_Attention ๋ฉ”์ปค๋‹ˆ์ฆ˜์ด๋ž€?

์˜ค๋Š˜์€ ๋งˆ์ง€๋ง‰ ์‚ฌ์ „์ง€์‹์œผ๋กœ Attention Mechanism์— ๋Œ€ํ•ด ๊ณต์œ ํ•˜๊ณ ์ž ํ•œ๋‹ค. Transformer๋Š” Attention mechanism์— ํฌ๊ฒŒ ์˜์กดํ•œ๋‹ค. ์ด๋กœ ์ธํ•ด ๊ธฐ์กด์˜ RNN ๊ธฐ๋ฐ˜ ๋ชจ๋ธ๋ณด๋‹ค ํ›จ์”ฌ ํšจ์œจ์ ์ด๊ณ  ๊ฐ•๋ ฅํ•œ ์„ฑ๋Šฅ์„ ๋ฐœํœ˜ํ•  ์ˆ˜ ์žˆ๊ฒŒ ๋˜์—ˆ๋‹ค. ํŠนํžˆ, Self-Attention์€ Transformer์˜ ํ•ต์‹ฌ ์š”์†Œ๋กœ, ๋ชจ๋ธ์ด ์‹œํ€€์Šค ...

[LMM] Attention is All You Need๋ฅผ ์ฝ์–ด๋ณด์ž(3)_Seq2Seq

Transformer ์™€ Seq2Seq๋Š” ๋ชจ๋‘ ์ˆœ์ฐจ์  ๋ฐ์ดํ„ฐ์˜ ์ž…๋ ฅ๊ณผ ์ถœ๋ ฅ์„ ์ฒ˜๋ฆฌํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๋˜์ง€๋งŒ, ๊ตฌ์กฐ์™€ ์ž‘๋™์—์„œ ๋ช‡ ๊ฐ€์ง€ ์ค‘์š”ํ•œ ์ฐจ์ด์ ์ด ์žˆ๋‹ค. ์˜ค๋Š˜์€ Seq2Seq๋Š” ๋ฌด์—‡์ด๊ณ  Transformer๊ณผ์˜ ์ฐจ์ด๋Š” ๋ฌด์—‡์ธ์ง€์— ๋Œ€ํ•ด ๊ฐ„๋‹จํ•˜๊ฒŒ ์•Œ์•„๋ณด๊ณ ์ž ํ•œ๋‹ค. Seq2Seq Model Seq2Seq ๋ชจ๋ธ์€ ์ž…๋ ฅ ์‹œํ€€์Šค(๋ฌธ์žฅ)๋ฅผ ๋ฐ›์•„ ์ถœ๋ ฅ ...

[LMM] Attention is All You Need๋ฅผ ์ฝ์–ด๋ณด์ž(2)_CNN ๊ณผ RNN์— ๋Œ€ํ•ด์„œ

์–ด์ œ ๊ฐ„๋‹จํ•˜๊ฒŒ Attention is All You Need๋ฅผ ์ฝ์œผ๋ฉฐ Intro์—์„œ ์‚ฌ์ „ ์ง€์‹์œผ๋กœ ๊ฐ„๋‹จํ•˜๊ฒŒ ์•Œ๋ฉด ์ข‹์„ ๊ฑฐ ๊ฐ™์€ ๋ช‡๋ช‡๊ฐœ์˜ ํ‚ค์›Œ๋“œ๋ฅผ ์ถ”๋ ธ๋‹ค. ๊ทธ์ค‘์—์„œ ์˜ค๋Š˜์€ โ€˜RNNโ€™๊ณผ โ€˜CNNโ€™์— ๋Œ€ํ•ด ๊ฐ„๋‹จํ•˜๊ฒŒ ์‚ดํŽด๋ณด๊ณ ์ž ํ•œ๋‹ค. CNN(Convolutional Neural Networks) CNN์€ ์ธ๊ฐ„์˜ ์‹œ์‹ ๊ฒฝ ๊ตฌ์กฐ๋ฅผ ๋ชจ๋ฐฉํ•œ ์ด๋ฏธ์ง€ ๋ฐ...

[LMM] Attention is All You Need๋ฅผ ์ฝ์–ด๋ณด์ž(1)

ํšŒ์‚ฌ์— ๋“ค์–ด์™€ ์•ฝ ๋ฐ˜๋…„์ด ์•ˆ๋˜๋Š” ์‹œ๊ฐ„๋™์•ˆ Large Vision Language Model์„ ์—ฐ๊ตฌ ์ค‘ ์ด๋‹ค. ํ”„๋กœ์ ํŠธ๋กœ ์ธํ•ด ๋‹ฌ๋ฆฌ๊ธฐ๋งŒ ํ•˜๋‹ค๋ณด๋‹ˆ ๊ธฐ์ดˆ๊ฐ€ ํƒ„ํƒ„ํ•˜์ง€ ๋ชปํ•˜๋‹ค๋Š” ์ƒ๊ฐ์ด ๋“ค์–ด ์ฒ˜์Œ ์ฝ์–ด ๋ณด๋Š” ๊ฑด ์•„๋‹ˆ์ง€๋งŒ, ๊ทผ๋ณธ ๋…ผ๋ฌธ์ธ โ€˜Attention is All You Needโ€™ ๋ถ€ํ„ฐ ์ž์„ธํžˆ ์ฝ์–ด๋ณด๊ณ ์ž ํ•œ๋‹ค. Attention is All You N...

[Flutter] Flutter๋ž€ ๋ฌด์—‡์ด๊ณ  ๊ธฐ๋ณธ ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ์„ ํ†ตํ•œ ๊ตฌ์กฐ ์ดํ•ด

Android, ios์— ๋ชจ๋‘ ๋Œ€์‘ํ•  ์ˆ˜ ์žˆ๋Š” ๊ฐœ๋ฐœ ๋ฐฉ์‹์œผ๋กœ ๋ชจ๋ฐ”์ผ ํฌ๋กœ์Šค ํ”Œ๋žซํผ ๋ฐฉ์‹์ด ์žˆ๋‹ค. ํฌ๋กœ์Šค ํ”Œ๋žซํผ ๊ฐœ๋ฐœ ํ”„๋ ˆ์ž„์›Œํฌ๋กœ๋Š” ํ˜„ ์‹œ์ ์—์„œ๋Š” ํฌ๊ฒŒ โ€˜React-nativeโ€™ ์™€ โ€˜flutterโ€™๋กœ ๋‚˜๋‰˜์—ˆ๋‹ค๊ณ  ๋ณธ๋‹ค. ๊ทธ ์ค‘ ์šฐ๋ฆฌ๋Š” โ€˜Flutterโ€™ ๋ฌด์—‡์ธ์ง€์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๊ณ ์ž ํ•œ๋‹ค. ์ถœ์ฒ˜ ํฌ๋กœ์Šค ํ”Œ๋žซํผ ์ด๋ž€? ํฌ๋กœ์Šค ํ”Œ๋žซํผ์ด๋ž€ ์—ฌ๋Ÿฌ ์šด์˜์ฒด...

ยฉ chanho. Some rights reserved.