Drizzllms


Some useful LLM access

OpenAssistant has whipped up the most impressive LLaMa derivative I’ve interacted with so far. Here’s to them pushing the envelope with an open approach, and here’s their interface.

Also, Azure OpenAI is available if you apply, and offers GPT-4 via an API with excellent documentation. I see what the Microsoft $10B is paying for.

Exercise

I’m going to stop tracking each exercise here. It’s totally redundant with the strong android app I use, and is still too manual to write. It’s working for me as a tracking app and while I’d like to build my own, this is one I can save for the AI’s

Read more ⟶

Friday to Home


Watched the Azerbaijan F1 quali this morning. Ooolala Leclerc snatching pole from the Red Bulls – fellow loves his Baku.

I got access to OpenAI’s GPT-4 API and an alpha of the plugin interface today. The plugins tools seem to 1) use a custom model, and 2) still be incredibly [alpha] slow. I’ll be looking to develop a plugin of my own to get smart with the technology, though still figuring out what’d be the best integration 🤔

Read more ⟶

Thursday last in Culver


Driving back home tomorrow after work – returning to snoot and berry and some beautiful weather.

I’ve done a good job getting workouts in every morning this week, though the ribs are still blocking bench press. The early wakeups are because I have roomies but getting the whole morning is full early bird.

My curiosity is well-piqued to g

Read more ⟶

Monday back in Culver


LLM: Using GPT-4 to query a site

Here’s a quick incantation to use GPT-4 to ask questions about a site.

First off, you need a Python environment with these dependencies installed (assuming an environment is set up using poetry):

poetry add langchain beautifulsoup4 nest_asyncio ipython
poetry run ipython

Using langchain, load all pages referenced in this site’s sitemap.xml into a vector index.

import os
from langchain.document_loaders.sitemap import SitemapLoader
from langchain.indexes import VectorstoreIndexCreator

os.environ["OPENAI_API_KEY"] = "..."

sitemap = "https://jtmoulia.srht.site/sitemap.xml"
sitemap_loader = SitemapLoader(web_path=sitemap)
index = VectorstoreIndexCreator().from_loaders([sitemap_loader])

# And now the site's vector index can be queried
index.query("When was I last in LA?")

Note: this will cost ~0.14c using OpenAI’s GPT-4 interface. The index can be persisted.

Read more ⟶

A Sunday heading away from home


As for exercise: shot some hoops. Running is a rough proposition with the still-bruised-rib, so bringing the bike for cardio down in LA.

Driving down to LA today, with a return on this Friday. The weather is flawless, not not looking forward to it. annnd got a flat, will head down tomorrow morning

Zipped around Baku a bit more in F1'22. Still clipping my wing when I lock, but I actually feel like I’m improving with the new setup. Starting to adjust the differential as the tires wear which helps keep the car from snap turning on throttle.

Read more ⟶