Build AI Agent Memory with Graphiti Knowledge Graphs
Plus stream million-row CSVs with Polars
Grab your coffee. Here are this week’s highlights.
📅 Today’s Picks
Build AI Agent Memory with Graphiti Knowledge Graphs
Problem
Traditional RAG pipelines rely on batch processing and static document summaries. When data changes, you re-embed, re-index, and wait.
That delay means your agent is always working with stale information, unable to track how facts evolve over time.
Solution
Graphiti is an open-source Python framework that builds knowledge graphs with real-time, incremental updates. This lets you add new information at any time without reprocessing your entire dataset.
Key features:
Track when facts happened and when they were recorded, so you always know what’s current
Search by meaning, keywords, or relationships in one query
Get the most relevant results for a specific person, company, or entity
Works with Neo4j, FalkorDB, and Kuzu as the graph backend
Polars sink_csv: Stream Million-Row Exports Without Memory Spikes
Problem
Writing large DataFrames to CSV is memory-intensive because the entire dataset is serialized in memory before being written to disk.
Solution
Polars’ streaming CSV sink avoids this by writing data in chunks rather than all at once.
Key benefits:
Eliminate out-of-memory errors on large exports
Write multi-million row DataFrames with minimal RAM
Support for cloud storage destinations (S3, GCS, Azure)
Switch from write_csv to sink_csv on a lazy frame to enable streaming.
📖 View Full Article | ⭐ View GitHub
☕️ Weekly Finds
Flowise [AI Agents] - Low-code platform for building AI agents and workflows visually with drag-and-drop components
cleanlab [Machine Learning] - Data-centric AI package that automatically detects data quality issues, label errors, and outliers in ML datasets
OpenBB [Finance] - Open-source financial data platform for analysts, quants, and AI agents with dozens of data integrations
📚 Latest Deep Dives
5 Python Tools for Structured LLM Outputs: A Practical Comparison - Compare 5 Python tools for structured LLM outputs. Learn when to use Instructor, PydanticAI, LangChain, Outlines, or Guidance for JSON extraction.
Before You Go
🔍 Explore More on CodeCut
Tool Selector - Discover 70+ Python tools for AI and data science
Production Ready Data Science - A practical book for taking projects from prototype to production
💬 Rate Your Experience
How would you rate your newsletter experience? Share your feedback →


