!IMPORTANT This learning sample is for educational purposes only and should not be used in any production use case. It is intended to highlight concepts of Semantic Kernel and not any architectural / security design practices to be used.
Watch the Book Creator Sample Quick Start Video.
- You will need an Open AI Key or Azure Open AI Service key for this sample.
- Ensure the KernelHttpServer sample is already running at
http://localhost:7071
. If not, follow the steps to start it here. - Copy .env.example into a new file with name ".env".
- You will also need to Run the following command
yarn install
(if you have never run the sample before) and/oryarn start
from the command line. - A browser will automatically open, otherwise you can navigate to
http://localhost:3000
to use the sample.
Working with Secrets: KernelHttpServer's Readme has a note on safely working with keys and other secrets.
The Book creator sample allows you to enter in a topic then the Planner creates a plan for the functions to run based on the ask. You can see the plan along with the results.
Caution
Each function will call Open AI which will use tokens that you will be billed for.
Authentication and APIs – learn how to connect to external API's with authentication while using Semantic Kernel.
- Try modifying the language that the book is translated to via editing
the
translateToLanguage
constant in CreateBook.tsx - View
fetchTopics
in TopicSelection.tsx to see how input variables are being fed to the ask. Try changing the number.
Next we will have a version of the sample that incorporates the planner functionality.