diff options
| author | omagdy <omar.professional8777@gmail.com> | 2024-11-01 23:42:49 +0200 |
|---|---|---|
| committer | omagdy <omar.professional8777@gmail.com> | 2024-11-01 23:42:49 +0200 |
| commit | 96d748d8bf31bd1b01704d4f32a7891bacb4e2be (patch) | |
| tree | 989f6126c4f90f09d00e625185baf2f09dfc41c0 | |
| parent | f19b7255eeea0c353cf855ac9b626ac95eba676c (diff) | |
| parent | 0b1718be913a9efa6faa20e31d0e8fbdf282c2a6 (diff) | |
| download | ollama-logseq-96d748d8bf31bd1b01704d4f32a7891bacb4e2be.tar.xz ollama-logseq-96d748d8bf31bd1b01704d4f32a7891bacb4e2be.zip | |
Merge branch 'master' of github.com:omagdy7/ollama-logseq
| -rw-r--r-- | src/ollama.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ollama.tsx b/src/ollama.tsx index 9b503f4..ecc7565 100644 --- a/src/ollama.tsx +++ b/src/ollama.tsx @@ -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) |
