Commit 64f364f
authored
docs: fix SDK API references to match actual v0.2.8 code (opensearch-project#146)
* docs: fix SDK API references to match actual v0.2.8 code
Cross-checked all SDK documentation against the actual
opensearch-genai-observability-sdk-py v0.2.8 source code and fixed
multiple discrepancies:
- Rename `Experiment` to `Benchmark` throughout (the SDK class is
`Benchmark`, not `Experiment`)
- Fix `ExperimentSummary` -> `BenchmarkSummary`, `CaseResult` ->
`TestCaseResult` in result type references
- Add missing exports to API overview table: `BenchmarkResult`,
`BenchmarkSummary`, `TestCaseResult`, `ScoreSummary`
- Remove non-existent individual extras (`[cohere]`, `[mistral]`,
`[groq]`, `[ollama]`) from auto-instrumentation table - these are
only available via `[otel-instrumentors]` bundle
- Add missing `[google]` extra to installation section
- Add missing env vars `OTEL_EXPORTER_OTLP_TRACES_PROTOCOL` and
`OTEL_EXPORTER_OTLP_PROTOCOL` to environment variables table
- Show actual default endpoint URL instead of "Data Prepper default"
- Add `Benchmark` constructor parameters documentation
- Add manual (non-context-manager) usage example for `Benchmark`
- Fix evaluation-integrations.mdx variable names for consistency
Signed-off-by: Vamsi Manohar <reddyvam@amazon.com>
* docs: fix evaluation-integrations and framework integrations pages
evaluation-integrations.mdx:
- Add version caveat Aside for third-party framework APIs
- Add install commands (pip install) for each section
- DeepEval: add tip about deepeval.evaluate() alternative
- RAGAS: add version note about v0.2+ API changes, fix iteration
to use df.iterrows() instead of enumerate(itertuples())
- MLflow: fix to use DataFrame input, add mlflow.start_run() context,
add version note about model_type deprecation in 2.12+
- pytest: move register() to conftest.py session-scoped fixture to
avoid re-initialization across test files, add install command,
rename scorer to avoid shadowing builtin
- Fix related links: restore "Experiments" in link text to match
actual page title at /docs/agent-health/evaluations/experiments/
integrations.mdx:
- CrewAI: suggest [otel-instrumentors] extra which includes CrewAI
auto-instrumentation, add note about what it provides
- OpenAI Agents SDK: add import comment clarifying package name
Signed-off-by: Vamsi Manohar <reddyvam@amazon.com>
* docs: remove agent-health experiments link from evaluation-integrations
Address review comment — keep related links consistent with evaluation.mdx.
Signed-off-by: Vamshi Vijay Nakkirtha <vamsimanohar@gmail.com>
Signed-off-by: Vamsi Manohar <reddyvam@amazon.com>
---------
Signed-off-by: Vamsi Manohar <reddyvam@amazon.com>1 parent ea76e11 commit 64f364f
6 files changed
Lines changed: 141 additions & 86 deletions
File tree
- docs/starlight-docs/src/content/docs
- ai-observability
- send-data/ai-agents
Lines changed: 78 additions & 47 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
7 | 13 | | |
8 | 14 | | |
9 | 15 | | |
| |||
12 | 18 | | |
13 | 19 | | |
14 | 20 | | |
15 | | - | |
| 21 | + | |
16 | 22 | | |
17 | 23 | | |
18 | 24 | | |
19 | | - | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
23 | | - | |
| 29 | + | |
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
| |||
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
45 | | - | |
| 51 | + | |
46 | 52 | | |
47 | 53 | | |
48 | 54 | | |
| |||
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
55 | | - | |
| 61 | + | |
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
| |||
64 | 70 | | |
65 | 71 | | |
66 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
67 | 77 | | |
68 | 78 | | |
69 | 79 | | |
70 | 80 | | |
71 | 81 | | |
72 | 82 | | |
73 | 83 | | |
74 | | - | |
| 84 | + | |
75 | 85 | | |
76 | 86 | | |
77 | 87 | | |
78 | | - | |
| 88 | + | |
79 | 89 | | |
80 | 90 | | |
81 | 91 | | |
82 | 92 | | |
83 | | - | |
| 93 | + | |
84 | 94 | | |
85 | 95 | | |
86 | 96 | | |
| |||
106 | 116 | | |
107 | 117 | | |
108 | 118 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
113 | 124 | | |
114 | 125 | | |
115 | 126 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 127 | + | |
121 | 128 | | |
122 | 129 | | |
123 | 130 | | |
124 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
125 | 136 | | |
126 | 137 | | |
127 | 138 | | |
128 | 139 | | |
129 | 140 | | |
130 | 141 | | |
131 | 142 | | |
132 | | - | |
| 143 | + | |
133 | 144 | | |
134 | 145 | | |
135 | 146 | | |
136 | | - | |
| 147 | + | |
137 | 148 | | |
| 149 | + | |
138 | 150 | | |
139 | | - | |
| 151 | + | |
140 | 152 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
146 | 158 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
152 | 167 | | |
153 | 168 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
159 | 175 | | |
160 | 176 | | |
161 | | - | |
162 | | - | |
163 | | - | |
| 177 | + | |
| 178 | + | |
164 | 179 | | |
165 | 180 | | |
166 | 181 | | |
167 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
168 | 187 | | |
169 | 188 | | |
170 | 189 | | |
171 | 190 | | |
172 | 191 | | |
173 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
174 | 197 | | |
175 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
176 | 206 | | |
177 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
178 | 210 | | |
179 | 211 | | |
180 | 212 | | |
| |||
184 | 216 | | |
185 | 217 | | |
186 | 218 | | |
187 | | - | |
188 | | - | |
| 219 | + | |
| 220 | + | |
189 | 221 | | |
190 | 222 | | |
191 | 223 | | |
| |||
199 | 231 | | |
200 | 232 | | |
201 | 233 | | |
202 | | - | |
| 234 | + | |
203 | 235 | | |
204 | 236 | | |
205 | 237 | | |
206 | 238 | | |
207 | 239 | | |
208 | | - | |
| 240 | + | |
209 | 241 | | |
210 | 242 | | |
211 | 243 | | |
212 | 244 | | |
213 | 245 | | |
214 | | - | |
| 246 | + | |
215 | 247 | | |
216 | | - | |
| |||
Lines changed: 39 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
175 | 179 | | |
176 | 180 | | |
177 | | - | |
| 181 | + | |
178 | 182 | | |
179 | | - | |
| 183 | + | |
180 | 184 | | |
181 | 185 | | |
182 | | - | |
| 186 | + | |
183 | 187 | | |
184 | 188 | | |
185 | 189 | | |
186 | | - | |
187 | | - | |
| 190 | + | |
| 191 | + | |
188 | 192 | | |
189 | 193 | | |
190 | 194 | | |
191 | 195 | | |
192 | 196 | | |
193 | 197 | | |
194 | | - | |
| 198 | + | |
195 | 199 | | |
196 | 200 | | |
197 | 201 | | |
| |||
200 | 204 | | |
201 | 205 | | |
202 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
203 | 223 | | |
204 | 224 | | |
205 | 225 | | |
| |||
208 | 228 | | |
209 | 229 | | |
210 | 230 | | |
211 | | - | |
| 231 | + | |
212 | 232 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
217 | 237 | | |
218 | 238 | | |
219 | 239 | | |
| |||
394 | 414 | | |
395 | 415 | | |
396 | 416 | | |
397 | | - | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
0 commit comments