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
python3 -m models.examples.rag "What analytics and accounting courses does Wharton offer?"
60
60
```
61
61
62
-
### More about example 5 Retrieval Augmented Generation
62
+
### Retrieval Augmented Generation
63
63
64
-
I uploaded a batch of 21 sets of lecture notes in PDF format for an online analytics course taught by [Professor Brian Bushee](https://accounting.wharton.upenn.edu/profile/bushee/). You can download these from https://cdn.lawrencemcdaniel.com/fswl/openai-embeddings-data.zip to test whether your results are consistent.
64
+
For the question, _"What analytics and accounting courses does Wharton offer?"_ , an
65
+
embedding can potentially dramatically alter the response generated by chatGPT. To illustrate, I uploaded a batch of 21 sets of lecture notes in PDF format for an online analytics course taught by Wharton professor [Brian Bushee](https://accounting.wharton.upenn.edu/profile/bushee/). You can download these from https://cdn.lawrencemcdaniel.com/fswl/openai-embeddings-data.zip to test whether your results are consistent.
65
66
66
-
After creating an embedding of these pdf documents, you can call models.examples.rag, which should
67
-
provide a quite different response compared to a standard chatGPT prompt. It should resemble the following:
67
+
#### The control set
68
+
69
+
Example 1 above, a generic chatGPT prompt with no additional guidance provided by a system prompt nor an embedding, generates the following response:
70
+
71
+
```console
72
+
Wharton offers a variety of analytics and accounting courses. Some of the analytics courses include:
73
+
74
+
1. Introduction to Business Analytics: This course provides an overview of the fundamentals of business analytics, including data analysis, statistical modeling, and decision-making.
75
+
76
+
2. Data Visualization and Communication: This course focuses on the effective presentation and communication of data through visualizations and storytelling techniques.
77
+
78
+
3. Predictive Analytics: This course explores the use of statistical models and machine learning algorithms to predict future outcomes and make data-driven decisions.
79
+
80
+
4. Big Data Analytics: This course covers the analysis of large and complex datasets using advanced techniques and tools, such as Hadoop and Spark.
81
+
82
+
In terms of accounting courses, Wharton offers:
83
+
84
+
1. Financial Accounting: This course provides an introduction to the principles and concepts of financial accounting, including the preparation and analysis of financial statements.
85
+
86
+
2. Managerial Accounting: This course focuses on the use of accounting information for internal decision-making and planning, including cost analysis and budgeting.
87
+
88
+
3. Advanced Financial Accounting: This course delves into more complex accounting topics, such as consolidations, partnerships, and international accounting standards.
89
+
90
+
4. Auditing and Assurance Services: This course covers the principles and practices of auditing, including risk assessment, internal controls, and audit procedures.
91
+
92
+
These are just a few examples of the analytics and accounting courses offered at Wharton. The school offers a wide range of courses to cater to different interests and skill levels in these fields.
After creating an embedding from the sample set of pdf documents, you can prompt models.examples.rag with the same question, and it should provide a quite different response compared to the control from example 1. It should resemble the following:
68
99
69
100
```console
70
101
Wharton offers a variety of analytics and accounting courses. Some of the courses offered include:
0 commit comments