본문으로 건너뛰기

텍스트 임베딩과 의미 검색

문장을 벡터로 바꿔 의미가 가까운 것을 찾는다

입력텍스트표

이 페이지의 본문은 영어로 제공됩니다. 제목과 요약은 한국어로 번역되었습니다.

이 능력이 뜻하는 것

Encodes a piece of text into a fixed-length vector so that semantically similar texts sit close together, then retrieves related items by nearest-neighbour lookup. Output is a ranked result list (item ids and scores), not prose. Unlike question answering it only finds possibly relevant material; it does not compose the answer.

기술적으로 구현하는 방법

The mainstream design is a two-tower model: queries and documents are compressed by encoders, and training pushes true pairs above random negatives, typically with contrastive learning and large batches. At query time all document vectors are pre-computed into an index and an approximate nearest-neighbour search returns the top-k in milliseconds. Sparse and dense representations are often mixed to combine keyword hits with semantic recall.

대표 제품

6

Pinecone

Pinecone

관리형 벡터 데이터베이스와 유사도 검색

2능력
인프라 클로즈드 소스
2019

Hugging Face

Transformers

하나의 API로 사전학습 모델 로드와 학습

2연관
도구 오픈 소스
2018

Replicate

Replicate

API로 커뮤니티 모델 실행

1연관
플랫폼 클로즈드 소스
2019

Perplexity AI

Perplexity

검색하며 답하고, 모든 답에 출처를 붙인다

3능력
앱 프리미엄
텍스트텍스트
2022

관련 기관

대표적 용도

  • Search over enterprise documents and code
  • The recall stage of RAG pipelines
  • Deduplication, clustering and topic discovery
  • Recommendation and similar-content entry points

성능을 평가하는 방법

Recall@k
Whether the top-k contain all relevant documents
nDCG
Discounted cumulative gain that accounts for rank position
MRR
Mean reciprocal rank of the first relevant result

경계와 난점

  • Semantic similarity is not relevance: near neighbours may merely share wording
  • Cross-domain or cross-lingual use degrades noticeably without adaptation
  • Chunking long documents severs context, and answers at chunk boundaries are easily missed

뒤에 있는 개념

자연어 처리와 대규모 언어 모델

단어 임베딩입문

단어를 좌표로 바꾸면 유의어가 스스로 모이고, 의미를 처음으로 더하고 뺄 수 있다

4연관
도해 1 · 데이터 2

수학과 통계의 기초

벡터와 벡터 공간입문

AI는 단어·이미지·소리·사용자까지 모두 숫자 배열로 바꾼다

3연관
도해 1 · 데이터 1

AI 엔지니어링·안전·윤리

검색 증강 생성입문

지식을 파라미터에 밀어 넣기보다 밖에 두고 필요할 때 찾는다 — 오픈북 시험처럼

4연관
도해 2 · 데이터 1