Teddy-XiongGZ / MedRAG

Code for the MedRAG toolkit
https://teddy-xionggz.github.io/benchmark-medical-rag/
Other
162 stars 25 forks source link

Prompt template for single document on medical QA with MEDRAG #6

Closed ahwatnow closed 5 months ago

ahwatnow commented 5 months ago

Hello @Teddy-XiongGZ

Thank you for your awesome work. I am really impressed by the scale of experiments you and your team have conducted.

I have one small question

The example template that is mentioned in the paper and the GitHub is

Here are the relevant documents:
{{context}}

I wonder if you used this for using single retrieved snippet setting as well, instead of using

""" Here is a relevant document: """

Teddy-XiongGZ commented 5 months ago

Thank you for your interest in our work! We did use the same template when using a single retrieved snippet. Before being entered into the templates, all snippets will be indexed as shown in https://github.com/Teddy-XiongGZ/MedRAG/blob/main/src/medrag.py#L93.