Skip to content

TheoPetropoulos/langchain-course

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

General Documentation

The open-source framework that we will be using is called LangChain. It is a framework designed to facilitate the development of applications powered by large language models (LLMs). It provides tools and abstractions that help developers build complex applications by integrating LLMs with other data sources and computational resources.

Setting up Local Large Language Model (LLM)

There are two ways in which you can create GenAI Applications (also known as AI Agents):

  1. Have a paid API service, that provides access to closed-source LLMs:

  2. Download a local model:

Once Ollama is installed, you will be able to run below command: ollama pull llama3.2:3b

This will pull the specific model and install it on your machine. Ollama will then serve this model locally, basically creating a local API for you! You need to be running the application so that you can call the model though.

Clone the repository and navigate to the directory

git clone https://github.com/TheoPetropoulos/langchain-course.git

cd langchain-course

Create a virtual environment using venv

python3 -m venv langchain-env

Activate the virtual environment

On Windows

langchain-env\Scripts\activate

On macOS and Linux

source langchain-env/bin/activate

Install the required packages

pip install --upgrade pip pip install -r requirements.txt

Running Exercises

Navigate to the exercises directory and run the Python scripts

cd exercises

python3 exercises/[choose_exercise].py

Notes

  • You might not need to use python3. This has to do with your current environment setup.
  • I am using python3.12

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published