Skip to content

Magical-Mist/Article_Analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ask Away: Article Analyzer 🔗

Ask Away is an intuitively crafted research tool, seamlessly engineered for the retrieval of information leveraging Retrieval Augmented Generation (RAG). Empowering users to input article URLs and pose inquiries, it facilitates the extraction of relevant insights from the articles with utmost ease and efficiency.

Features:

  • Enter the URLs to fetch article content.
  • Load files from remote URLs using UnstructuredURLLoader.
  • Construct an embedding vector using OpenAI's embeddings and leverage FAISS, a powerful similarity search library, to enable swift and effective retrieval of relevant information
  • Interact with OpenAI's Language Model (ChatGPT) by submitting queries, and in return, obtain comprehensive answers accompanied by source URLs.

Installation

  1. Clone this repository to your local machine using:
  git clone https://github.com/Magical-Mist/Article_Analyzer.git
  1. Navigate to the project directory:
  cd article_analyzer
  1. Install the required dependencies using pip:
  pip install -r requirements.txt
  1. Set up your OpenAI API key by creating a .env file in the project root and adding your API
  OPENAI_API_KEY=your_api_key_here
  1. Enter your user-agent in UnstructuredURLLoader's header or remove the header parameter in main.py file.

How to Run?

  1. Run the Streamlit app by executing:
  streamlit run main.py
  1. The web application will open in your browser.

Project Structure

  • main.py: The main Streamlit application script.
  • requirements.txt: mentions the required Python packages for the project.
  • faiss_index_store.pkl: Pickle file that stores the FAISS index.
  • .env: Configuration file to store your OpenAI API key.

About

'Ask Away' is an intuitively crafted LLM research tool, seamlessly engineered for the retrieval of information. Empowering users to input article URLs and pose inquiries, it facilitates the extraction of relevant insights from the articles with utmost ease and efficiency. Developed using Langchain, OpenAi, StreamLit.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages