This tool is designed to streamline fact-finding and research by extracting relevant information from multiple news sources. Users provide a set of URLs along with a specific question, and the program analyzes the content to generate an answer based on the provided sources. By leveraging natural language processing (NLP) and information retrieval techniques, the tool ensures that responses are grounded in credible references. It is ideal for journalists, researchers, and analysts who need quick, source-backed insights without manually sifting through multiple articles.
To get started, clone this repository to your local machine using:
git clone https://github.com/your-username/your-repo.git
cd your-repoYou can install the required dependencies using either pip or conda.
Ensure you have Python installed, then run:
pip install -r requirements.txtIf you prefer to use conda, create a new environment and install dependencies with:
conda create --name myenv python=3.11
conda activate myenv
conda install --yes --file requirements.txtTo configure the OpenAI API key, create a .env file in the project root and add the following line:
echo "OPENAI_API_KEY='insert your api key here'" > .envAlternatively, you can export the key as an environment variable:
export OPENAI_API_KEY='insert your api key here'Once the dependencies are installed and the environment is set up, you can start the project with:
streamlit run main.py- Ensure your
.envfile is included in.gitignoreto keep your API key secure. - If using
conda, make sure to activate the environment (conda activate myenv) before running the project.
For further details, refer to the project documentation or contact the maintainers.