Minerva's Archive is a Python-based application that facilitates discussions about research reports from the Max Planck Institute for Human Development and the staff associated with them. This application interprets questions posed in natural language and offers relevant responses, backed by the content of specified documents. It leverages language model-based agents to generate accurate responses to user queries. Please be aware that the application is designed to respond only to questions concerning the Max Planck Institute for Human Development.
The agent within this application follows a structured process to generate responses to your inquiries:
-
Question: The application identifies the user's question.
-
Thought: The agent contemplates the necessary steps to answer the question. If an answer isn't readily available, it will promptly communicate this to the user.
-
Action: The agent selects an appropriate tool from a predefined set to formulate the answer.
-
Observation: The result of the action is analyzed by the agent, which assesses whether additional information is required to answer the question.
-
Repeat: This process is repeated up to three times if the agent deems the observation unsatisfactory.
-
Final Answer: The agent provides the answer (if feasible) and references the consulted documents.
Follow these steps to install the Minerva's Archive application:
-
Clone the repository to your local machine.
-
Install the necessary dependencies by running the following command:
pip install -r requirements.txt
-
Obtain an API key from OpenAI and incorporate it into the
.env
file in the project directory.
Follow these steps to use the Minerva's Archive application:
-
Verify that you have installed the required dependencies and added the OpenAI API key to the
.env
file. -
Run the
main.py
file using the Streamlit CLI with the following command:streamlit run app.py
-
The application will launch in your default web browser, presenting the user interface.
-
Use the chat interface to ask questions in natural language pertaining to the Max Planck Institute for Human Development.
Minerva's Archive is licensed under the MIT License and incorporates code fragments from the original GitHub repository ask-multiple-pdfs licensed under the MIT License.