jtmoulia’s intermittent journal, guides, and recipes. See recent posts below, and links to archives in the header.
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
…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.
…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.
…A Saturday at home
Taking off for LA tomorrow, so packing up tonight.
Raced a bit with EBJ, practice and quali around Baku. We both got off to front-wing breaking poor starts, but started to get into the flow by the time we got into quali – I ended up P14 with the AI@55. Setting up the car to oversteer on acceleration feels helpful to avoid understeering into the wall. Also, adjusted brake linearity up to 50 so I can lean more on the breaks / have greater sensitivity in the earlier range.
…Friday and just tired
Not sure why, but tired as hell today. The bruised rib does not play well with bench press, so only worked on triceps today. At this point, just one week since the impact, so likely another month till healed up. Push-ups are a less painful alternative, will try for some sets today.
Sim Racing: ACC 1.9
Tried out the Porsche 992 and the updated physics for ACC 1.9. Super fun to catch slides and hammer kerbs. I’d like to compete in online matchmaking / LFM so working my SA up on the steam install – currently ~50 after some 20min practice races at Laguna Seca.
…