Skip to content

Instantly share code, notes, and snippets.

View Haste171's full-sized avatar

David Haste171

View GitHub Profile
@Haste171
Haste171 / global_pull_requests.py
Created March 5, 2024 01:26
View all of you're lifetime pull requests across all of GitHub
import requests
import json
# Replace 'your_token_here' with your GitHub Personal Access Token
TOKEN = 'your_token_here'
# Replace 'your_username_here' with your GitHub username
USERNAME = 'haste171'
def get_merged_pull_requests(username, token):
headers = {'Authorization': f'token {token}'}
@Haste171
Haste171 / langchain_ingest_docs.py
Created May 18, 2023 04:29
Ingest readthedocs.io documentation websites with Langchain and upsert their ingestions to Pinecone
import asyncio
import os
import tempfile
from urllib.parse import urljoin
from langchain.document_loaders import ReadTheDocsLoader
import aiohttp
from bs4 import BeautifulSoup
from langchain.embeddings.openai import OpenAIEmbeddings
@Haste171
Haste171 / promptengineering.md
Last active December 16, 2022 03:15
A Guide to Prompt Engineering

Before you read this you might ask 'why would learning how to prompt engineer be beneficial to me'?

Overall, prompt engineering plays a crucial role in the development and maintenance of text-based AI systems, as it helps to ensure that the prompts used by the system are effective at eliciting meaningful and accurate responses.

Additionally, prompt engineering will allow you to get a sufficient and legitimately useful response from an AI

Definition

Prompt engineering is the process of designing and constructing prompts for machine learning models, such as natural language processing (NLP) models. A prompt is a piece of text or a sequence of words that is used to generate a response from an NLP model. The goal of prompt engineering is to create prompts that are effective at eliciting meaningful and accurate responses from the model.

Key Considerations:

@Haste171
Haste171 / markdown-text-101.md
Created October 9, 2020 13:36 — forked from matthewzring/markdown-text-101.md
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

Sweet Styles

Italics *italics* or _italics_

Underline italics __*underline italics*__