This project is a simple template with all the necessary packages and a file to start working with LangChain and Huggingface.
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.
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
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
To run the program, run the following command in the terminal:
python main.py
- Twitter: https://twitter.com/waseemhnyc
- Email: waseemh.nyc@gmail.com
This project is licensed under the MIT License - see the LICENSE file for details.