diff options
| author | Omar Magdy <99906646+omagdy7@users.noreply.github.com> | 2024-05-13 15:05:00 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-13 15:05:00 +0300 |
| commit | 0b1718be913a9efa6faa20e31d0e8fbdf282c2a6 (patch) | |
| tree | 830f11f3a1c96ec3b0f75c32a963bb41b7543e31 /src/ollama.tsx | |
| parent | 2ef25a3b0ed6992a3ff4dcd06898196f927e0899 (diff) | |
| parent | b45cb209d1acb4c0168fb119cc41b05c31e6774b (diff) | |
| download | ollama-logseq-0b1718be913a9efa6faa20e31d0e8fbdf282c2a6.tar.xz ollama-logseq-0b1718be913a9efa6faa20e31d0e8fbdf282c2a6.zip | |
Merge pull request #22 from rominf/rominf-card-generation-prompt
Improve prompt for card generation
Diffstat (limited to 'src/ollama.tsx')
| -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 2c70685..fb1c7fa 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) |
