dspy.experimental.Document
dspy.experimental.Document
이 페이지는 DSPy의 실험적 기능 Document를 다뤄요. 문서(document) 타입을 표현하고 LM 응답에서 문서 구조를 파싱하는 데 쓰는 실험적 모듈이에요. 구조화된 문서 형태의 출력이 필요한 경우에 활용할 수 있어요.
출처: 문서
본문
Document는 문서 구조를 다루는 실험적 타입 모듈로, 형식화(format)와 LM 응답 파싱(parse_lm_response)을 담당해요. 아래는 이 클래스가 노출하는 멤버 목록이에요.
::: dspy.experimental.Document
handler: python
options:
members:
- adapt_to_native_lm_feature
- description
- extract_custom_type_from_annotation
- format
- is_streamable
- parse_lm_response
- parse_stream_chunk
- serialize_model
- validate_input
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