Skip to content

JorisdeJong123/LangChain-Unchained

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LangChain Unchained Series

The LangChain Unchained series is a collection of small LangChain projects with a Streamlit UI. Each project demonstrates the implementation of different components of LangChain, a framework for working with large language models.

Installation

To run the LangChain Unchained projects, follow these steps:

  1. Clone the repository.

  2. Install the required dependencies.

  3. Set up the OpenAI API Key:

  • Sign up for an account on the OpenAI platform (https://platform.openai.com/playground) if you haven't already.
  • Obtain an API key from OpenAI.
  • Set the OPENAI_API_KEY environment variable with your API key.
  • Change the .env_ file to .env

Usage

Each LangChain Unchained project is located in a separate file. To run a specific project, navigate to its directory and execute the Streamlit command:

streamlit run project_x.py

This will start the Streamlit application, and you can access it in your browser by opening the provided URL.

Projects

Project 1: Four-Hour Workday Strategy

  • File: project_1.py
  • Description: This project helps you create a strategy for a four-hour workday based on a YouTube video. It utilizes LangChain components like YouTube transcript loader, text splitting, summarization_chain, and LLMChain. The Streamlit UI allows you to enter a YouTube video URL, and it generates a strategy and plan for your workday.

Project 2: Prompt Generator

  • File: project_2.py
  • Description: This project focuses on the importance of prompts in achieving excellent results with Large Language Models (LLMs). The Prompt Generator tool helps you generate effective prompts for interacting with LLMs. It leverages Few-shot learning techniques by utilizing example prompts to instruct the model.

Contributing

Contributions to the LangChain Unchained series are welcome! If you have ideas for new projects, bug fixes, or improvements, feel free to open an issue or submit a pull request.

I'll be updating the directory over the coming days.

Contact

For any questions, feedback, or suggestions regarding the LangChain Unchained series, you can reach out on Twitter or send an email.

Enjoy exploring the LangChain Unchained projects and have fun experimenting with the LangChain framework!

About

7 Streamlit Implementations of simple LangChain projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages