9. Exporting Data Example

9. Exporting Data Example#

This notebook shows all the different ways to export data from memory. This first example exports all conversations from Azure SQL memory with their respective score values in a JSON format. Without using the database query editor, these export functions allow for a quick approach to exporting data from memory.

from pyrit.memory.azure_sql_memory import AzureSQLMemory
from pyrit.common import default_values
from pathlib import Path

default_values.load_environment_files()

memory = AzureSQLMemory()

# Define file path for export
json_file_path = Path("conversation_and_scores_json_example")
# csv_file_path = Path(\"conversation_and_scores_csv_example\")

# Export the data to a JSON file
conversation_with_scores = memory.export_all_conversations_with_scores(file_path=json_file_path, export_type="json")
print(f"Exported conversation with scores to JSON: {json_file_path}")

# Export the data to a CSV file
# conversation_with_scores = memory.export_all_conversations_with_scores(file_path=json_file_path, export_type="csv")
# print(f"Exported conversation with scores to CSV: {csv_file_path}")
Error fetching data from table ScoreEntries: (pyodbc.Error) ('07002', '[07002] [Microsoft][ODBC Driver 18 for SQL Server]COUNT field incorrect or syntax error (0) (SQLExecDirectW)')
[SQL: SELECT [ScoreEntries].id AS [ScoreEntries_id], [ScoreEntries].score_value AS [ScoreEntries_score_value], [ScoreEntries].score_value_description AS [ScoreEntries_score_value_description], [ScoreEntries].score_type AS [ScoreEntries_score_type], [ScoreEntries].score_category AS [ScoreEntries_score_category], [ScoreEntries].score_rationale AS [ScoreEntries_score_rationale], [ScoreEntries].score_metadata AS [ScoreEntries_score_metadata], [ScoreEntries].scorer_class_identifier AS [ScoreEntries_scorer_class_identifier], [ScoreEntries].prompt_request_response_id AS [ScoreEntries_prompt_request_response_id], [ScoreEntries].timestamp AS [ScoreEntries_timestamp], [ScoreEntries].task AS [ScoreEntries_task] 
FROM [ScoreEntries] 
WHERE [ScoreEntries].prompt_request_response_id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 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, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]
[parameters: ('359f1ad9-7085-481e-a5cb-00000ca5b960', '64e01f78-e007-4eb5-8645-0001b1684db2', '67ccc018-52cd-474f-925b-002327304015', 'faf62139-ae12-416b-b00d-003775c404a3', '9c56eed5-1bed-45fe-b943-0050141aea65', 'ce8d61cf-a37f-4182-8781-00774deff0f7', 'd4bae67e-d1c3-4f2a-8978-00956f1eaa04', 'de9df3ed-4c27-416e-9647-00977bce5580', 'db04a2a0-a85a-48aa-b3eb-00b27cbc2e41', '3bba4796-deb0-4b3b-b52c-00f0dc17b45f', 'ef6079ad-a6f7-44fe-a759-00f1461292d2', 'f8da1edd-cf83-4df0-950c-0114576be66b', '4718445b-a70e-4083-ad5a-011557944784', 'df4b9261-30d8-41c5-b823-012ce7535ea6', '5357dc84-a942-4eba-91cc-012e98a27d71', 'c453bec8-a9dc-4303-8ae9-0175693a1dd8', '71717a9d-d569-42a8-aeab-018333b6f574', 'c770d8b4-d141-42ed-a5ee-019c4c4cf3a8', 'dd585ecb-cfc5-48cb-a935-01bc83c1a7ad', '6ef8b8db-2005-44b5-bb3e-01f2cf29858c', 'b3346649-19b1-405e-87f6-0219180f5f0a', 'cdc93647-b1fa-4458-a721-021d44474fc4', 'fd501ccd-6c3c-4b2a-90f5-0224a1586f01', 'e49cdf3e-9dd0-41d8-a316-d083a4526310', '73522fee-7159-4a5d-be73-0271dca511a3', '1e9295b3-8088-42d9-94d0-027a66383546', '0745e1a4-f71e-4867-aec3-0289d9dfc6f4', 'ef8e2c5a-3e02-4eda-ac4c-028a2a789431', 'a5f3ad8c-069d-4725-bc22-02c28b21b39b', '48d1477f-574f-4ca6-ae98-02dfc89bf254', '632cde31-38ed-4335-93a7-030531179005', '50ea0df5-1fbd-40eb-a6c4-034fa63aaac3', '1d1c41f1-8938-4600-97aa-03abed66d28a', 'd940ead2-ddb6-4443-a98f-03bdc5a8baf4', '69b188db-8114-4fbd-b711-eaf69d9dcd75', 'ce27faa7-1a6c-44d4-b97b-03daa5676f0f', '4f089ca9-18bf-4630-837b-03fbfca7e3e4', 'b87f5b10-7392-4dff-a67c-04171cb7189e', 'ea048730-0228-4c12-a4be-041b2f1c1bf1', '0c5e1f62-72d6-4592-825f-0435377e0111', 'c7d86eee-c01d-426d-8c40-049a522e05de', '5b35eafc-4ceb-405f-bcd7-04b2d6225050', '385bde13-f4de-407b-be9e-0500a35539ee', '811cc65b-9f86-44b8-a7a5-05049310d5e7', 'f3a86bdd-9f2e-44aa-ad9f-0520369cd8ab', '54641ff1-e297-48a2-b02d-052775a2f20c', 'ca655bab-9e35-42f4-842e-0545b2261fa6', '2bb4b13f-640d-427f-a369-05673a9447ae', 'a59b59cf-eb30-4b89-9b54-0585faa7cadd', '5c33bc1f-9e28-4cab-8c85-05b802652bfb' ... 2564 parameters truncated ... 'a9b840ce-10b9-4323-ae7f-fc0e33d61e58', 'dbbc8326-c7c3-4b1b-9f5e-fc1fdb7144cf', 'cae0a833-c6e3-4af6-9434-fc2fafac9f61', '9ddda460-ce40-467f-9c2c-fc3ba6a892a3', '1c5fc617-e4c2-486d-bfc7-fc5114591a85', '6f0da0a1-696a-47e7-985b-fc72a32996a9', 'fb015ee5-1946-4cd8-98ac-fc8339a71b2a', 'fe77cb36-6785-4b9b-afb5-fc9aaf78d0a1', 'bf9ae3b6-247a-4563-a900-fcac078a3259', 'ebfd3006-ec87-4871-9a38-fccd629d5632', 'ec5e2128-1d7d-43b7-90a4-fcf179baa493', '052ee74a-eba9-43d7-ad5e-fd051fa8b2d2', 'fe466bd3-04ef-4195-9709-fd099233b4e8', '52aa9da7-4641-4e7b-a0fc-fd25e2a26691', '3fb66110-6adb-45a5-b53f-fd357305c344', '7c5f0f75-8017-4476-b0cf-fd4c1c4b9d77', '6d2c348d-58f8-4111-8550-fd4fecc79709', '62709fab-2b61-4237-82b8-fd6e30800004', 'f4dec6b9-7eaf-43c6-8d10-fd9751e685e3', '3f36aa68-b76f-4ef7-8b42-fd9b58c92898', '93c4dd87-57ba-47a2-8263-fd9eb4bddd6f', '4ed17303-4524-4c5e-b14d-fdeb437ab4fc', 'e8fec8b6-cbaf-4981-9e0a-fdf9be789d2e', '1d50ca99-ebba-4cc3-b2f8-fe06aabd15af', '246e5d83-21fd-48b5-b714-fe3106b68692', 'cbb8a29b-5e96-4317-8ac6-fe6b191c924b', '8cb7f6fe-0a56-4ce8-b6db-fe7aa6039556', '6979ee61-3797-4520-a5f8-fe9ccb7f2ca5', 'f8dac762-9cba-49a8-aae1-feadaffe2f17', 'd70eac12-46b7-4871-9ee9-fec123a4388b', '84fca075-963f-4a90-a3d0-fed9dbbe4012', '576edd25-43b2-4bd0-aa67-fedc98d8cac7', 'fc4af2f5-e4b6-4214-9b70-fee0db02cfdf', 'b09e35d4-8316-4266-8b98-fef0094f421f', '4e1c77f1-6cd3-4587-8a29-fefb00e9a1f0', '0ee367df-170c-43be-80f2-ff09a4565744', '9b287a11-e13a-4f13-b957-ff23bf1970fa', 'b3ea7e63-53f5-4e9d-85a9-ff38c29d2ad4', '11113bf7-6292-4bd0-a81f-ff3c6108b784', 'fc0a5aad-246c-4de8-9571-ff4cd6d62da3', '014eba28-91f7-4d6e-bc8f-ff51ecf3ccb8', '8192b35a-4ca6-4041-b593-ff545f5067ec', '5905799b-e277-43f7-bdb7-ff6c1919e04e', '40b99965-4880-4cb2-994e-ff6fae736c03', '927e40c9-f7f0-4c53-bccf-ff7e391f71a2', '0434f534-4abe-417c-ab85-ff7f2d2ec635', '751a6681-2233-4410-9407-ff9d39338c8c', 'fe754a6b-0750-441b-bf1a-ffa28d09384b', '71a74779-741d-4ca3-9491-ffbf63156130', '5677e7bb-9064-42aa-80ed-ffc590cd6c29')]
(Background on this error at: https://sqlalche.me/e/20/dbapi)
Traceback (most recent call last):
  File "C:\Users\Roman\.conda\envs\pyrit-python312\Lib\site-packages\sqlalchemy\engine\base.py", line 1970, in _exec_single_context
    self.dialect.do_execute(
  File "C:\Users\Roman\.conda\envs\pyrit-python312\Lib\site-packages\sqlalchemy\engine\default.py", line 924, in do_execute
    cursor.execute(statement, parameters)
pyodbc.Error: ('07002', '[07002] [Microsoft][ODBC Driver 18 for SQL Server]COUNT field incorrect or syntax error (0) (SQLExecDirectW)')

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\Roman\git\PyRIT\pyrit\memory\azure_sql_memory.py", line 347, in query_entries
    return query.all()
           ^^^^^^^^^^^
  File "C:\Users\Roman\.conda\envs\pyrit-python312\Lib\site-packages\sqlalchemy\orm\query.py", line 2673, in all
    return self._iter().all()  # type: ignore
           ^^^^^^^^^^^^
  File "C:\Users\Roman\.conda\envs\pyrit-python312\Lib\site-packages\sqlalchemy\orm\query.py", line 2827, in _iter
    result: Union[ScalarResult[_T], Result[_T]] = self.session.execute(
                                                  ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Roman\.conda\envs\pyrit-python312\Lib\site-packages\sqlalchemy\orm\session.py", line 2306, in execute
    return self._execute_internal(
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Roman\.conda\envs\pyrit-python312\Lib\site-packages\sqlalchemy\orm\session.py", line 2191, in _execute_internal
    result: Result[Any] = compile_state_cls.orm_execute_statement(
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Roman\.conda\envs\pyrit-python312\Lib\site-packages\sqlalchemy\orm\context.py", line 293, in orm_execute_statement
    result = conn.execute(
             ^^^^^^^^^^^^^
  File "C:\Users\Roman\.conda\envs\pyrit-python312\Lib\site-packages\sqlalchemy\engine\base.py", line 1421, in execute
    return meth(
           ^^^^^
  File "C:\Users\Roman\.conda\envs\pyrit-python312\Lib\site-packages\sqlalchemy\sql\elements.py", line 514, in _execute_on_connection
    return connection._execute_clauseelement(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Roman\.conda\envs\pyrit-python312\Lib\site-packages\sqlalchemy\engine\base.py", line 1643, in _execute_clauseelement
    ret = self._execute_context(
          ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Roman\.conda\envs\pyrit-python312\Lib\site-packages\sqlalchemy\engine\base.py", line 1849, in _execute_context
    return self._exec_single_context(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Roman\.conda\envs\pyrit-python312\Lib\site-packages\sqlalchemy\engine\base.py", line 1989, in _exec_single_context
    self._handle_dbapi_exception(
  File "C:\Users\Roman\.conda\envs\pyrit-python312\Lib\site-packages\sqlalchemy\engine\base.py", line 2356, in _handle_dbapi_exception
    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
  File "C:\Users\Roman\.conda\envs\pyrit-python312\Lib\site-packages\sqlalchemy\engine\base.py", line 1970, in _exec_single_context
    self.dialect.do_execute(
  File "C:\Users\Roman\.conda\envs\pyrit-python312\Lib\site-packages\sqlalchemy\engine\default.py", line 924, in do_execute
    cursor.execute(statement, parameters)
sqlalchemy.exc.DBAPIError: (pyodbc.Error) ('07002', '[07002] [Microsoft][ODBC Driver 18 for SQL Server]COUNT field incorrect or syntax error (0) (SQLExecDirectW)')
[SQL: SELECT [ScoreEntries].id AS [ScoreEntries_id], [ScoreEntries].score_value AS [ScoreEntries_score_value], [ScoreEntries].score_value_description AS [ScoreEntries_score_value_description], [ScoreEntries].score_type AS [ScoreEntries_score_type], [ScoreEntries].score_category AS [ScoreEntries_score_category], [ScoreEntries].score_rationale AS [ScoreEntries_score_rationale], [ScoreEntries].score_metadata AS [ScoreEntries_score_metadata], [ScoreEntries].scorer_class_identifier AS [ScoreEntries_scorer_class_identifier], [ScoreEntries].prompt_request_response_id AS [ScoreEntries_prompt_request_response_id], [ScoreEntries].timestamp AS [ScoreEntries_timestamp], [ScoreEntries].task AS [ScoreEntries_task] 
FROM [ScoreEntries] 
WHERE [ScoreEntries].prompt_request_response_id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,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?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]
[parameters: ('359f1ad9-7085-481e-a5cb-00000ca5b960', '64e01f78-e007-4eb5-8645-0001b1684db2', '67ccc018-52cd-474f-925b-002327304015', 'faf62139-ae12-416b-b00d-003775c404a3', '9c56eed5-1bed-45fe-b943-0050141aea65', 'ce8d61cf-a37f-4182-8781-00774deff0f7', 'd4bae67e-d1c3-4f2a-8978-00956f1eaa04', 'de9df3ed-4c27-416e-9647-00977bce5580', 'db04a2a0-a85a-48aa-b3eb-00b27cbc2e41', '3bba4796-deb0-4b3b-b52c-00f0dc17b45f', 'ef6079ad-a6f7-44fe-a759-00f1461292d2', 'f8da1edd-cf83-4df0-950c-0114576be66b', '4718445b-a70e-4083-ad5a-011557944784', 'df4b9261-30d8-41c5-b823-012ce7535ea6', '5357dc84-a942-4eba-91cc-012e98a27d71', 'c453bec8-a9dc-4303-8ae9-0175693a1dd8', '71717a9d-d569-42a8-aeab-018333b6f574', 'c770d8b4-d141-42ed-a5ee-019c4c4cf3a8', 'dd585ecb-cfc5-48cb-a935-01bc83c1a7ad', '6ef8b8db-2005-44b5-bb3e-01f2cf29858c', 'b3346649-19b1-405e-87f6-0219180f5f0a', 'cdc93647-b1fa-4458-a721-021d44474fc4', 'fd501ccd-6c3c-4b2a-90f5-0224a1586f01', 'e49cdf3e-9dd0-41d8-a316-d083a4526310', '73522fee-7159-4a5d-be73-0271dca511a3', '1e9295b3-8088-42d9-94d0-027a66383546', '0745e1a4-f71e-4867-aec3-0289d9dfc6f4', 'ef8e2c5a-3e02-4eda-ac4c-028a2a789431', 'a5f3ad8c-069d-4725-bc22-02c28b21b39b', '48d1477f-574f-4ca6-ae98-02dfc89bf254', '632cde31-38ed-4335-93a7-030531179005', '50ea0df5-1fbd-40eb-a6c4-034fa63aaac3', '1d1c41f1-8938-4600-97aa-03abed66d28a', 'd940ead2-ddb6-4443-a98f-03bdc5a8baf4', '69b188db-8114-4fbd-b711-eaf69d9dcd75', 'ce27faa7-1a6c-44d4-b97b-03daa5676f0f', '4f089ca9-18bf-4630-837b-03fbfca7e3e4', 'b87f5b10-7392-4dff-a67c-04171cb7189e', 'ea048730-0228-4c12-a4be-041b2f1c1bf1', '0c5e1f62-72d6-4592-825f-0435377e0111', 'c7d86eee-c01d-426d-8c40-049a522e05de', '5b35eafc-4ceb-405f-bcd7-04b2d6225050', '385bde13-f4de-407b-be9e-0500a35539ee', '811cc65b-9f86-44b8-a7a5-05049310d5e7', 'f3a86bdd-9f2e-44aa-ad9f-0520369cd8ab', '54641ff1-e297-48a2-b02d-052775a2f20c', 'ca655bab-9e35-42f4-842e-0545b2261fa6', '2bb4b13f-640d-427f-a369-05673a9447ae', 'a59b59cf-eb30-4b89-9b54-0585faa7cadd', '5c33bc1f-9e28-4cab-8c85-05b802652bfb' ... 2564 parameters truncated ... 'a9b840ce-10b9-4323-ae7f-fc0e33d61e58', 'dbbc8326-c7c3-4b1b-9f5e-fc1fdb7144cf', 'cae0a833-c6e3-4af6-9434-fc2fafac9f61', '9ddda460-ce40-467f-9c2c-fc3ba6a892a3', '1c5fc617-e4c2-486d-bfc7-fc5114591a85', '6f0da0a1-696a-47e7-985b-fc72a32996a9', 'fb015ee5-1946-4cd8-98ac-fc8339a71b2a', 'fe77cb36-6785-4b9b-afb5-fc9aaf78d0a1', 'bf9ae3b6-247a-4563-a900-fcac078a3259', 'ebfd3006-ec87-4871-9a38-fccd629d5632', 'ec5e2128-1d7d-43b7-90a4-fcf179baa493', '052ee74a-eba9-43d7-ad5e-fd051fa8b2d2', 'fe466bd3-04ef-4195-9709-fd099233b4e8', '52aa9da7-4641-4e7b-a0fc-fd25e2a26691', '3fb66110-6adb-45a5-b53f-fd357305c344', '7c5f0f75-8017-4476-b0cf-fd4c1c4b9d77', '6d2c348d-58f8-4111-8550-fd4fecc79709', '62709fab-2b61-4237-82b8-fd6e30800004', 'f4dec6b9-7eaf-43c6-8d10-fd9751e685e3', '3f36aa68-b76f-4ef7-8b42-fd9b58c92898', '93c4dd87-57ba-47a2-8263-fd9eb4bddd6f', '4ed17303-4524-4c5e-b14d-fdeb437ab4fc', 'e8fec8b6-cbaf-4981-9e0a-fdf9be789d2e', '1d50ca99-ebba-4cc3-b2f8-fe06aabd15af', '246e5d83-21fd-48b5-b714-fe3106b68692', 'cbb8a29b-5e96-4317-8ac6-fe6b191c924b', '8cb7f6fe-0a56-4ce8-b6db-fe7aa6039556', '6979ee61-3797-4520-a5f8-fe9ccb7f2ca5', 'f8dac762-9cba-49a8-aae1-feadaffe2f17', 'd70eac12-46b7-4871-9ee9-fec123a4388b', '84fca075-963f-4a90-a3d0-fed9dbbe4012', '576edd25-43b2-4bd0-aa67-fedc98d8cac7', 'fc4af2f5-e4b6-4214-9b70-fee0db02cfdf', 'b09e35d4-8316-4266-8b98-fef0094f421f', '4e1c77f1-6cd3-4587-8a29-fefb00e9a1f0', '0ee367df-170c-43be-80f2-ff09a4565744', '9b287a11-e13a-4f13-b957-ff23bf1970fa', 'b3ea7e63-53f5-4e9d-85a9-ff38c29d2ad4', '11113bf7-6292-4bd0-a81f-ff3c6108b784', 'fc0a5aad-246c-4de8-9571-ff4cd6d62da3', '014eba28-91f7-4d6e-bc8f-ff51ecf3ccb8', '8192b35a-4ca6-4041-b593-ff545f5067ec', '5905799b-e277-43f7-bdb7-ff6c1919e04e', '40b99965-4880-4cb2-994e-ff6fae736c03', '927e40c9-f7f0-4c53-bccf-ff7e391f71a2', '0434f534-4abe-417c-ab85-ff7f2d2ec635', '751a6681-2233-4410-9407-ff9d39338c8c', 'fe754a6b-0750-441b-bf1a-ffa28d09384b', '71a74779-741d-4ca3-9491-ffbf63156130', '5677e7bb-9064-42aa-80ed-ffc590cd6c29')]
(Background on this error at: https://sqlalche.me/e/20/dbapi)
Exported conversation with scores to JSON: conversation_and_scores_json_example

Importing Data as NumPy DataFrame#

You can use the exported JSON or CSV files to import the data as a NumPy DataFrame. This can be useful for various data manipulation and analysis tasks.

import pandas as pd  # type: ignore

df = pd.read_json(json_file_path)
df.head()