from langchain.document_loaders import YoutubeLoader | |
from langchain.indexes import VectorstoreIndexCreator | |
loader = YoutubeLoader.from_youtube_url("https://www.youtube.com/watch?v=fLn-WqliEQU&lc=UgyOc6oNr_4-YLGCL2R4AaABAg", add_video_info=False) | |
docs = loader.load() | |
index = VectorstoreIndexCreator() | |
index = index.from_documents(docs) |
from abc import ABC | |
from typing import List, Optional, Any | |
import chromadb | |
from langchain.docstore.document import Document | |
from langchain.embeddings.base import Embeddings | |
from langchain.vectorstores import Chroma | |
class CachedChroma(Chroma, ABC): |
After this prompt, to begin conversing with Bartonus in English, simply begin with "gm", like so:
User: gm
[ASCII cat]
Bartonus: [inquires about microworld]
User: [provides microword here]
here i describe a design of a gas-efficent, ranked-choice voting system.
the most common form of ranked choice voting, instant run off, works like this:
- voters submit a list of candidates sorted by their preference.
- if there is an option with the majority of first-preference votes, that option is the winner.
- otherwise, remove the option with the fewest first-preference votes from all preference lists and repeat.
abstract type AbstractLattice; end | |
function widen; end | |
""" | |
struct JLTypeLattice | |
A singleton type representing the lattice of Julia types, without any inference | |
extensions. | |
""" |
Everyone who interacts with computers has in important ways always already been programming them.
Every time you make a folder or rename a file on your computer, the actions you take through moving your mouse and clicking on buttons, translate into text-based commands or scripts which eventually translate into binary.
Why are the common conceptions of programmer and user so divorced from each other? The distinction between programmer and user is reinforced and maintained by a tech industry that benefits from a population rendered computationally passive. If we accept and adopt the role of less agency, we then make it harder for ourselves to come into more agency.
We've unpacked the "user" a little, now let's look at the "programmer." When a programmer is writing javascript, they are using prewritten, packaged functions and variables in order to carry out the actions they want their code to do. In this way, the programmer is also the user. Why is using pre-made scripts seen
Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
ActivityTweet | |
generic_activity_highlights | |
generic_activity_momentsbreaking | |
RankedOrganicTweet | |
suggest_activity | |
suggest_activity_feed | |
suggest_activity_highlights | |
suggest_activity_tweet |