From 61542becb304506124c1a4b0298bf649e14bfcba Mon Sep 17 00:00:00 2001 From: akochari Date: Tue, 18 Jun 2024 10:21:26 +0200 Subject: [PATCH] improve the document hands-on --- FF2024/document.html | 63 +++++++++++++++++++++++++++++++++----------- FF2024/document.qmd | 56 ++++++++++++++++++++++++++++++++------- FF2024/index.html | 1 + FF2024/index.qmd | 1 + FF2024/text.html | 2 +- FF2024/text.qmd | 2 +- 6 files changed, 99 insertions(+), 26 deletions(-) diff --git a/FF2024/document.html b/FF2024/document.html index 4561a20..0c000f2 100644 --- a/FF2024/document.html +++ b/FF2024/document.html @@ -82,31 +82,64 @@

Hands-on sessions / Hands-on session 2 /

Upload and chat about a document

-

One use case of LLMs that has become popular is providing a document (for example, a PDF file) and chatting with LLMs about the content. For example, you can ask it to summarize, answer specific questions, find weaknesses and strengths, rewrite sections, and so on.

+

One use case of LLMs that has become popular is providing a document (for example, a PDF file) and chatting with LLMs about the content. An alternative that will work with some of the LLM tools is providing a link to the document instead of uploading it.

+
+
Document upload
+

If you have access to Microsoft Copilot via your university then you can simply use the upload function in the chat to upload a PDF file and then ask it to answer questions.

+

There is a number of free alternatives that you can find online. One of those is https://www.chatpdf.com/. You simply upload your PDF document here and start asking questions. One nice feature of this tool is that it tells you where it found the answer to your question.

+
+

☝️ TIP: You can upload a document in Swedish but ask questions in English and vice versa because the LLM can just translate between them.

+
+
+

☝️ TIP: If you run into a file size limitation on Microsoft Copilot, try the free alternative https://chatpdf.com/.

+
+
+
+
Example documents

In order to test this out you can use your own document or download one of our suggestions:

-
-

☝️ TIP: You can upload a document in Swedish but ask questions in English and vice versa because the LLM can just translate between them.

-
-
-

Microsoft Copilot

-

If you have access to Microsoft Copilot via your university then you can simply use the upload function in the chat to upload a PDF file and then ask it to answer questions.

+
+
+

Asking for information from the document

+

For example, we can upload the SciLifeLab annual report 2023 and ask the following.

-
I am uploading a PDF file. Summarize the content.
+
What was the total budget of SciLifeLab in 2023?
+
+
+
Create an executive summary
+
+
+
Suggest improvements
+
+
+
+

Reviewing a paper

+

One use case is to ask to use LLMs as a tool to help review your texts.

+
+
Act as a tired, critical reviewer who looks for reasons to deduct points from a grant application. Read and criticize the following manuscript: https://www.medrxiv.org/content/10.1101/2024.03.01.24303566v1 
-
-

☝️ TIP: If you run into a file size limitation, try the free alternative that we suggest below.

-
-
-

Free alternatives

-

There is a number of free alternatives that you can find online. One of those is https://www.chatpdf.com/. You simply upload your PDF document here and start asking questions. One nice feature of this tool is that it tells you where it found the answer to your question. For example, I uploaded the SciLifeLab annual report 2023 and asked the following.

+
+

Summarizing documents

+
+
Summarize the article at https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1011323
+
+
+
List three shortcomings of the paper
+
+
+
+

Finding articles

+

In our experience these prompts work particularly well in Microsoft Copilot and Perplexity.

+
+
Give me one reference to a scientific paper that supports the hypothesis that imatinib is useful for treating diabetes, and another reference that it is not useful for diabetes
+
-
What was the total budget of SciLifeLab in 2023?
+
Redo but only clinical studies
diff --git a/FF2024/document.qmd b/FF2024/document.qmd index 1794a30..1ac7751 100644 --- a/FF2024/document.qmd +++ b/FF2024/document.qmd @@ -9,7 +9,19 @@ execute: ## Upload and chat about a document -One use case of LLMs that has become popular is providing a document (for example, a PDF file) and chatting with LLMs about the content. For example, you can ask it to summarize, answer specific questions, find weaknesses and strengths, rewrite sections, and so on. +One use case of LLMs that has become popular is providing a document (for example, a PDF file) and chatting with LLMs about the content. An alternative that will work with some of the LLM tools is providing a link to the document instead of uploading it. + +##### Document upload + +If you have access to Microsoft Copilot via your university then you can simply use the upload function in the chat to upload a PDF file and then ask it to answer questions. + +There is a number of free alternatives that you can find online. One of those is https://www.chatpdf.com/. You simply upload your PDF document here and start asking questions. One nice feature of this tool is that it tells you where it found the answer to your question. + +> ☝️ **TIP**: You can upload a document in Swedish but ask questions in English and vice versa because the LLM can just translate between them. + +> ☝️ **TIP**: If you run into a file size limitation on Microsoft Copilot, try the free alternative https://chatpdf.com/. + +##### Example documents In order to test this out you can use your own document or download one of our suggestions: @@ -17,22 +29,48 @@ In order to test this out you can use your own document or download one of our s - SciLifeLab annual report 2023; - [Antibiotic perseverance increases the risk of resistance development (Brandis, Larsson, Elf, *PNAS 2023*)](https://www.pnas.org/doi/pdf/10.1073/pnas.2216216120?download=true). -> ☝️ **TIP**: You can upload a document in Swedish but ask questions in English and vice versa because the LLM can just translate between them. +### Asking for information from the document -### Microsoft Copilot +For example, we can upload the SciLifeLab annual report 2023 and ask the following. -If you have access to Microsoft Copilot via your university then you can simply use the upload function in the chat to upload a PDF file and then ask it to answer questions. +```{r} +What was the total budget of SciLifeLab in 2023? +``` ```{r} -I am uploading a PDF file. Summarize the content. +Create an executive summary ``` -> ☝️ **TIP**: If you run into a file size limitation, try the free alternative that we suggest below. +```{r} +Suggest improvements +``` -### Free alternatives +### Reviewing a paper -There is a number of free alternatives that you can find online. One of those is https://www.chatpdf.com/. You simply upload your PDF document here and start asking questions. One nice feature of this tool is that it tells you where it found the answer to your question. For example, I uploaded the SciLifeLab annual report 2023 and asked the following. +One use case is to ask to use LLMs as a tool to help review your texts. ```{r} -What was the total budget of SciLifeLab in 2023? +Act as a tired, critical reviewer who looks for reasons to deduct points from a grant application. Read and criticize the following manuscript: https://www.medrxiv.org/content/10.1101/2024.03.01.24303566v1  +``` + +### Summarizing documents + +```{r} +Summarize the article at https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1011323 +``` + +```{r} +List three shortcomings of the paper +``` + +### Finding articles + +In our experience these prompts work particularly well in Microsoft Copilot and Perplexity. + +```{r} +Give me one reference to a scientific paper that supports the hypothesis that imatinib is useful for treating diabetes, and another reference that it is not useful for diabetes +``` + +```{r} +Redo but only clinical studies ``` diff --git a/FF2024/index.html b/FF2024/index.html index c394efb..bca1748 100644 --- a/FF2024/index.html +++ b/FF2024/index.html @@ -68,6 +68,7 @@

Preparation

  • Umeå University: Instructions for access to Microsoft Copilot
  • University of Gothenburg: Instructions for access to Microsoft Copilot
  • Uppsala University: Instructions for access to Microsoft Copilot
  • +
  • Örebro University: no LLM available, use ChatGPT, Mistral or another.
  • diff --git a/FF2024/index.qmd b/FF2024/index.qmd index 6935fa8..4c5e605 100644 --- a/FF2024/index.qmd +++ b/FF2024/index.qmd @@ -31,6 +31,7 @@ Select your university for instructions on how to access Microsoft Copilot: - Umeå University: [Instructions for access to Microsoft Copilot](https://manual.its.umu.se/en/how-to-use-bing-chat/) - University of Gothenburg: [Instructions for access to Microsoft Copilot](https://studentportal.gu.se/en/news/you-can-now-login-with-your-student-account-to-use-copilot-with-bing) - Uppsala University: [Instructions for access to Microsoft Copilot](https://www.uu.se/en/staff/service-and-tools/tools-and-guides/generate-and-process-texts-and-images-using-ai/log-in-to-copilot) +- Örebro University: no LLM available, use ChatGPT, Mistral or another. ## Hands-on sessions diff --git a/FF2024/text.html b/FF2024/text.html index 5b343cc..898e715 100644 --- a/FF2024/text.html +++ b/FF2024/text.html @@ -93,7 +93,7 @@

    Answer
    Create a polite response no
    -
    Say no and make sure they don’t ask you again
    +
    Say no and make sure they don’t ask me again
    Say no as a haiku
    diff --git a/FF2024/text.qmd b/FF2024/text.qmd index d35dd51..c2977af 100644 --- a/FF2024/text.qmd +++ b/FF2024/text.qmd @@ -22,7 +22,7 @@ Create a polite response no ``` ```{r} -Say no and make sure they don’t ask you again +Say no and make sure they don’t ask me again ``` ```{r}