LLaMa 3 Web Search

An LLM app made with Ollama, LangChain and Streamlit.

Run the application on your system

  1. Install Ollama from Ollama

  2. Download LLaMa 3

ollama pull llama3
  1. Clone the repository

  2. Create a Virtual Environment and activate it

conda create --name <my-env>
conda activate <my-env>
  1. Install dependencies
pip install -r requirements.txt
  1. Create a project on Google Cloud Console and get an API Key. Create a new file named .env and add this API key.
GOOGLE_API_KEY=your-google-api-key
  1. Create a Google Custom Search Engine key from Programmable Search Engine. Select "Search the entire web" under What to Search? Add this to .env file
GOOGLE_CSE_ID=your-google-cse-key
  1. Run the app
streamlit run app.py