Skip to content

Commit c59fe7d

Browse files
authored
Merge pull request #37 from FullStackWithLawrence/next
docs: add sample results
2 parents 0a21a61 + 3c3d37f commit c59fe7d

File tree

1 file changed

+35
-4
lines changed

1 file changed

+35
-4
lines changed

README.md

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,43 @@ python3 -m models.examples.load "/path/to/your/pdf/documents"
5959
python3 -m models.examples.rag "What analytics and accounting courses does Wharton offer?"
6060
```
6161

62-
### More about example 5 Retrieval Augmented Generation
62+
### Retrieval Augmented Generation
6363

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.
6566

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.
93+
(venv) (base) mcdaniel@MacBookAir-Lawrence openai-embeddings % python3 -m models.examples.online_courses "analytics and accounting"
94+
```
95+
96+
#### Same prompt but with an embedding
97+
98+
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:
6899

69100
```console
70101
Wharton offers a variety of analytics and accounting courses. Some of the courses offered include:

0 commit comments

Comments
 (0)