dspy.evaluate.answer_passage_match

dspy.evaluate.answer_passage_match

이 페이지는 DSPy의 문서 매칭 메트릭인 answer_passage_match를 다뤄요. 답이 주어진 문서(passage) 중 하나에 포함되어 있는지를 검사하는 평가 함수예요. RAG(검색 기반 생성) 시스템에서 생성된 답이 실제로 검색된 근거 문서에서 나왔는지 확인할 때 써요.

출처: 문서

본문

answer_passage_match는 정답이 참조 문서들 안에 들어 있는지 확인해 매칭 여부를 점수로 반환해요. 답의 근거가 검색 결과에 기반을 두는지 보는 데 적합한 메트릭이에요. 이 함수의 API 레퍼런스는 아래와 같아요.

::: dspy.evaluate.answer_passage_match
    handler: python
    options:
        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)