2. Vector DB in LLM
Contents
2. Vector DB in LLMยถ
Summaryยถ
Vector DB๋ LLM(๋ํ ์ธ์ด ๋ชจ๋ธ)์์ ์ค์ํ ์ญํ ์ ํฉ๋๋ค. ์ ํต์ ์ธ ๊ด๊ณํ ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ ๊ตฌ์กฐํ๋ ๋ฐ์ดํฐ๋ฅผ ์ ์ฒ๋ฆฌํ์ง๋ง, ๋น๊ตฌ์กฐํ๋ ๋ฐ์ดํฐ(ํ ์คํธ, ์ด๋ฏธ์ง, ์์ฑ ๋ฑ)์๋ ํ๊ณ๊ฐ ์์ต๋๋ค. ์ด๋ ๋ฒกํฐ ๋ฐ์ดํฐ๋ฒ ์ด์ค๊ฐ ๋ฑ์ฅํ์ฌ ์ด๋ฌํ ๋ฐ์ดํฐ๋ฅผ ํจ์จ์ ์ผ๋ก ์ฒ๋ฆฌํฉ๋๋ค. ๋ฒกํฐ ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ ๊ณ ์ฐจ์ ๋ฒกํฐ ๋ฐ์ดํฐ๋ฅผ ์ ์ฅํ๊ณ ์ ์ฌ์ฑ ๊ธฐ๋ฐ ๊ฒ์์ ์ง์ํ์ฌ LLM์ด ์์ฐ์ด๋ฅผ ์ดํดํ๊ณ ์ฒ๋ฆฌํ ์ ์๋๋ก ๋์์ค๋๋ค.
Key Conceptsยถ
Vector Database : ๊ณ ์ฐจ์ ๋ฒกํฐ ๋ฐ์ดํฐ๋ฅผ ์ ์ฅํ๊ณ ์ ์ฌ์ฑ ๊ธฐ๋ฐ ๊ฒ์์ ์ง์ํ๋ ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ก, LLM์ด ์์ฐ์ด๋ฅผ ์ดํดํ๊ณ ์ฒ๋ฆฌํ ์ ์๋๋ก ๋์์ค๋๋ค.
Embeddings : ํ ์คํธ๋ฅผ ๋ฒกํฐ๋ก ๋ณํํ์ฌ ์๋ฏธ๋ฅผ ์บก์ฒํ๋ ๋ฐฉ์์ผ๋ก, LLM์ด ํ ์คํธ์ ์๋ฏธ๋ฅผ ์ดํดํ๊ณ ์ฒ๋ฆฌํ ์ ์๋๋ก ๋์์ค๋๋ค.
Similarity Search : ๋ฒกํฐ ๋ฐ์ดํฐ๋ฒ ์ด์ค์์ ์ ์ฌํ ๋ฒกํฐ๋ฅผ ์ฐพ๋ ๊ธฐ๋ฅ์ผ๋ก, LLM์ด ๊ด๋ จ๋ ์ ๋ณด๋ฅผ ๋น ๋ฅด๊ฒ ๊ฒ์ํ ์ ์๋๋ก ๋์์ค๋๋ค.
Referencesยถ
URL Name |
URL |
---|---|
CrateDB |
https://cratedb.com/blog/llm-vector-database-what-is-a-vector-databases-for-llm |
Reddit Discussion |
https://www.reddit.com/r/vectordatabase/comments/1cm7xcn/generating_useful_context_for_llm/ |
Qwak Guide |
https://www.qwak.com/post/utilizing-llms-with-embedding-stores |
Reddit Discussion 2 |
https://www.reddit.com/r/LocalLLaMA/comments/1avayel/is_llm_necessary_for_rag_if_we_can_retreive/ |
Stack Overflow |