You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 956df36
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/reference/index.rst
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,6 +151,9 @@ Experiments Module
151
151
152
152
**Modern evaluation framework** with decorator-based evaluators and backend-powered aggregation.
153
153
154
+
.. note::
155
+
**Session Enrichment**: The ``evaluate()`` function always enriches sessions with outputs, regardless of whether evaluators are provided. This ensures all execution results are persisted to the backend for later analysis.
156
+
154
157
.. toctree::
155
158
:maxdepth:1
156
159
@@ -417,6 +420,14 @@ Package Information
417
420
418
421
pip install honeyhive
419
422
423
+
**Example Files**:
424
+
425
+
The SDK includes example files in the ``examples/`` directory:
426
+
427
+
- ``eval_example.py`` - Demonstrates the ``evaluate()`` function with dataset evaluation and span enrichment
428
+
- ``integrations/old_sdk.py`` - Legacy SDK example showing basic tracer initialization and OpenAI integration
429
+
- ``integrations/`` - Full integration examples for various LLM providers and frameworks
return"The American Shorthair is a pedigreed cat breed, originally known as the Domestic Shorthair, that was among the first CFA-registered breeds in 1906 and was renamed in 1966 to distinguish it from random-bred domestic short-haired cats while highlighting its American origins."
24
+
25
+
dataset= [
26
+
{
27
+
"inputs": {
28
+
"context": "The Poodle, called the Pudel in German and the Caniche in French, is a breed of water dog. The breed is divided into four varieties based on size, the Standard Poodle, Medium Poodle, Miniature Poodle and Toy Poodle, although the Medium Poodle is not universally recognised. They have a distinctive thick, curly coat that comes in many colours and patterns, with only solid colours recognised by major breed registries. Poodles are active and intelligent, and are particularly able to learn from humans. Poodles tend to live 10–18 years, with smaller varieties tending to live longer than larger ones."
29
+
},
30
+
"ground_truths": {
31
+
"result": "The Poodle is an intelligent water dog breed that comes in four size varieties with a distinctive curly coat, known for its trainability and relatively long lifespan of 10-18 years."
32
+
},
33
+
},
34
+
{
35
+
"inputs": {
36
+
"context": 'The American Shorthair is a pedigree cat breed, with a strict conformation standard, as set by cat fanciers of the breed and North American cat fancier associations such as The International Cat Association (TICA) and the CFA. The breed is accepted by all North American cat registries. Originally known as the Domestic Shorthair, in 1966 the breed was renamed the American Shorthair to better represent its "all-American" origins and to differentiate it from other short-haired breeds. The name American Shorthair also reinforces the breed\'s pedigreed status as distinct from the random-bred non-pedigreed domestic short-haired cats in North America, which may nevertheless resemble the American Shorthair. Both the American Shorthair breed and the random-bred cats from which the breed is derived are sometimes called working cats because they were used for controlling rodent populations, on ships and farms. The American Shorthair (then referred to as the Domestic Shorthair) was among the first five breeds that were registered by the CFA in 1906.'
37
+
},
38
+
"ground_truths": {
39
+
"result": "The American Shorthair is a pedigreed cat breed, originally known as the Domestic Shorthair, that was among the first CFA-registered breeds in 1906 and was renamed in 1966 to distinguish it from random-bred domestic short-haired cats while highlighting its American origins."
0 commit comments