Skip to content

shri3016/NewsNinja

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NewsNinja: News Research Tool

NewsNinja is an easy-to-use news Research tool developed for hassle-free data retrieval. Users can enter URLs of articles and ask questions gather meaningful insights from the financial and stock market domains.

Tools/Technologies Used:

This project involves implementing an end-to-end solution using Large Language Models (LLM) and Natural Language Processing (NLP) techniques like:

  • Langchain

  • OpenAI API

  • FAISS

  • Streamlit

Features

  • Load URLs or upload text files that contain URLs to extract article content.
  • Utilize LangChain's UnstructuredURL Loader to process article content.
  • Generate an embedding vector utilizing OpenAI's embeddings and utilize FAISS, a robust similarity search library, to facilitate rapid and efficient retrieval of pertinent information.
  • Engage with the LLM's by inputting queries and receiving answers alongside source URLs.

Installation

  1. You can clone this repository to your local machine using:
  git clone <repository_url>
  1. To install the required dependencies using pip use the following command:
  pip install -r requirements.txt

4.You can enter your OpenAI API key in the .env file:

  OPENAI_API_KEY=your_api_key_here

Usage

  1. To run the Streamlit app use:
streamlit run main.py
  1. The web app will open in your browser.

Project Directory Structure

  • main.py: The main application script of Streamlit.
  • requirements.txt: Python packages required for the project.
  • faiss_store_openai.pkl: A pickle file which stores the FAISS index.
  • .env: Configuration file which will store your OpenAI API key.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published