Skip to content

Commit

Permalink
Merge branch 'master' of github.com:omagdy7/ollama-logseq
Browse files Browse the repository at this point in the history
  • Loading branch information
omagdy7 committed Nov 1, 2024
2 parents f19b725 + 0b1718b commit 96d748d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ollama.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export async function convertToFlashCard(uuid: string, blockContent: string) {
try {
const questionBlock = await logseq.Editor.insertBlock(uuid, "⌛Genearting question....", { before: false })
const answerBlock = await logseq.Editor.insertBlock(questionBlock!.uuid, "⌛Genearting answer....", { before: false })
const question = await promptLLM(`Create a question about this that would fit in a flashcard:\n ${blockContent}`)
const question = await promptLLM(`Create a question for a flashcard. Provide the question only. Here is the knowledge to check:\n ${blockContent}`)
const answer = await promptLLM(`Given the question ${question} and the context of ${blockContent} What is the answer? be as brief as possible and provide the answer only.`)
await logseq.Editor.updateBlock(questionBlock!.uuid, `${question} #card`)
await delay(300)
Expand Down

0 comments on commit 96d748d

Please sign in to comment.