dspy.retrievers.Embeddings
dspy.retrievers.Embeddings
임베딩을 만들어 벡터 검색을 하는 리트리버예요. k개의 가장 가까운 지문을 돌려주는 구조로, 로컬 임베딩 모델과 함께 쓰면 네트워크 없이도 검색 파이프라인을 만들 수 있어요.
출처: 문서
본문
dspy.retrievers.Embeddings는 임베딩 기반의 리트리버예요.
참고: numpy 필요 —
dspy.retrievers.Embeddings는 numpy가 필요해요.pip install dspy[numpy]로 설치하면 돼요.
아래 레퍼런스는 소스 docstring에서 자동 생성돼요.
::: dspy.Embeddings
handler: python
options:
members:
- __call__
- forward
- from_saved
- load
- save
show_source: true
show_root_heading: true
heading_level: 2
docstring_style: google
show_root_full_path: true
show_object_full_path: false
separate_signature: false
inherited_members: true
더 알아보기 (Learn more)
- ColBERTv2 — ColBERT 기반 검색
- dspy.Retrieve — 검색 모듈