File tree Expand file tree Collapse file tree 7 files changed +57
-2
lines changed Expand file tree Collapse file tree 7 files changed +57
-2
lines changed Original file line number Diff line number Diff line change
1
+ # dspy.experimental.Citations
2
+
3
+ <!-- START_API_REF -->
4
+ ::: dspy.experimental.Citations
5
+ handler: python
6
+ options:
7
+ members:
8
+ - description
9
+ - extract_custom_type_from_annotation
10
+ - format
11
+ - from_dict_list
12
+ - serialize_model
13
+ - validate_input
14
+ show_source: true
15
+ show_root_heading: true
16
+ heading_level: 2
17
+ docstring_style: google
18
+ show_root_full_path: true
19
+ show_object_full_path: false
20
+ separate_signature: false
21
+ inherited_members: true
22
+ :::
23
+ <!-- END_API_REF -->
Original file line number Diff line number Diff line change
1
+ # dspy.experimental.Document
2
+
3
+ <!-- START_API_REF -->
4
+ ::: dspy.experimental.Document
5
+ handler: python
6
+ options:
7
+ members:
8
+ - description
9
+ - extract_custom_type_from_annotation
10
+ - format
11
+ - serialize_model
12
+ - validate_input
13
+ show_source: true
14
+ show_root_heading: true
15
+ heading_level: 2
16
+ docstring_style: google
17
+ show_root_full_path: true
18
+ show_object_full_path: false
19
+ separate_signature: false
20
+ inherited_members: true
21
+ :::
22
+ <!-- END_API_REF -->
Original file line number Diff line number Diff line change 7
7
handler: python
8
8
options:
9
9
members:
10
+ - auto_budget
10
11
- compile
12
+ - get_params
11
13
show_source: true
12
14
show_root_heading: true
13
15
heading_level: 2
Original file line number Diff line number Diff line change 12
12
- from_file
13
13
- from_url
14
14
- serialize_model
15
- - validate_input
16
15
show_source: true
17
16
show_root_heading: true
18
17
heading_level: 2
Original file line number Diff line number Diff line change 98
98
- SemanticF1 : api/evaluation/SemanticF1.md
99
99
- answer_exact_match : api/evaluation/answer_exact_match.md
100
100
- answer_passage_match : api/evaluation/answer_passage_match.md
101
+ - Experimental :
102
+ - Citations : api/experimental/Citations.md
103
+ - Document : api/experimental/Document.md
101
104
- Models :
102
105
- Embedder : api/models/Embedder.md
103
106
- LM : api/models/LM.md
Original file line number Diff line number Diff line change 80
80
dspy .InferRules ,
81
81
dspy .GEPA
82
82
],
83
+ "experimental" : [
84
+ dspy .experimental .Citations ,
85
+ dspy .experimental .Document ,
86
+ ],
83
87
}
84
88
85
89
@@ -107,7 +111,8 @@ def get_module_contents(module):
107
111
contents [name ] = obj
108
112
elif (
109
113
(inspect .isclass (obj ) or (inspect .isroutine (obj ) and should_document_method (obj )))
110
- and obj .__module__ .startswith (module .__name__ )
114
+ # classes or functions in experimental module are not located in dspy/experimental
115
+ and (obj .__module__ .startswith (module .__name__ ) or module .__name__ .startswith ("dspy.experimental" ))
111
116
and not name .startswith ("_" )
112
117
):
113
118
contents [name ] = obj
Original file line number Diff line number Diff line change 10
10
"optimizers" : "Optimizers" ,
11
11
"utils" : "Utils" ,
12
12
"tools" : "Tools" ,
13
+ "experimental" : "Experimental" ,
13
14
}
14
15
15
16
You can’t perform that action at this time.
0 commit comments