This project uses Claude AI to extract key points and summarize articles based on user input. It gathers relevant keywords and then provides recent articles (within the past month) and research papers (from any time) based on the extracted keywords.
- Input Handling: Take user input in the form of text or URL and process it using Claude AI.
- Key Point Extraction: Claude AI identifies and extracts the key points from the provided content.
- Summarization: Provides a concise summary of the article or research paper.
- Keyword Generation: Extracts important keywords from the input for more relevant search results.
- Recent Articles Retrieval: Searches for and retrieves articles published within the past month that match the extracted keywords.
- Research Papers Search: Retrieves research papers (from any time) based on the generated keywords.
-
Create a New Folder: Create a new folder named
anything_you_want.mkdir anything_you_want cd anything_you_want -
Create a Virtual Environment: Run the following command to create a virtual environment inside the folder:
python3 -m venv venv
-
Activate the Virtual Environment: Activate the virtual environment and move into it:
source ./venv/bin/activate cd venv
-
Install Dependencies:
- Move the
requirements.txtfile from ourvenvfolder into yourvenvfolder. - Run the following command to install the dependencies listed in the
requirements.txtfile:
pip3 install -r requirements.txt
- Move the
-
Create Configuration Files:
- Create a
.envfile and.gitignorefile in thevenvfolder. - The .gitignore should say
venv INRIX-Access
- Create a
-
Set Up AWS Credentials: The
.envfile should contain your AWS credentials in the following format:AWS_ACCESS_KEY_ID="your-access-key-id" AWS_SECRET_ACCESS_KEY="your-secret-access-key"To get your AWS credentials, follow these steps:
- Sign in to the AWS Management Console.
- Navigate to the IAM (Identity and Access Management) dashboard.
- Select Users from the sidebar and click on your user name.
- Go to the Security credentials tab and click Create access key.
- Download or copy the
Access Key IDandSecret Access Key.
After obtaining your credentials, add them to the
.envfile as shown above. -
Install NewsAPI Python Client: Run the following command to install the
newsapi-pythonpackage:pip3 install newsapi-python
-
Install Flask: Run the following command to install
Flask:pip3 install Flask
-
Move Project Files:
- Move our
staticfolder,templatesfolder, andconverse.pyfile into yourvenvfolder.
- Move our
-
Run the Application: Run the
converse.pyscript using the following command:
python3 converse.py