Skip to content

This is a simple template with the packages and a file to start working with LangChain and Huggingface.

Notifications You must be signed in to change notification settings

waseemhnyc/langchain-huggingface-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LangChain and Huggingface

This project is a simple template with all the necessary packages and a file to start working with LangChain and Huggingface.

Example Use

In the main file, we are using Falcon-7B LLM model made by Technology Innovation Institute. The open source model is shared on Hugging Face.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Installed a recent version of Python (3.7 or newer) installed and a way to create virtual environments (virtualenv or conda)
  • Created a Hugging Face account and obtain your API key. You could do that here

Getting Started

Clone the repo

git clone https://github.com/waseemhnyc/langchain-huggingface-template

Create a virutalenv and source the environment

python3 -m venv myenv
source venv/bin/activate

Install the necessary libraries

pip install -r requirements.txt

Create a .env file and input your Hugging Face API Key in the file

cp .env.example .env

Usage

To run the program, run the following command in the terminal:

python main.py

Questions or Get in Touch

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This is a simple template with the packages and a file to start working with LangChain and Huggingface.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages