Utilize OpenAI API and GROBID to extract summaries of academic papers. Calculate embeddings and store in a vectorized format to allow for semantic search. With gpt-3.5-turbo
- Python 3.6+ install the requirements.txt file
- pip install -r requirements.txt
- Create a file name key.ini and paste your OpenAI API key into it
- Installation of GROBID is required for parsing PDFs. A sample of the python code used is provided in the
grobidSample.pyfile. The Python Client is also required. You can read the installation instructions for each of these repositories and follow the instructions there.
Format your Papers folder as follows:
Papers
- Processed papers are stored here.
/Papers/.APS
- The scripts from APS go here.
- The key.ini file goes here.
/Papers/.embeddings
- Processed summarizations, full text, and embeddings database stored here.
To run APS, navigate to Papers/.APS and run python APS.py
Additional keyword argument (-d) can be accepted to change the directory of the /Papers/ and /Papers/.embeddings/ folders.
- Wrap a chatGPT agent around the semantic search to allow for natural language queries
- Conversational capabilities
- Additional glossary-type knowledgebase