OpenClaw: Building Local Memory on DGX Spark
Overview
Ray Fernando details his project to build a local contextual memory system for OpenClaw using a DGX Spark, aiming to replace cloud services by indexing data from Notion, Slack, and Google Drive. He plans to use Whisper for voice-to-text, NVEmbed v2 for semantic vectors stored in Qdrant, and GLINER for entity extraction in Falcor, with QEN3 30B as the local LLM.
Key takeaways
- Ray Fernando is building a local contextual memory system for OpenClaw using a DGX Spark to replace expensive cloud services.
- The system architecture involves multiple layers: data ingestion, semantic vector creation with NVEmbed v2, entity extraction with GLINER, and reasoning with the QEN3 30B LLM.
- Ray emphasizes the importance of data ownership and consolidating data from various sources into a single, locally-processed container.
- The project is inspired by Pulse HQ's work on real-time call transcription and aims to create a context graph for agent assistance.
- Ray is using Cursor with SSH to manage the DGX Spark and automate tasks with AI agents.
Chapters
- Ray Fernando aims to index and search all conversations and transcriptions locally using OpenClaw.
- The goal is to create a contextual memory layer that understands and comprehends data from various sources.
- Ray plans to use a DGX Spark provided by NVIDIA to run local models for data processing.
- Data sources include Notion Docs, Slack messages, meeting recordings, Google Drive, and Markdown Notes.
- The system architecture involves a contextual memory layer stored in a database for data comprehension.
- Ray's OpenClaw runs on a Mac Mini and will query the contextual memory layer for answers.
- Local models are now capable enough to handle these workflows on-device.
- Ray has exported ChatGPT and Anthropic chats to integrate into the local system.
- Owning the data allows for reasoning and smoother business operations.
- Layer 1 is where the data lives, Layer 2 uses Whisper for voice-to-text and NVEmbed v2 for semantic vectors.
- Qdrant database stores the vectors for semantic search.
- GLINER finds people, projects, decisions, dates, and action items, stored in the Falcor database.
- QEN3 30B LLM will run on the DGX Spark to read and retrieve context for grounded answers.
- The DGX Spark has 128GB of shared local memory.
- Ray aims to unlock solutions for users spending $500-$1000/month on cloud services.
- Inspired by a Pulse HQ talk on YouTube, Ray aims to ingest and process real-time call transcriptions.
- The system will perform document parsing, chunking, entity extraction, and relationship mapping.
- The goal is to create a context graph for agent assistance in case report triage and recommendations.
- Ray addresses a comment about comparing the DGX Spark with the Mac Studio M3 Ultra.
- The wait time for a maxed-out M3 Ultra is 11-12 weeks, making it impractical for immediate comparison.
- Ray is currently focusing on the Spark due to its immediate availability.
- Ray mentions an LLM calculator resource he created, but the site is currently down.
- He plans to republish the calculator, which is open source on GitHub.
- Ray encourages viewers to repost the live stream on X (Twitter).
- Ray emphasizes the importance of owning data and exporting it from systems like Notion, ChatGPT, and Google Search.
- Current tools have limitations as they cannot communicate with each other.
- Ray aims to consolidate all data into one container for semantic search, knowledge graphs, and local model execution.
- Ray plans to set up Docker containers for databases and UV environments for service exposure.
- Scripts will be created to hit endpoints for embeddings and other processes.
- OpenClaw will use skills files to hit local network endpoints.
- Tailscale VPN will keep everything in a secure container.
- The Mac Mini running OpenClaw will access the private network through an encrypted tunnel.
- The DGX Spark will host Docker containers, virtual environments, and the existing setup.
- Ray defends Safari as the best browser for power saving, memory optimization, and security on Mac.
- He criticizes Chrome for data leakage, fingerprinting, and running shadow services.
- Safari's private browsing mode is more secure and private than Chrome's.
- Ray uses Cursor to SSH into the DGX Spark and runs commands to check CUDA versions.
- He verifies CUDA 13 and NVIDIA SMI.
- Ray also checks the ARCH64 architecture and available memory.
- Ray disables swap memory on the DGX Spark.
- He verifies that Docker is installed.
- Ray checks the NVIDIA Container Toolkit and Python version.
- Ray recaps the project goal: creating contextual memory for Clawbot with data from various sources.
- He plans to include Notion, Slack messages, Google Drive, and real-time meeting transcriptions.
- The DGX Spark will process data and create relationships in real-time.
- Layer 2 will use GLNIR2 to find people, projects, and decisions, storing them in the FALCOR database.
- Whisper transcriptions will convert text to meanings for vectors, stored in Kudrant.
- Quen3 will be used locally on the Spark for retrieval.
- Ray used Exa MCP and Claude for research to decide on embedding models for the DGX Spark.
- He aims to understand how these systems work and build a similar system for learning.
- The implementation plan involves setting up databases and following a research-backed approach.
- Ray starts with phase one, focusing on setting up the databases.
- He turns off swap memory for unified memory safety.
- Ray uses passwords stored in Keychain to configure the system.
Transcript excerpt
0:00 I'm planning to import nearly all my Slack messages, messages on Google, and a whole bunch of other memories, and try to get that running with my OpenClaw locally. And there's an interesting twist here is that I have access to a DGX Spark thanks to NVIDIA, and I'm going to try to see if I can figure out how I can get some local models running on that little Spark device. so that way I can have all of my data from all my conversations including transcriptions from meetings and pretty much every other types of interaction indexed and searchable. The current limitation that I have is that everything has to be in a markdown file but when you have meetings when you have other types of things like emails and other type of stuff you're going to have to search for
0:46 different systems and these systems can cost 20 bucks a month upwards to four or five even thousands a if you want to try to do this through cloud services. And I thought this would be a good time to try to see if I can learn and play around with these systems. And I basically have taken the time to kind of map out what this would look like for us. So that way I can try to get this set up. So if you have some local hardware, even like a local PC with an NVIDIA graphics card, like the 4090 and stuff like that, you should be able to, or 5090, or stuff with the Blackwell systems, we should be able to apply some of these principles so that we can kind of get this going. So this is kind of the high level overview of what things are looking like. I have stuff inside of Notion Docs
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Ray Fernando.