Skip to content

Instantly share code, notes, and snippets.

View Daethyra's full-sized avatar
🤍
Vibing<3

Daethyra

🤍
Vibing<3
  • Cyberspace
  • 15:24 (UTC -07:00)
View GitHub Profile
@Daethyra
Daethyra / chugma_chatbot.py
Last active January 12, 2024 21:43
RAG Discord Chatbot
import os
import logging
import discord
from langchain_openai import OpenAI
from langchain.chains import LLMChain
from langchain_core.prompts import PromptTemplate
from langchain.schema import StrOutputParser
from langchain.memory import ConversationBufferWindowMemory
# Configure our logger
@Daethyra
Daethyra / nest_runs_within_tools.ipynb
Last active December 8, 2023 04:45
Group and trace nested calls via `run_manager`
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Daethyra
Daethyra / chat_evaluation_single_turn.ipynb
Last active December 8, 2023 04:38
This walkthrough guides you in creating a dataset to evaluate chatbots within multi-turn conversations.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Daethyra
Daethyra / langsmith-walkthrough.ipynb
Last active December 8, 2023 03:42
LangSmith, a unified platform for debugging, testing, and monitoring your LLM applications.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Daethyra
Daethyra / Reset-DockerWslIntegration.ps1
Created November 28, 2023 23:25
Execute to release the disk space consumed by Docker Desktop's virtual data.
<#
.SYNOPSIS
This module provides functions to reset Docker WSL integration.
.DESCRIPTION
The module includes functions to stop Docker Desktop, shut down WSL, and unregister Docker WSL data.
.NOTES
Version: 1.0
Author: Daethyra
@Daethyra
Daethyra / fine-tune-microsoft-git.ipynb
Last active May 22, 2024 12:42
Fine-Tune a Captioning Model.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Daethyra
Daethyra / langchain-qa-over-local-docs.ipynb
Last active October 9, 2023 13:36
Question/Answering w/ Chroma | Embeddings Retrieval
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Daethyra
Daethyra / query_local_docs.py
Last active October 7, 2023 04:57
Python module for Querying Local Documents w/ LangChain and Chroma
import os
import glob
from dotenv import load_dotenv
from retrying import retry
from langchain.document_loaders import PyPDFLoader
from langchain.text_splitter import RecursiveCharacterTextSplitter
from langchain.vectorstores import Chroma
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.llms import OpenAI as OpenAILLM
from langchain.chains.question_answering import load_qa_chain
@Daethyra
Daethyra / ask-a-book-questions.ipynb
Last active October 5, 2023 23:52
ask-a-book-questions.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Daethyra
Daethyra / gen-qa-openai.ipynb
Last active October 5, 2023 19:43
Generative: Question/Answering w/ OpenAI
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.