Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 1.08 KB

run_langchain_demo.md

File metadata and controls

46 lines (29 loc) · 1.08 KB

Running the LangChain Demo

Before you begin

  1. Make sure you've setup and initialized your Database.

  2. Make sure you've deployed your retrieval service, and are running a connection to it locally on 127.0.0.1:8080.

  3. Make sure you have Python 3.11+ installed

Setting up your Environment

  1. Set up Application Default Credentials:

    gcloud auth application-default login
  2. Change into the langchain_tools_demo directory:

    cd langchain_tools_demo
  3. Install the dependencies using pip. You may wish to do this in a venv:

    pip install -r requirements.txt

Running the Demo

  1. Start the application with:

    python main.py

    Note: for hot reloading of the app use: uvicorn main:app --host 0.0.0.0 --reload

  2. View app at http://localhost:8081/