Skip to content

HaseebAhmed49/llm-code-interpretor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LangChain - Develop LLM powered applications with LangChain

LangChain QR Code Interpretor and CSV Agent

In this code, there are two agents (CSV and QR Code Intrepretor), output will be on prompt based. Agent will be selected in runtime.

Application Output Screenshots

Python Agent

image

CSV Agent Runtime Selection

image

Steps to run the application

  1. Install Python=3.11.
  2. Install Pycharm
  3. Clone the repository
git clone "repository-url"
  1. Generate a separate interpretor by following these steps
    1. Open Interpretor in Preferences
    2. Add Local Interpretor using this image image
    3. Click on Pipenv Environment
    4. Add Base Interpretor (Python path where its installed by using "which python3" on terminal)
    5. Add Pipenv executable (Python path where its installed by using "which pipenv" on terminal)
      1. Run the command "pip install pipenv" (if pipenv not installed)
    6. See this screenshot for Step 4.4 and 4.5
      which python3
      which pipenv
      pip install pipenv
  2. Generate .env file and store API Keys as in image
OPENAI_API_KEY=your-openai-api-key
TAVILY_API_KEY=your-tavily-api-key
ANTHROPIC_API_KEY=your-anthropic-api-key
  1. Install all the dependencies using pipfile
cd llm-code-interpretor
pipenv install
  1. Start "pipenv shell" environment in terminal (Make sure you're in working directory)
pipenv shell

image 8. Run the application in pycharm.

** This is a test applications. Errors and Ommissions are accepted ** ** Developed & Tested this LangChain ChatBot application in macOS **

*** In case of any errors, contact at "haseebahmed02@gmail.com" or Whatsapp "+447949067041". Will debug the application at your end and let it run ***

Thanks for your visit to my profile.

About

Code Interpretor using Langchain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages