Skip to content

pjq/langchain-yoda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LangChain-Yoda

LangChain-Yoda is a collection of various agents and tools built based on Langchain to explore the capabilities of

  • natural language processing using open-source libraries and APIs.
  • kinds of tools and agents build by Langchain
  • Embeddings and index capability

Slides

Setup the KEYS

export GOOGLE_CSE_ID=""
export GOOGLE_API_KEY=""
export SERPER_API_KEY=""
export MODEL=""

Install the dependencies

pip install -r requirements.txt

File Structure

The repository has the following file structure:

LangChain/
├── agent/
│   ├── bashbot.py
│   ├── googlesearch.py
│   ├── googlesearch_chatbot.py
│   └── langchain_agent.py
├── gpt4all/
│   └── gpt4all.py
├── index/
│   ├── blog.txt
│   ├── langchain_index.py
│   └── state_of_the_union.txt
├── lib/
│   └── proxy.py
├── llama-cpp/
│   ├── llama.py
│   └── llama_embed.py
├── main.py
├── openai/
│   └── langchain_openai.py
├── requirements.txt
└── start/
    └── langchain_start.py

Description of Directories and Files

agent/

The agent/ directory contains various agents built for specific tasks in natural language processing, including a Bashbot that executes shell commands, a Googlesearch that provides search results from Google, and a Langchain Agent that performs various NLP-related tasks.

gpt4all/

The gpt4all/ directory contains Python scripts for interacting with the OpenAI GPT-3 API.

index/

The index/ directory contains sample text files designed for language processing, including a blog post and a transcript of President Barack Obama's 2009 inaugural address.

lib/

The lib/ directory contains helper modules.

llama-cpp/

The llama-cpp/ directory contains Python scripts that use the Llama Embeddings Module to perform NLP-related tasks.

openai/

The openai/ directory contains Python scripts for interacting with the OpenAI GPT-3 API.

requirements.txt

requirements.txt contains a list of Python packages required to run the scripts in the repository.

start/

The start/ directory contains Python scripts for launching the various agents and tools in LangChain.

Getting Started

To get started with LangChain, clone the repository and install the required packages by running:

pip install -r requirements.txt

Then, navigate to the start/ directory and choose one of the Python scripts to launch an agent or tool. For example, to launch the Langchain Agent, run:

python langchain_start.py

License

The code in this repository is licensed under the MIT License. Please read the LICENSE file in the root directory for more information.

OpenAI/ChatGPT

GPT-4

GPT Plugins

How to build you own ChatGPT App

LLM

gpt4all

Alpaca.cpp

llama.cpp

langchain

Tools

Agents

Prompts

Auto fix bug in CI/CD

Refer

About

Build Yoda on Langchain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages