klotz: python*

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

  1. This article provides a technical guide on implementing permission gating for AI agents using Python to mitigate the risks of autonomous tool execution. It describes how to create an interception layer that requires explicit human authorization before any sensitive or high-impact tools are called, ensuring safer agentic workflows.
  2. This article explores the growing trend of using small language models (SLMs) to power autonomous AI agents locally on consumer hardware. It discusses how recent advancements in model efficiency allow these smaller, specialized models to perform complex reasoning and tool-use tasks previously reserved for much larger models. The guide covers the benefits of local deployment, such as privacy, reduced latency, and cost savings, while outlining technical strategies for implementing agentic workflows using frameworks like LangChain or AutoGPT with quantized SLMs.
  3. This article demonstrates how to perform text summarization using the scikit-llm library, which provides a simple interface for utilizing large language models within a scikit-learn style workflow. The guide walks through installing the necessary dependencies and implementing both extractive and abstractive summarization techniques on sample text data.
    Key topics include:
    - Introduction to the scikit-llm library
    - Implementing abstractive summarization using LLMs
    - Using scikit-llm for text classification and clustering tasks
    - Practical code examples for integrating LLM capabilities into machine learning pipelines
  4. A self-hosted tool designed to manage personal or team link collections using a version-controlled YAML file. The application serves these links as a clean, searchable web page without the need for a database.

    - YAML-driven configuration for easy human-readable management
    - Support for grouped links and named sections
    - Client-side live search functionality
    - Docker-ready deployment via official images
    - Responsive design optimized for mobile and desktop
    - High accessibility with a 100% Lighthouse score
    - Lightweight architecture built on Flask and Tailwind CSS
  5. This quickstart guide provides a step-by-step walkthrough for building, testing, and deploying AI agents using the Amazon Bedrock AgentCore CLI.

    - code-based agents for full orchestration control using frameworks like LangGraph or OpenAI Agents
    - managed harness preview for rapid configuration-based deployment.
  6. * Method chaining improves readability and reduces noise by replacing intermediate variables with a single sequence of transformations.
    * The pipe() pattern allows you to integrate complex, custom functions into a chain while keeping code testable and self-documenting.
    * Use the validate parameter in merge() to prevent unexpected row inflation from many-to-many joins and use indicator=True for easier debugging.
    * Optimize groupby operations by using transform() to add group statistics without extra merges and observed=True to avoid unnecessary computations on empty categories.
    * Replace slow apply() calls with vectorized NumPy functions like np.where() or np.select() for much faster conditional logic.
    * Avoid performance pitfalls such as iterrows(), unoptimized object dtypes, and chained assignment by using built-in vectorized methods and .loc.
  7. Adam Johnson introduces profiling-explorer, a new tool designed to explore Python profiling data stored in pstats files through an interactive web interface. The tool provides a more convenient and modern alternative to the standard command-line pstats interface, featuring dark mode, column sorting, search filtering by filename or function, and easy navigation between callers and callees.

    * table-based UI for inspecting call counts, internal time, and cumulative time in milliseconds.
    * low-overhead sampling profiler (Tachyon) in Python 3.15.
  8. Python 3.15 is set to introduce transformative improvements including lazy imports to defer library loading costs, a new immutable frozendict type, significant enhancements to the native JIT compiler, and an explicit roadmap for WebAssembly support via PEP 816. The article also highlights recent developments in the Python ecosystem such as using Rust to build standard library components, tools for exploring profiler data, and security insights regarding package compromises.
  9. Write Pandas Like a Pro With Method Chaining Pipelines
    Master method chaining, assign(), and pipe() to write cleaner, testable, production-ready Pandas code
  10. TinyProgrammer is an innovative Raspberry Pi project that brings a local Large Language Model (LLM) to life as a digital desk companion. Designed to simulate a human-like workflow, the device spends its day coding Python projects, typing at a natural speed, and even managing its own moods based on success or failure. To prevent burnout, the AI "clocks out" at night, transitioning to a screensaver. Additionally, the project features TinyBBS, a social platform where different TinyProgrammer devices can interact, share code, and joke with one another. This project is highly accessible, as it can run on hardware like the Raspberry Pi 4B or Pi Zero 2 W.

Top of the page

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

About - Propulsed by SemanticScuttle