Skip to content

Instantly share code, notes, and snippets.

import Link from "next/link"
export default function Layout({ children }) {
const links = [
{
title: "Home",
path: "/"
},
{
@SandyLudosky
SandyLudosky / assistant-api.txt
Last active December 3, 2023 14:52
Assistants API Beta - Quickstart
import openai
from colorama import Fore
from dotenv import load_dotenv
load_dotenv()
# Initialize clients with API keys
client = openai.OpenAI()
@SandyLudosky
SandyLudosky / main.py
Created December 23, 2023 14:48
Retrieval Augmented Generation (RAG)
import os
from dotenv import load_dotenv
from langchain.chat_models import ChatOpenAI
from langchain.document_loaders import TextLoader
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.text_splitter import (
CharacterTextSplitter,
)
from langchain.prompts.chat import (
HumanMessagePromptTemplate,
Washing Machine XYZ User Manual
1. Introduction
* Welcome to the world of the Washing Machine XYZ. This manual provides detailed instructions for the safe and efficient use of your washing machine.
2. Safety
* Before using the washing machine, please read all the safety instructions provided in this manual carefully.
* Ensure that you plug the washing machine into a grounded electrical outlet in accordance with local regulations.
* Do not use the washing machine if the power cord or plug is damaged.
* Do not touch the washing machine with wet hands or feet to avoid electric shocks.