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.
Before running the project, you need to install the required dependencies, including Ollama. Follow the steps below:
-
Install Ollama:
-
For Linux, run the following command in your terminal:
curl https://ollama.ai/install.sh | sh
-
For macOS, download the Ollama project from https://ollama.ai/download/Ollama-darwin.zip.
-
-
Install Python dependencies:
pip install -r requirements.txt
-
Run the Flask application:
python app.py
-
Open your web browser and navigate to http://localhost:5000.
-
Enter a URL and a question in the provided form and click "Submit."
-
The application will search the web page, analyze the content using Langchain, and generate an answer using Ollama.
- Flask==3.0.1
- langchain==0.1.3
- langchain_community==0.0.17
- ollama==0.1.6
This project is licensed under the MIT License.