klotz: python tutorial*

0 bookmark(s) - Sort by: Date ↓ / Title / - Bookmarks from other users for this tag

  1. This tutorial provides a step-by-step guide to building a lightweight personal AI agent inspired by the nanobot architecture in Google Colab. The approach focuses on recreating core components—such as provider abstractions, tool registration, session memory, and lifecycle hooks—rather than relying on heavy external frameworks. Key features include a tool registry for Python functions, token-budgeted memory management, and an MCP-style tool server for external capabilities. The guide includes a complete Python implementation that supports both live OpenAI-compatible models and a deterministic mock provider for offline testing.
    Main topics covered:
    - Provider abstraction for multi-model compatibility
    - Automated tool schema generation using decorators
    - Session-specific memory with token budgeting
    - Lifecycle hooks for auditing and timing
    - Dynamic skill loading and MCP server connection
  2. This tutorial provides a comprehensive guide on using Google's LangExtract library to transform unstructured text into machine-readable structured data. By leveraging OpenAI models, the guide demonstrates how to build reusable extraction pipelines for various document types such as legal contracts, meeting notes, and product announcements. The workflow includes setting up dependencies, designing precise prompts with example annotations for grounding, and implementing interactive visualizations of extracted entities.
    Key topics covered:
    - Implementing structured data extraction using LangExtract and OpenAI
    - Designing prompt templates and providing few-shot examples for entity recognition
    - Building specialized pipelines for contract risk analysis and meeting action item tracking
    - Handling long-document intelligence and batch processing workflows
    - Visualizing extracted information through HTML and organizing results into tabular datasets via Pandas

Top of the page

First / Previous / Next / Last / Page 1 of 0 SemanticScuttle - klotz.me: Tags: python tutorial

About - Propulsed by SemanticScuttle