-
Notifications
You must be signed in to change notification settings - Fork 467
chore(llmobs): dataframe and csv support #14041
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 16 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
9e3ae0d
dataframe and csv support
gary-huang e9da8e2
black and hatch
gary-huang f7fbfb6
chore(llmobs): fix misc experiments stuff
Kyle-Verhoog ce17651
black
gary-huang 0331473
Update ddtrace/llmobs/_experiment.py
gary-huang 7bb80ed
Update ddtrace/llmobs/_experiment.py
gary-huang 319e799
address comments
gary-huang 5424718
fmt
Kyle-Verhoog aa84929
Merge branch 'llmobs/exp-fixes' into gary/mlob-3266
gary-huang 5763329
revert create_dataset push, this will be done in another PR
gary-huang dc389ea
add more tests
gary-huang 9ea72f3
Merge branch 'main' into gary/mlob-3266
gary-huang ebc060e
wip push on create csV
gary-huang 4c90872
push on create csv
gary-huang 772c544
restore setup
gary-huang 59b9937
black
gary-huang 2ca92fe
address comments
gary-huang 0d94cbb
riotfiles
Kyle-Verhoog f53d149
ruff
gary-huang e9705d9
type check
gary-huang 6f625e3
missing cassette?
gary-huang cf5376f
Merge branch 'main' into gary/mlob-3266
Yun-Kim 10fea87
Revert earlier change removing config from tasks
Yun-Kim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
..._llm-obs_v1_datasets_8dbba503-cf48-4e82-805e-1d9cb46e5ed3_batch_update_post_466da69c.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| interactions: | ||
| - request: | ||
| body: '{"data": {"type": "datasets", "id": "8dbba503-cf48-4e82-805e-1d9cb46e5ed3", | ||
| "attributes": {"insert_records": [{"input": {"in0": "r0v1", "in1": "r0v2", "in2": | ||
| "r0v3"}, "expected_output": {"out0": "r0v4", "out1": "r0v5"}, "metadata": {}}, | ||
| {"input": {"in0": "r1v1", "in1": "r1v2", "in2": "r1v3"}, "expected_output": | ||
| {"out0": "r1v4", "out1": "r1v5"}, "metadata": {}}], "update_records": [], "delete_records": | ||
| []}}}' | ||
| headers: | ||
| Accept: | ||
| - '*/*' | ||
| ? !!python/object/apply:multidict._multidict.istr | ||
| - Accept-Encoding | ||
| : - identity | ||
| Connection: | ||
| - keep-alive | ||
| Content-Length: | ||
| - '410' | ||
| ? !!python/object/apply:multidict._multidict.istr | ||
| - Content-Type | ||
| : - application/json | ||
| User-Agent: | ||
| - python-requests/2.32.3 | ||
| method: POST | ||
| uri: https://api.datadoghq.com/api/unstable/llm-obs/v1/datasets/8dbba503-cf48-4e82-805e-1d9cb46e5ed3/batch_update | ||
| response: | ||
| body: | ||
| string: '{"data":[{"id":"79dc4c72-e4fd-4de7-b46e-419b8072a207","type":"datasets","attributes":{"author":{"id":"de473b30-eb9f-11e9-a77a-c7405862b8bd"},"created_at":"2025-07-23T02:50:48.152449869Z","dataset_id":"8dbba503-cf48-4e82-805e-1d9cb46e5ed3","expected_output":{"out0":"r0v4","out1":"r0v5"},"input":{"in0":"r0v1","in1":"r0v2","in2":"r0v3"},"metadata":{},"updated_at":"2025-07-23T02:50:48.152449869Z","version":1}},{"id":"f0f3fe26-1060-452f-a292-30b1293dd5a1","type":"datasets","attributes":{"author":{"id":"de473b30-eb9f-11e9-a77a-c7405862b8bd"},"created_at":"2025-07-23T02:50:48.152449869Z","dataset_id":"8dbba503-cf48-4e82-805e-1d9cb46e5ed3","expected_output":{"out0":"r1v4","out1":"r1v5"},"input":{"in0":"r1v1","in1":"r1v2","in2":"r1v3"},"metadata":{},"updated_at":"2025-07-23T02:50:48.152449869Z","version":1}}]}' | ||
| headers: | ||
| content-length: | ||
| - '812' | ||
| content-security-policy: | ||
| - frame-ancestors 'self'; report-uri https://logs.browser-intake-datadoghq.com/api/v2/logs?dd-api-key=pube4f163c23bbf91c16b8f57f56af9fc58&dd-evp-origin=content-security-policy&ddsource=csp-report&ddtags=site%3Adatadoghq.com | ||
| content-type: | ||
| - application/vnd.api+json | ||
| date: | ||
| - Wed, 23 Jul 2025 02:50:48 GMT | ||
| strict-transport-security: | ||
| - max-age=31536000; includeSubDomains; preload | ||
| vary: | ||
| - Accept-Encoding | ||
| x-content-type-options: | ||
| - nosniff | ||
| x-frame-options: | ||
| - SAMEORIGIN | ||
| status: | ||
| code: 200 | ||
| message: OK | ||
| version: 1 |
45 changes: 45 additions & 0 deletions
45
...stable_llm-obs_v1_datasets_8dbba503-cf48-4e82-805e-1d9cb46e5ed3_records_get_46238641.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| interactions: | ||
| - request: | ||
| body: null | ||
| headers: | ||
| Accept: | ||
| - '*/*' | ||
| ? !!python/object/apply:multidict._multidict.istr | ||
| - Accept-Encoding | ||
| : - identity | ||
| Connection: | ||
| - keep-alive | ||
| ? !!python/object/apply:multidict._multidict.istr | ||
| - Content-Length | ||
| : - '0' | ||
| ? !!python/object/apply:multidict._multidict.istr | ||
| - Content-Type | ||
| : - application/json | ||
| User-Agent: | ||
| - python-requests/2.32.3 | ||
| method: GET | ||
| uri: https://api.datadoghq.com/api/unstable/llm-obs/v1/datasets/8dbba503-cf48-4e82-805e-1d9cb46e5ed3/records | ||
| response: | ||
| body: | ||
| string: '{"data":[{"id":"79dc4c72-e4fd-4de7-b46e-419b8072a207","type":"datasets","attributes":{"author":{"id":"de473b30-eb9f-11e9-a77a-c7405862b8bd"},"created_at":"2025-07-23T02:50:48.152449Z","dataset_id":"8dbba503-cf48-4e82-805e-1d9cb46e5ed3","expected_output":{"out0":"r0v4","out1":"r0v5"},"input":{"in0":"r0v1","in1":"r0v2","in2":"r0v3"},"metadata":{},"updated_at":"2025-07-23T02:50:48.152449Z"}},{"id":"f0f3fe26-1060-452f-a292-30b1293dd5a1","type":"datasets","attributes":{"author":{"id":"de473b30-eb9f-11e9-a77a-c7405862b8bd"},"created_at":"2025-07-23T02:50:48.152449Z","dataset_id":"8dbba503-cf48-4e82-805e-1d9cb46e5ed3","expected_output":{"out0":"r1v4","out1":"r1v5"},"input":{"in0":"r1v1","in1":"r1v2","in2":"r1v3"},"metadata":{},"updated_at":"2025-07-23T02:50:48.152449Z"}}],"meta":{"after":""}}' | ||
| headers: | ||
| content-length: | ||
| - '796' | ||
| content-security-policy: | ||
| - frame-ancestors 'self'; report-uri https://logs.browser-intake-datadoghq.com/api/v2/logs?dd-api-key=pube4f163c23bbf91c16b8f57f56af9fc58&dd-evp-origin=content-security-policy&ddsource=csp-report&ddtags=site%3Adatadoghq.com | ||
| content-type: | ||
| - application/vnd.api+json | ||
| date: | ||
| - Wed, 23 Jul 2025 02:50:52 GMT | ||
| strict-transport-security: | ||
| - max-age=31536000; includeSubDomains; preload | ||
| vary: | ||
| - Accept-Encoding | ||
| x-content-type-options: | ||
| - nosniff | ||
| x-frame-options: | ||
| - SAMEORIGIN | ||
| status: | ||
| code: 200 | ||
| message: OK | ||
| version: 1 |
49 changes: 49 additions & 0 deletions
49
..._llm-obs_v1_datasets_acf19ca4-8062-4548-abbf-95b33f55d51d_batch_update_post_b8c84073.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| interactions: | ||
| - request: | ||
| body: '{"data": {"type": "datasets", "id": "acf19ca4-8062-4548-abbf-95b33f55d51d", | ||
| "attributes": {"insert_records": [{"input": {"in0": "r0v1", "in1": "r0v2", "in2": | ||
| "r0v3"}, "expected_output": {"out0": "r0v4", "out1": "r0v5"}, "metadata": {"m0": | ||
| "r0v6"}}, {"input": {"in0": "r1v1", "in1": "r1v2", "in2": "r1v3"}, "expected_output": | ||
| {"out0": "r1v4", "out1": "r1v5"}, "metadata": {"m0": "r1v6"}}], "update_records": | ||
| [], "delete_records": []}}}' | ||
| headers: | ||
| Accept: | ||
| - '*/*' | ||
| ? !!python/object/apply:multidict._multidict.istr | ||
| - Accept-Encoding | ||
| : - identity | ||
| Connection: | ||
| - keep-alive | ||
| Content-Length: | ||
| - '434' | ||
| ? !!python/object/apply:multidict._multidict.istr | ||
| - Content-Type | ||
| : - application/json | ||
| User-Agent: | ||
| - python-requests/2.32.3 | ||
| method: POST | ||
| uri: https://api.datadoghq.com/api/unstable/llm-obs/v1/datasets/acf19ca4-8062-4548-abbf-95b33f55d51d/batch_update | ||
| response: | ||
| body: | ||
| string: '{"data":[{"id":"016350fb-8b44-4d5d-af57-0c8408bb5d25","type":"datasets","attributes":{"author":{"id":"de473b30-eb9f-11e9-a77a-c7405862b8bd"},"created_at":"2025-07-23T02:50:52.795124332Z","dataset_id":"acf19ca4-8062-4548-abbf-95b33f55d51d","expected_output":{"out0":"r0v4","out1":"r0v5"},"input":{"in0":"r0v1","in1":"r0v2","in2":"r0v3"},"metadata":{"m0":"r0v6"},"updated_at":"2025-07-23T02:50:52.795124332Z","version":1}},{"id":"91fcfd23-040c-40ad-a0b0-f497f10b41e3","type":"datasets","attributes":{"author":{"id":"de473b30-eb9f-11e9-a77a-c7405862b8bd"},"created_at":"2025-07-23T02:50:52.795124332Z","dataset_id":"acf19ca4-8062-4548-abbf-95b33f55d51d","expected_output":{"out0":"r1v4","out1":"r1v5"},"input":{"in0":"r1v1","in1":"r1v2","in2":"r1v3"},"metadata":{"m0":"r1v6"},"updated_at":"2025-07-23T02:50:52.795124332Z","version":1}}]}' | ||
| headers: | ||
| content-length: | ||
| - '834' | ||
| content-security-policy: | ||
| - frame-ancestors 'self'; report-uri https://logs.browser-intake-datadoghq.com/api/v2/logs?dd-api-key=pube4f163c23bbf91c16b8f57f56af9fc58&dd-evp-origin=content-security-policy&ddsource=csp-report&ddtags=site%3Adatadoghq.com | ||
| content-type: | ||
| - application/vnd.api+json | ||
| date: | ||
| - Wed, 23 Jul 2025 02:50:52 GMT | ||
| strict-transport-security: | ||
| - max-age=31536000; includeSubDomains; preload | ||
| vary: | ||
| - Accept-Encoding | ||
| x-content-type-options: | ||
| - nosniff | ||
| x-frame-options: | ||
| - SAMEORIGIN | ||
| status: | ||
| code: 200 | ||
| message: OK | ||
| version: 1 |
45 changes: 45 additions & 0 deletions
45
...stable_llm-obs_v1_datasets_acf19ca4-8062-4548-abbf-95b33f55d51d_records_get_d7e731ad.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| interactions: | ||
| - request: | ||
| body: null | ||
| headers: | ||
| Accept: | ||
| - '*/*' | ||
| ? !!python/object/apply:multidict._multidict.istr | ||
| - Accept-Encoding | ||
| : - identity | ||
| Connection: | ||
| - keep-alive | ||
| ? !!python/object/apply:multidict._multidict.istr | ||
| - Content-Length | ||
| : - '0' | ||
| ? !!python/object/apply:multidict._multidict.istr | ||
| - Content-Type | ||
| : - application/json | ||
| User-Agent: | ||
| - python-requests/2.32.3 | ||
| method: GET | ||
| uri: https://api.datadoghq.com/api/unstable/llm-obs/v1/datasets/acf19ca4-8062-4548-abbf-95b33f55d51d/records | ||
| response: | ||
| body: | ||
| string: '{"data":[{"id":"016350fb-8b44-4d5d-af57-0c8408bb5d25","type":"datasets","attributes":{"author":{"id":"de473b30-eb9f-11e9-a77a-c7405862b8bd"},"created_at":"2025-07-23T02:50:52.795124Z","dataset_id":"acf19ca4-8062-4548-abbf-95b33f55d51d","expected_output":{"out0":"r0v4","out1":"r0v5"},"input":{"in0":"r0v1","in1":"r0v2","in2":"r0v3"},"metadata":{"m0":"r0v6"},"updated_at":"2025-07-23T02:50:52.795124Z"}},{"id":"91fcfd23-040c-40ad-a0b0-f497f10b41e3","type":"datasets","attributes":{"author":{"id":"de473b30-eb9f-11e9-a77a-c7405862b8bd"},"created_at":"2025-07-23T02:50:52.795124Z","dataset_id":"acf19ca4-8062-4548-abbf-95b33f55d51d","expected_output":{"out0":"r1v4","out1":"r1v5"},"input":{"in0":"r1v1","in1":"r1v2","in2":"r1v3"},"metadata":{"m0":"r1v6"},"updated_at":"2025-07-23T02:50:52.795124Z"}}],"meta":{"after":""}}' | ||
| headers: | ||
| content-length: | ||
| - '818' | ||
| content-security-policy: | ||
| - frame-ancestors 'self'; report-uri https://logs.browser-intake-datadoghq.com/api/v2/logs?dd-api-key=pube4f163c23bbf91c16b8f57f56af9fc58&dd-evp-origin=content-security-policy&ddsource=csp-report&ddtags=site%3Adatadoghq.com | ||
| content-type: | ||
| - application/vnd.api+json | ||
| date: | ||
| - Wed, 23 Jul 2025 02:50:55 GMT | ||
| strict-transport-security: | ||
| - max-age=31536000; includeSubDomains; preload | ||
| vary: | ||
| - Accept-Encoding | ||
| x-content-type-options: | ||
| - nosniff | ||
| x-frame-options: | ||
| - SAMEORIGIN | ||
| status: | ||
| code: 200 | ||
| message: OK | ||
| version: 1 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.