Skip to content

🔎ArticleIQ is an AI-driven research assistant, built with Lang Chain and powered by OpenAI model, that analyzes articles and answers user queries based on the content of provided URLs using semantic search.🔗

License

Notifications You must be signed in to change notification settings

ShreeKeshavan/ArticleIQ-Smart_News_Research_Assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArticleIQ - Smart News Research Assistant 🔍

ArticleIQ is an AI-powered tool designed to assist with researching and analyzing news articles. By leveraging state-of-the-art language models, Langchain and vector search technology, ArticleIQ provides insightful answers to your questions based on the content of the provided news articles.

Project Description

ArticleIQ utilizes Streamlit to create an interactive web interface where users can input URLs of news articles they want to analyze. It processes the text of these articles using the LangChain library, which includes components such as OpenAI for language modeling, UnstructuredURLLoader for data loading, RecursiveCharacterTextSplitter for text splitting, and FAISS for vector storage and search. The tool creates vector embeddings with either OpenAI or HuggingFace's Instruct embeddings, and uses a retrieval-based question-answering system to provide users with precise answers and sources for further reading.

Technical Architecture

IMG_4234

The main libraries and technologies used in this project include:

  • Streamlit: For creating the interactive web interface.
  • LangChain: To facilitate the construction of the retrieval-based QA chain.
  • OpenAI: Providing access to powerful language models for text generation and embedding.
  • HuggingFace Transformers: For alternative language model embeddings if desired.
  • FAISS (Facebook AI Similarity Search): For efficient similarity search and retrieval of text chunks.
  • Python's Pickle: For saving and loading the FAISS vector index.
  • dotenv: For loading environment variables securely.

Installation Guide

To set up ArticleIQ, you'll need Python 3.6 or higher. Follow these steps:

  1. Clone the repository:
git clone https://github.com/ShreeKeshavan/ArticleIQ-Smart_News_Research_Assistant.git

Navigate to the project directory and install the required packages:

cd ArticleIQ-Smart_News_Research_Assistant
pip install -r requirements.txt

Run the Streamlit application:

streamlit run main.py

Usage Instructions

To use ArticleIQ, follow these steps:

  1. Run the Streamlit application: streamlit run main.py
  2. Open your web browser and go to localhost:8501 to view the app.
  3. Input the URLs of the news articles you want to analyze in the sidebar.
  4. Click "Activate ArticleIQ" to process the articles.
  5. Once processed, you can ask questions in the provided text field to get answers based on the articles' content.

Features

  • Streamlit web interface for easy interaction.
  • Supports multiple news articles through URL input.
  • Vector embedding generation for efficient information retrieval.
  • Question-answering system with sources for in-depth research.

Examples

Here's a short example of how to interact with ArticleIQ:

  1. Input URLs:
  • URL 1: https://example.com/news-article-one
  • URL 2: https://example.com/news-article-two
  1. Click "Activate ArticleIQ" to process the articles.

  2. Ask a question:

  • Input: "What are the main points discussed in the articles?"
  1. Receive an answer along with sources for further reading.

ArticleIQ-Streamlit Application Interface Overview

image

Documentation

For more detailed information on the project's architecture and functions, please refer to the ArticleIQ Project Documentation folder in the repository.

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

About

🔎ArticleIQ is an AI-driven research assistant, built with Lang Chain and powered by OpenAI model, that analyzes articles and answers user queries based on the content of provided URLs using semantic search.🔗

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages