forked from langchain-ai/opengpts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b57ce85
commit 48ecc75
Showing
4 changed files
with
188 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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 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 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,121 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"ename": "", | ||
"evalue": "", | ||
"output_type": "error", | ||
"traceback": [ | ||
"\u001b[1;31mRunning cells with 'opengpts-py3.10 (Python 3.10.9)' requires the ipykernel package.\n", | ||
"\u001b[1;31mRun the following command to install 'ipykernel' into the Python environment. \n", | ||
"\u001b[1;31mCommand: '/Users/mattgee/brighthive/opengpts/opengpts-py3.10/bin/python -m pip install ipykernel -U --force-reinstall'" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"from opengpts.backend.custom_tools import adeptid as aid" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"class AdeptIDSkillSearchInput(BaseModel):\n", | ||
" skills: List[str]\n", | ||
" result_count: int = 1\n", | ||
" offset: int = 1\n", | ||
"\n", | ||
"class AdeptIDDestionationOccupationRecommendationInput(BaseModel):\n", | ||
" candidates: List[Candidate]\n", | ||
" limit: int = 10\n", | ||
" offset: int = 1\n", | ||
"\n", | ||
"class AdeptIDJobRecommendationInput(BaseModel):\n", | ||
" skill_count: int = 0\n", | ||
" destination_jobs: List[str]\n", | ||
" limit: int = 1000\n", | ||
" offset: int = 0" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"#inputs\n", | ||
"\n", | ||
"skills_data = [\"carpentry\", \"communication\", \"cooking\", \"python\"]\n", | ||
"\n", | ||
"job_data = aid.AdeptIDJobRecommendationInput(\n", | ||
" destination_jobs = [\"Carpenter\", \"Computer programmer\"],\n", | ||
")\n", | ||
"\n", | ||
"occupation_data = aid.AdeptIDDestionationOccupationRecommendationInput(\n", | ||
" candidates=[\n", | ||
" aid.Candidate(\n", | ||
" id=\"Piya Gupta\",\n", | ||
" work_history=[\n", | ||
" aid.WorkHistory(title=\"Retail Sales Associate\", start_date=\"12/2019\", end_date=\"4/2022\"),\n", | ||
" aid.WorkHistory(title=\"Graphic Designer\", start_date=\"5/2022\", end_date=\"4/2024\")\n", | ||
" ],\n", | ||
" education=[\n", | ||
" aid.Education(\n", | ||
" level=\"ASSOCIATES\", degree_type=\"ASSOCIATE OF ARTS\", subject=\"Business\",\n", | ||
" start_date=\"09/2020\", end_date=\"06/2022\",\n", | ||
" institution=\"Northern Virgina Community College\", gpa=3.5,\n", | ||
" summary=\"Completed Associate's in Business with a concentration in marketing and high honors graduation\"\n", | ||
" )\n", | ||
" ],\n", | ||
" skills=[\"Graphic Design\", \"Adobe Photoshop\", \"Illustration\", \"Marketing\", \"Logo Design\", \"Merchandising\", \"Writing\"]\n", | ||
" )\n", | ||
" ],\n", | ||
" limit=10,\n", | ||
" offset=1,\n", | ||
" skill_count=5\n", | ||
" )\n", | ||
"\n", | ||
"skills_data = aid.AdeptIDSkillSearchInput(\n", | ||
"\n", | ||
")" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"skill = aid.AdeptIDSkillSearch()\n", | ||
"occupation = aid.AdeptIDDestinationOccupationRecommendation() \n", | ||
"job = aid.AdeptIDJobRecommendation()" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "opengpts-py3.10", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"name": "python", | ||
"version": "3.10.9" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
This file contains 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