Skip to content

Commit

Permalink
Merge pull request #11 from run-llama/suo/clean_notebook
Browse files Browse the repository at this point in the history
Minor update to show JSON in preview
  • Loading branch information
Disiok authored Jul 25, 2024
2 parents 5f81c52 + 679a33b commit f335e26
Showing 1 changed file with 102 additions and 10 deletions.
112 changes: 102 additions & 10 deletions examples/demo_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
{
"data": {
"text/plain": [
"'52a70985-2aa3-4b87-a0ed-3f93c9f793cd'"
"'94e09ba1-ed0d-4427-889e-014afb57dbeb'"
]
},
"execution_count": null,
Expand Down Expand Up @@ -253,10 +253,7 @@
},
"highlights": {
"properties": {
"analyticalSkills": {
"type": "integer"
},
"communicationSkills": {
"abilityToManageMultiTasks": {
"type": "integer"
},
"deadlinesFocused": {
Expand All @@ -265,16 +262,16 @@
"detailOriented": {
"type": "integer"
},
"managementSkills": {
"excellentCommunicationSkills": {
"type": "integer"
},
"multiTaskingAbility": {
"goodAnalyticalSkills": {
"type": "integer"
},
"presentationSkills": {
"quickLearner": {
"type": "integer"
},
"quickLearner": {
"strongManagementSkills": {
"type": "integer"
},
"teamOriented": {
Expand Down Expand Up @@ -343,6 +340,54 @@
"JSON(extraction_schema.data_schema)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "8f441d9a-6254-492c-89a8-53edcc1505cf",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'type': 'object',\n",
" 'properties': {'Accountant': {'type': 'object',\n",
" 'properties': {'skills': {'type': 'string'},\n",
" 'summary': {'type': 'object',\n",
" 'properties': {'location': {'type': 'string'},\n",
" 'yearsOfExperience': {'type': 'integer'}}},\n",
" 'education': {'type': 'object',\n",
" 'properties': {'degree': {'type': 'string'},\n",
" 'honors': {'type': 'string'},\n",
" 'institution': {'type': 'string'},\n",
" 'fieldOfStudy': {'type': 'string'},\n",
" 'graduationYear': {'type': 'integer'}}},\n",
" 'experience': {'type': 'string'},\n",
" 'highlights': {'type': 'object',\n",
" 'properties': {'quickLearner': {'type': 'integer'},\n",
" 'teamOriented': {'type': 'integer'},\n",
" 'detailOriented': {'type': 'integer'},\n",
" 'deadlinesFocused': {'type': 'integer'},\n",
" 'goodAnalyticalSkills': {'type': 'integer'},\n",
" 'strongManagementSkills': {'type': 'integer'},\n",
" 'abilityToManageMultiTasks': {'type': 'integer'},\n",
" 'excellentCommunicationSkills': {'type': 'integer'}}},\n",
" 'technicalSkills': {'type': 'object',\n",
" 'properties': {'pdfSoftware': {'type': 'string'},\n",
" 'taxSoftware': {'type': 'string'},\n",
" 'microsoftOffice': {'type': 'string'},\n",
" 'operatingSystems': {'type': 'string'},\n",
" 'accountingSoftware': {'type': 'string'}}}}}}}"
]
},
"execution_count": null,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"extraction_schema.data_schema"
]
},
{
"cell_type": "markdown",
"id": "d0eff355-7cbb-4d49-8881-27120f737498",
Expand Down Expand Up @@ -512,14 +557,61 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Updated at 2024-07-24 19:20:02.615311+00:00\n"
"Updated at 2024-07-25 17:31:31.695033+00:00\n"
]
}
],
"source": [
"print(\"Updated at\", update_response.updated_at)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "3de90f80-2937-418c-a0cb-389b69037cb0",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'type': 'object',\n",
" 'properties': {'Accountant': {'type': 'object',\n",
" 'properties': {'summary': {'type': 'object',\n",
" 'properties': {'location': {'type': 'string'},\n",
" 'yearsOfExperience': {'type': 'integer'}}},\n",
" 'education': {'type': 'object',\n",
" 'properties': {'degree': {'type': 'string'},\n",
" 'honors': {'type': 'string'},\n",
" 'institution': {'type': 'string'},\n",
" 'fieldOfStudy': {'type': 'string'},\n",
" 'graduationYear': {'type': 'integer'}}},\n",
" 'experience': {'type': 'string'},\n",
" 'highlights': {'type': 'object',\n",
" 'properties': {'quickLearner': {'type': 'integer'},\n",
" 'teamOriented': {'type': 'integer'},\n",
" 'detailOriented': {'type': 'integer'},\n",
" 'deadlinesFocused': {'type': 'integer'},\n",
" 'goodAnalyticalSkills': {'type': 'integer'},\n",
" 'strongManagementSkills': {'type': 'integer'},\n",
" 'abilityToManageMultiTasks': {'type': 'integer'},\n",
" 'excellentCommunicationSkills': {'type': 'integer'}}},\n",
" 'technicalSkills': {'type': 'object',\n",
" 'properties': {'pdfSoftware': {'type': 'string'},\n",
" 'taxSoftware': {'type': 'string'},\n",
" 'microsoftOffice': {'type': 'string'},\n",
" 'operatingSystems': {'type': 'string'},\n",
" 'accountingSoftware': {'type': 'string'}}}}}}}"
]
},
"execution_count": null,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"update_response.data_schema"
]
},
{
"cell_type": "markdown",
"id": "0eb551c5-d179-4551-9c92-11fd0c2f23ee",
Expand Down

0 comments on commit f335e26

Please sign in to comment.