Added the interactive learnbyheart page#10
Open
A-meerdervan wants to merge 3 commits intoPauseAI:mainfrom
Open
Added the interactive learnbyheart page#10A-meerdervan wants to merge 3 commits intoPauseAI:mainfrom
A-meerdervan wants to merge 3 commits intoPauseAI:mainfrom
Conversation
…the user can learn ai facts by heart through repetition
|
| Name | Link |
|---|---|
| 🔨 Latest commit | e5733a7 |
joepio
reviewed
Jul 25, 2023
| // fetch operation. The text file contains multiple subsets with lines: question;answer;context | ||
| onMount(async () => { | ||
| try { | ||
| const response = await fetch(pathToData); |
Collaborator
There was a problem hiding this comment.
This will not work with server-side rendering, you can't use fetch here, needs to be in the load function.
joepio
reviewed
Jul 25, 2023
| const lines = content.split('\n'); | ||
| dataset = []; | ||
| let datasetIndex = -1; // done to make the first datasetIndex start at -1+1 = 0. | ||
| for (let i = 0; i < lines.length; i++) { |
Collaborator
There was a problem hiding this comment.
All this parsing logic isn't needed if you migrate the .txt to something like JSON. You can probably use chatGPT to help with this!
Collaborator
|
Cool stuff! It's working locally :) Thanks for making this 😄 Some UX feedback:
Code feedback:
Also made some comments! Overall, cool work :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I created the alexaddlearnbyheart branch.
It now also contains questions on what capital belongs to what country, this is just for Joep to get a feel for what the
experience is to use this when you do not know any of the answers when starting. How the learning feels.
The capitals subsets should be removed from the aifacts.txt file before merging with the main branch.
What is added:
A page at /learnbyheart that is an interactive way to learn about AI in general and xrisk and the pause.
All content is controlled by the aifacts.txt file
I made a google doc with instructions and all of the information that can be learned, to use for updating the aifacts file with a
copy paste operation.
There are tripples of question,answer,context on each line.
The user can select between multiple subsets of questions
The user gets asked the question, learns from seeing the answer and gets the question asked again later to drill in the knowledge.
List of commit messages: