More comments, notes and improvements
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
"source": [
|
||||
"# A full business solution\n",
|
||||
"\n",
|
||||
"## Now we will take our project from Day 1 to the next level\n",
|
||||
"\n",
|
||||
"### BUSINESS CHALLENGE:\n",
|
||||
"\n",
|
||||
"Create a product that builds a Brochure for a company to be used for prospective clients, investors and potential recruits.\n",
|
||||
"\n",
|
||||
"We will be provided a company name and their primary website.\n",
|
||||
@@ -60,6 +64,9 @@
|
||||
"# A class to represent a Webpage\n",
|
||||
"\n",
|
||||
"class Website:\n",
|
||||
" \"\"\"\n",
|
||||
" A utility class to represent a Website that we have scraped, now with links\n",
|
||||
" \"\"\"\n",
|
||||
" url: str\n",
|
||||
" title: str\n",
|
||||
" body: str\n",
|
||||
@@ -107,6 +114,8 @@
|
||||
"It should decide which links are relevant, and replace relative links such as \"/about\" with \"https://company.com/about\". \n",
|
||||
"We will use \"one shot prompting\" in which we provide an example of how it should respond in the prompt.\n",
|
||||
"\n",
|
||||
"This is an excellent use case for an LLM, because it requires nuanced understanding. Imagine trying to code this without LLMs by parsing and analyzing the webpage - it would be very hard!\n",
|
||||
"\n",
|
||||
"Sidenote: there is a more advanced technique called \"Structured Outputs\" in which we require the model to respond according to a spec. We cover this technique in Week 8 during our autonomous Agentic AI project."
|
||||
]
|
||||
},
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"\n",
|
||||
"Try running the next cell (click in the cell under this one and hit shift+return).\n",
|
||||
"\n",
|
||||
"If this doesn't work, then you're not running in an \"activated\" environment. Please check back in the [README](../README.md) for setting up the Anaconda (or virtualenv) environment and activating it, before running `jupyter lab`."
|
||||
"If this doesn't work, then you're likely not running in an \"activated\" environment. Please check back in the [README](../README.md) for setting up the Anaconda (or virtualenv) environment and activating it, before running `jupyter lab`."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -76,6 +76,11 @@
|
||||
"If it didn't print a key, then it's not able to find a file called `.env` in the `llm_engineering` folder. \n",
|
||||
"Double check those steps in the instructions. Is it possible that `.env` is actually called `.env.txt`? In Windows, you may need to change a setting in the File Explorer to ensure that file extensions are showing. Or you will see them if you type `dir` in the `llm_engineering` directory.\n",
|
||||
"\n",
|
||||
"Nasty gotchas to watch out for: \n",
|
||||
"- In the .env file, there should be no space between the equals sign and the key. Like: `OPENAI_API_KEY=sk-proj-...`\n",
|
||||
"- If you copied and pasted your API key from another application, make sure that it didn't replace hyphens in tour key with long dashes\n",
|
||||
"- If you changed your .env file, you might need to restart your Jupyter \"kernel\" (the python process) to pick up the change via the Kernel menu >> Restart kernel, then rerun the cells from the top.\n",
|
||||
"\n",
|
||||
"Worst case, if you're not able to get this part to work, it's not a big deal. You'll just have to paste your key into the Jupyter Notebook (see below for an example), and be sure to remove it before you share the Notebook with anybody else."
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user