You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: country-capitals/README.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,15 +18,17 @@ After the chatbot has finished interpreting the data, the user may start asking
18
18
questions via Read-Evaluate-Print loop (REPL).
19
19
20
20
## Information Retrieved for Responses
21
-
Remarkably, the chatbot "realizes" the geographics and demographic context
21
+
Remarkably, the chatbot "realizes" the geographic and demographic context
22
22
established by the PDF's data. This enables it to access the right knowledge
23
-
resources on the internet to complete information required to answer user
23
+
resources on the internet for completing the information required to answer the user
24
24
questions.
25
25
26
-
For example, it will understand it has to look up cities and countries if being
27
-
asked for words that do not occur in the PDF. For instance, the country
28
-
Liechtenstein is not in the PDF, but asking for it or its capital city,
29
-
Vaduz will deliver correct information, including population numbers and
26
+
For example, it will understand it has to look up **cities** and **countries** when being
27
+
asked for words that do not occur in the PDF.
28
+
29
+
For instance, the country
30
+
**Liechtenstein** is not in the PDF, but asking for it or its capital city,
31
+
Vaduz will deliver correct information, including population numbers or
30
32
short abstracts of city and country.
31
33
32
34
## Getting Started
@@ -42,7 +44,7 @@ python pip install -U openai
42
44
Visit https://github.com/openai/openai-cookbook to learn how to register on
43
45
OpenAI's website and request an API key.
44
46
45
-
Copy this folder to your machine, then edit the script and type in your API key and save. Then open a terminal in the folder and execute the following command:
47
+
Copy this folder to your machine, then edit the script, type in your API key in this line `API_KEY = "your OpenAI API key goes here"` and save. Then open a terminal in the folder and execute the following command:
0 commit comments