Sign inSign up

lfoppiano/document-insights-qa

By lfoppiano

•Updated 4 months ago

Scientific Document Insight Q/A

Image
0

5.4K

lfoppiano/document-insights-qa repository overview

⁠DocumentIQA: Scientific Document Insight QA

⁠Introduction

Question/Answering on scientific documents using LLMs (OpenAI, Mistral, LLama2, etc..). This application is the frontend for testing the RAG (Retrieval Augmented Generation) on scientific documents, that we are developing at NIMS. Differently to most of the project, we focus on scientific articles. We target only the full-text using Grobid⁠ that provide and cleaner results than the raw PDF2Text converter (which is comparable with most of other solutions).

NER in LLM response: The responses from the LLMs are post-processed to extract physical quantities, measurements (with grobid-quantities⁠) and materials mentions (with grobid-superconductors⁠).

Demos:

⁠Getting started

  • Select the model+embedding combination you want ot use (for LLama2 you must acknowledge their licence both on meta.com and on huggingface. See here⁠)(Llama2 was removed due to API limitations).
  • Enter your API Key (Open AI⁠ or Huggingface⁠).
  • Upload a scientific article as PDF document. You will see a spinner or loading indicator while the processing is in progress.
  • Once the spinner stops, you can proceed to ask your questions

⁠Run with docker

docker run lfoppiano/document-insights-qa:{latest_version}

⁠Acknolwedgement

This project is developed at the National Institute for Materials Science⁠ (NIMS) in Japan in collaboration with the Lambard-ML-Team⁠.

Tag summary

Content type

Image

Digest

sha256:9bc10f3ca…

Size

6 GB

Last updated

4 months ago

docker pull lfoppiano/document-insights-qa:latest-develop