Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# MongoDB config
MONGODB_CONNECTION_URI="<MongoDB connection URI with Atlas Vector Search configured on 'embedded_content'>"
VECTOR_SEARCH_INDEX_NAME="vector_index" # or whatever your index name is
MONGODB_DATABASE_NAME="mongodb-chatbot-framework-chatbot" # or whatever your database name is. must contain vector search index.

# OpenAI config
OPENAI_API_KEY=<OpenAI API key>
OPENAI_EMBEDDING_MODEL="text-embedding-ada-002" # or other model
OPENAI_CHAT_COMPLETION_MODEL="gpt-3.5-turbo" # or other model

# Github repo config
GITHUB_REPO_OWNER="<Your Github username>"
GITHUB_REPO_NAME=cookbook-chat # or whatever your repo name is
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Gilded Age Gourmet

_Cooking chatbot inspired by the Boston Cooking School Cookbook_

This project contains the source code for the Gilded Age Gourmet, a full-stack retrieval augmented generation (RAG) chatbot that you can use to search for recipes and learn about the fundamentals of cooking.

The chatbot uses the [Boston Cooking School Cookbook](https://www.gutenberg.org/cache/epub/65061/pg65061-images.html) by Fannie Farmer as it's source of recipes and cooking knowledge. The cookbook, first published in 1896, was the best-selling cookbook of the turn of the 20th century. Conveniently, for our chatbot's purposes, the cookbook is also in the public domain.

The chatbot responds in the style of the cookbook, using the same language and tone as the original text. The chatbot is able to answer questions about cooking and recipes, and can also generate new recipes based on user input.

## Get Started

The chatbot is build using the MongoDB Chatbot Framework, following the structure of the [Quick Start](https://mongodb.github.io/chatbot/quick-start) guide.

Follow the instructions in the Quick Start to set up the chatbot.

The only difference between this chatbot and the Quick Start is in:

1. The data ingested (in this case the cookbook)
2. The system prompt used to call the large language model
3. The UI text

Happy cooking!
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# The Project Gutenberg eBook of The Boston cooking-school cook book

This ebook is for the use of anyone anywhere in the United States and most other parts of the world at no cost and with almost no restrictions whatsoever. You may copy it, give it away or re-use it under the terms of the Project Gutenberg License included with this ebook or online at www.gutenberg.org. If you are not located in the United States, you will have to check the laws of the country where you are located before using this eBook.

**Title**: The Boston cooking-school cook book

**Author**: Fannie Merritt Farmer

**Release date**: April 11, 2021 \eBook #65061\]

**Language**: English

**Credits**: Richard Tonsing and the Online Distributed Proofreading Team at https://www.pgdp.net (This file was produced from images generously made available by The Internet Archive)

\*\*\* START OF THE PROJECT GUTENBERG EBOOK THE BOSTON COOKING-SCHOOL COOK BOOK \*\*\*

**Transcriber’s Note:**

The cover image was created by the transcriber and is placed in the public domain.

![

Table laid for Formal Dinner.—_Frontispiece._
39 changes: 39 additions & 0 deletions cookbook-source/1-THE-BOSTON-COOKING-SCHOOL-COOK-BOOK.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# THE BOSTON COOKING-SCHOOL COOK BOOK

BY

FANNIE MERRITT FARMER

Of Miss Farmer’s School of Cookery

AUTHOR OF “CHAFING-DISH POSSIBILITIES,” AND “FOOD AND COOKERY FOR THE SICK AND CONVALESCENT”

REVISED

WITH ONE HUNDRED AND TWENTY-FIVE NEW RECIPES, THE RECIPES FROM THE APPENDIX AND THE ADDENDA INTRODUCED IN LOGICAL ORDER THROUGHOUT THE BOOK, AND ONE HUNDRED HALF-TONE ILLUSTRATIONS

BOSTON

LITTLE, BROWN, AND COMPANY

1910

_Copyright, 1896, 1900, 1901, 1902, 1903, 1904, 1905, 1906_

By Fannie Merritt Farmer

TO

MRS. WILLIAM B. SEWALL,

President of the Boston Cooking School,

IN APPRECIATION OF HER HELPFUL ENCOURAGEMENT AND UNTIRING EFFORTS IN PROMOTING THE WORK OF SCIENTIFIC COOKERY, WHICH MEANS THE ELEVATION OF THE HUMAN RACE,

THIS BOOK IS AFFECTIONATELY DEDICATED

By the Author.

_Cookery means the knowledge of Medea and of Circe and of Helen and of the Queen of Sheba. It means the knowledge of all herbs and fruits and balms and spices, and all that is healing and sweet in the fields and groves and savory in meats. It means carefulness and inventiveness and willingness and readiness of appliances. It means the economy of your grandmothers and the science of the modern chemist; it means much testing and no wasting; it means English thoroughness and French art and Arabian hospitality; and, in fine, it means that you are to be perfectly and always ladies—loaf givers._—Ruskin.

* * *
Loading