Skip to content

Instantly share code, notes, and snippets.

View Cotchi666's full-sized avatar
🍀
Growing

Chien Nguyen Cotchi666

🍀
Growing
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Cotchi666
Cotchi666 / chain.py
Last active April 10, 2024 07:22
train LLMs
import os
from dotenv import load_dotenv
from operator import itemgetter
load_dotenv()
from langchain_community.document_loaders import PyPDFLoader
from langchain_text_splitters import CharacterTextSplitter
from langchain.document_loaders.csv_loader import CSVLoader
from langchain.docstore.document import Document
print("hello world! this is my first gist")