/RAG_with_Internet_Browsing

This project is a web page search application that uses Langchain for web page analysis and Ollama for answer generation. It is built with Flask and integrates with the Langchain and Ollama APIs.

Primary LanguagePythonMozilla Public License 2.0MPL-2.0

RAG with Internet Browsing (Langchain, Flask and Ollama)

This project is a web page search application that uses Langchain for web page analysis and Ollama for answer generation. It is built with Flask and integrates with the Langchain and Ollama APIs.

RAG with Internet Browsing (Langchain, Flask and Ollama)

Installation

Before running the project, you need to install the required dependencies, including Ollama. Follow the steps below:

  1. Install Ollama:

  2. Install Python dependencies:

    pip install -r requirements.txt

Usage

  1. Run the Flask application:

    python app.py
  2. Open your web browser and navigate to http://localhost:5000.

  3. Enter a URL and a question in the provided form and click "Submit."

  4. The application will search the web page, analyze the content using Langchain, and generate an answer using Ollama.

Dependencies

  • Flask==3.0.1
  • langchain==0.1.3
  • langchain_community==0.0.17
  • ollama==0.1.6

License

This project is licensed under the MIT License.