Tagged articles
5000 articles
Page 22 of 50
JD Tech
JD Tech
Apr 18, 2024 · Artificial Intelligence

Getting Started with LangChain: Overview, Core Components, and Python Code Samples

This article introduces the LangChain framework for large language model integration, explains its key components and advantages, and provides step‑by‑step Python examples for setting up environment variables, creating prompts, chaining models, and using embeddings, completions, and chat models.

ChatModelEmbeddingLLM
0 likes · 7 min read
Getting Started with LangChain: Overview, Core Components, and Python Code Samples
Python Crawling & Data Mining
Python Crawling & Data Mining
Apr 18, 2024 · Backend Development

How to Scrape GDP Data with Python and Save to CSV in Minutes

This article demonstrates how to use Python's requests, lxml, and pandas libraries to crawl GDP data from a website, parse the HTML tables, and efficiently write the extracted rankings, regions, GDP values, and years into a CSV file, providing a complete, runnable example for web scraping beginners.

CSVPythonWeb Scraping
0 likes · 8 min read
How to Scrape GDP Data with Python and Save to CSV in Minutes
CSS Magic
CSS Magic
Apr 18, 2024 · Artificial Intelligence

Get Started with Kimi API Instantly—No Coding Experience Required

This step‑by‑step guide shows how to claim your free Kimi API credit, create an API key, test the service with Postman, and integrate it via Python SDK, frontend projects, or no‑code tools like Dify, enabling anyone to build AI applications without writing code.

AIChat CompletionFrontend
0 likes · 10 min read
Get Started with Kimi API Instantly—No Coding Experience Required
Sohu Tech Products
Sohu Tech Products
Apr 17, 2024 · Artificial Intelligence

Introduction to agere: A Lightweight, Fully Customizable Agent Framework

agere is a lightweight, dependency‑free Python framework that lets developers build fully customizable agents by defining reusable Job and handler task nodes in an edge‑node model, supporting parallel execution, fine‑grained callbacks, direct parameter passing, and hierarchical orchestration through a root Commander node.

AIAgent FrameworkPython
0 likes · 10 min read
Introduction to agere: A Lightweight, Fully Customizable Agent Framework
Python Programming Learning Circle
Python Programming Learning Circle
Apr 17, 2024 · Big Data

Comparative Analysis of Starbucks and Luckin Coffee Store Distribution in China Using Python Data Visualization

Using Python data visualization and geospatial analysis, this article compares the nationwide distribution of Starbucks and Luckin Coffee stores in China, revealing differences in regional concentration, proximity patterns, and statistical insights such as average Luckin stores within 500 m of each Starbucks location.

Big DataPythonStore Distribution
0 likes · 11 min read
Comparative Analysis of Starbucks and Luckin Coffee Store Distribution in China Using Python Data Visualization
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 17, 2024 · Backend Development

Getting Started with CozeIDE: Build and Deploy Plugins in 10 Minutes

This guide introduces CozeIDE, explains its main features such as code editing, dependency management, AI programming assistant, testing and publishing, and walks you through two complete plugin development examples—including a stock‑price lookup plugin—showing how to create, test, and release plugins using Node.js or Python runtimes.

AI AssistantCozeIDENode.js
0 likes · 12 min read
Getting Started with CozeIDE: Build and Deploy Plugins in 10 Minutes
21CTO
21CTO
Apr 16, 2024 · Artificial Intelligence

Why Go Developers Are Turning to AI Despite Python Dominance

A 2024 survey of Go developers reveals strong interest in building AI applications but frustration over Python's dominant ecosystem, highlighting performance priorities, tooling gaps, and a desire for Go libraries comparable to Python's, while also showing cloud platform preferences and IDE usage trends.

Artificial IntelligenceGoPython
0 likes · 5 min read
Why Go Developers Are Turning to AI Despite Python Dominance
Didi Tech
Didi Tech
Apr 16, 2024 · Artificial Intelligence

Optimizing DSP Deep Model Latency by Externalizing Feature Processing with EzFeaFly

By externalizing feature processing with the EzFeaFly tool and feeding a dense index/value tensor directly to the GPU, the DSP platform decouples feature transformation from model inference, cutting instance usage by ~40%, reducing inference latency 70‑80%, and achieving over 60% end‑to‑end latency improvement while lowering costs.

DSPGPU AccelerationPython
0 likes · 11 min read
Optimizing DSP Deep Model Latency by Externalizing Feature Processing with EzFeaFly
NewBeeNLP
NewBeeNLP
Apr 16, 2024 · Artificial Intelligence

Demystifying the Transformer: Step‑by‑Step PaddlePaddle Implementation

This article provides a comprehensive, code‑rich walkthrough of the Transformer architecture using PaddlePaddle, covering the encoder and decoder components, residual connections, layer normalization, feed‑forward networks, scaled dot‑product and multi‑head attention, and shows how to assemble the full model with training and inference functions.

Deep LearningEncoderPaddlePaddle
0 likes · 17 min read
Demystifying the Transformer: Step‑by‑Step PaddlePaddle Implementation
Test Development Learning Exchange
Test Development Learning Exchange
Apr 16, 2024 · Artificial Intelligence

Fuzzy String Matching in Python with difflib, fuzzywuzzy, and TheFuzz

This article demonstrates how to perform fuzzy string matching in Python using three libraries—difflib, fuzzywuzzy (with python-Levenshtein), and TheFuzz—by defining matching functions, installing required packages, and providing example code that finds the best match for a given pattern among a list of candidate strings.

PythonTheFuzzdifflib
0 likes · 3 min read
Fuzzy String Matching in Python with difflib, fuzzywuzzy, and TheFuzz
dbaplus Community
dbaplus Community
Apr 15, 2024 · Operations

How Docker Init Automates Dockerfile Creation for Your Projects

This article explains how Docker's new CLI tool docker init uses generative AI to automatically generate Dockerfiles, docker‑compose files, and .dockerignore for a project, walking through a Flask example, showing commands, generated code, and the benefits of faster, safer container setup.

ContainerizationDevOpsFlask
0 likes · 7 min read
How Docker Init Automates Dockerfile Creation for Your Projects
Python Programming Learning Circle
Python Programming Learning Circle
Apr 15, 2024 · Fundamentals

20 Python One‑Liner Tricks for Concise and Readable Code

This article showcases twenty practical Python one‑liner examples that demonstrate how to write loops, conditionals, data‑structure operations, functions, recursion, file handling, and other common tasks in a single, compact line of code, complete with explanations and ready‑to‑run snippets.

One-linerPythonTips
0 likes · 13 min read
20 Python One‑Liner Tricks for Concise and Readable Code
Model Perspective
Model Perspective
Apr 15, 2024 · Fundamentals

Unlocking Model Insights: A Practical Guide to Sobol Sensitivity Analysis

This article introduces the concept and various methods of sensitivity analysis—including one‑factor, multi‑factor, variance‑based, and Monte Carlo approaches—explains Sobol indices, outlines step‑by‑step procedures, and demonstrates their application with a Python case study on urban air‑quality modeling.

Air QualityEnvironmental ModelingMonte Carlo
0 likes · 10 min read
Unlocking Model Insights: A Practical Guide to Sobol Sensitivity Analysis
Test Development Learning Exchange
Test Development Learning Exchange
Apr 12, 2024 · Operations

Python Data Backup Scripts and Tools Overview

This article introduces various Python-based data backup techniques, covering standard library modules such as shutil, zipfile, and tarfile, as well as database dump tools like pg_dump and mysqldump, and cloud storage options using awscli or boto3, with example code snippets for each method.

DatabaseOperationsPython
0 likes · 4 min read
Python Data Backup Scripts and Tools Overview
Test Development Learning Exchange
Test Development Learning Exchange
Apr 11, 2024 · Operations

From Manual to Automated: A Proven Roadmap to Become a Test Automation Engineer

The article shares a tester’s personal journey from functional testing to automation, explains why programming skills are essential, and provides a detailed, step‑by‑step learning roadmap covering Python, Selenium, Appium, API testing, CI/CD and framework development to help newcomers advance their careers.

PythonSeleniumcareer development
0 likes · 8 min read
From Manual to Automated: A Proven Roadmap to Become a Test Automation Engineer
Alibaba Cloud Developer
Alibaba Cloud Developer
Apr 11, 2024 · Fundamentals

Master LeetCode Algorithms: Essential Python Templates for Interviews

This article compiles a comprehensive set of Python algorithm templates—including syntax shortcuts, knapsack solutions, backtracking, union‑find, topological sorting, monotonic stacks, binary search, dynamic programming, prefix sums, two‑pointer techniques, tree traversals, and graph algorithms—providing clear code snippets and explanations to help developers ace LeetCode interview problems.

AlgorithmsBacktrackingData Structures
0 likes · 30 min read
Master LeetCode Algorithms: Essential Python Templates for Interviews
AI Large Model Application Practice
AI Large Model Application Practice
Apr 10, 2024 · Artificial Intelligence

What Is Self‑RAG? A Simple Guide to Self‑Reflective Retrieval‑Augmented Generation

This article explains the motivation behind Self‑RAG, describes its core workflow—including conditional retrieval, enhanced generation, and self‑evaluation tokens—details the four evaluation metrics (Retrieve, IsRel, IsSup, IsUse), and provides a Python scoring example using log‑probabilities.

LLMLogprobsPython
0 likes · 13 min read
What Is Self‑RAG? A Simple Guide to Self‑Reflective Retrieval‑Augmented Generation
Alibaba Cloud Developer
Alibaba Cloud Developer
Apr 10, 2024 · Artificial Intelligence

Master LangChain in 10 Minutes: From Basics to Advanced AI Engineering

This guide walks AI engineers through a rapid 10‑minute boot‑strap of LangChain, explaining its purpose, core concepts, design questions, environment setup, and step‑by‑step code examples that cover APIs, chains, memory, retrieval‑augmented generation, tools, agents, and the overall architecture.

AI EngineeringLLMLangChain
0 likes · 28 min read
Master LangChain in 10 Minutes: From Basics to Advanced AI Engineering
Python Programming Learning Circle
Python Programming Learning Circle
Apr 8, 2024 · Fundamentals

Common Python One‑Line Code Snippets and Tricks

This article presents a collection of concise Python one‑line code snippets—including ternary operators, multiple variable assignments, list swapping, list comprehensions, dictionary and set comprehensions, file handling, and command‑line one‑liners—demonstrating how to write more compact and readable code.

Pythonlist-comprehensionternary operator
0 likes · 9 min read
Common Python One‑Line Code Snippets and Tricks
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 5, 2024 · Artificial Intelligence

Linear Regression Algorithm: Definition, Structure, Implementation, Cost Function, Gradient Descent, and Regularization

This article provides a comprehensive overview of linear regression, covering its definition, purpose, algorithmic steps, data preparation, feature scaling, parameter initialization, cost function computation, gradient descent optimization, visualization, normal equation solution, and regularization, accompanied by detailed Python code examples.

NumPyPythoncost function
0 likes · 19 min read
Linear Regression Algorithm: Definition, Structure, Implementation, Cost Function, Gradient Descent, and Regularization
21CTO
21CTO
Apr 4, 2024 · Fundamentals

Boost Your Daily Productivity with Simple Python Automation Scripts

This article shows Python enthusiasts how a few lines of code can automate everyday tasks—from email handling and web scraping to file management and data processing—helping you work smarter, save time, and focus on higher‑level problems.

PythonScriptingautomation
0 likes · 10 min read
Boost Your Daily Productivity with Simple Python Automation Scripts
Python Programming Learning Circle
Python Programming Learning Circle
Apr 3, 2024 · Fundamentals

Accelerating Python Code with Taichi: Up to 100× Speed Boosts

This article introduces Taichi, a Python‑embedded DSL that compiles kernel functions for CPU and GPU execution, and demonstrates through three practical examples how importing the library and adding decorators can accelerate Python code by up to a hundredfold, with detailed performance numbers and installation instructions.

DSLGPUPython
0 likes · 7 min read
Accelerating Python Code with Taichi: Up to 100× Speed Boosts
Test Development Learning Exchange
Test Development Learning Exchange
Apr 2, 2024 · Backend Development

Building a Python-Based ChatGPT Chat Interface

This article provides a comprehensive guide on creating a Python-based ChatGPT chat interface using Flask, covering web application setup, HTML interface creation, backend logic implementation, and frontend JavaScript enhancement.

API integrationBackend DevelopmentChatGPT
0 likes · 5 min read
Building a Python-Based ChatGPT Chat Interface
Python Programming Learning Circle
Python Programming Learning Circle
Apr 2, 2024 · Artificial Intelligence

Overview of Common Python Libraries for Artificial Intelligence and Data Science with Code Examples

This article provides a comprehensive introduction to popular Python libraries for artificial intelligence, computer vision, data analysis, and machine learning—such as NumPy, OpenCV, scikit‑image, Pillow, TensorFlow, PyTorch, and many others—accompanied by concise code snippets and performance comparisons to help beginners select suitable tools.

AI librariesCode ExamplesPython
0 likes · 33 min read
Overview of Common Python Libraries for Artificial Intelligence and Data Science with Code Examples
Python Programming Learning Circle
Python Programming Learning Circle
Apr 2, 2024 · Operations

17 Practical Python Scripts for Automating Common Tasks

This article presents a collection of 17 practical Python scripts that automate tasks such as file management, web scraping, email handling, Excel processing, database interaction, system administration, image editing, and more, providing code examples and explanations to help developers and analysts improve productivity through automation.

DataProcessingPythonScripting
0 likes · 27 min read
17 Practical Python Scripts for Automating Common Tasks
Python Programming Learning Circle
Python Programming Learning Circle
Apr 1, 2024 · Fundamentals

Introduction to Python Text‑Based UI Frameworks: Curses, npyscreen, and Urwid

This article introduces three popular Python text‑based UI frameworks—Curses, npyscreen, and Urwid—explaining their features, installation steps, and providing runnable code examples that demonstrate creating windows, forms, and interactive command‑line applications for developers seeking lightweight terminal interfaces.

CLIPythoncurses
0 likes · 8 min read
Introduction to Python Text‑Based UI Frameworks: Curses, npyscreen, and Urwid
Software Development Quality
Software Development Quality
Apr 1, 2024 · Information Security

Master One-Click Info Collection & Scanning with jws-cli: A Python Security Tool

jws-cli is a Python‑based, extensible one‑click information collection and scanning tool that automates subdomain discovery, CDN and WAF detection, port and C‑segment scanning, and integrates third‑party vulnerability scanners, offering visual reports and email delivery for rapid penetration testing workflows.

Information GatheringPythonautomation
0 likes · 6 min read
Master One-Click Info Collection & Scanning with jws-cli: A Python Security Tool
Test Development Learning Exchange
Test Development Learning Exchange
Mar 31, 2024 · Big Data

Apache Airflow Overview and Advanced Usage Examples

This article introduces Apache Airflow, explains its core concepts such as DAGs, tasks, operators, executors, and the web UI, and provides multiple practical Python code examples for Bash commands, Python functions, SQL queries, task dependencies, sensors, dynamic DAGs, SubDAGs, XCom, email alerts, and error handling.

Apache AirflowDAGPython
0 likes · 7 min read
Apache Airflow Overview and Advanced Usage Examples
Test Development Learning Exchange
Test Development Learning Exchange
Mar 30, 2024 · Operations

Monitoring macOS and Windows System Resources with Python

This guide explains why and how to monitor CPU, memory, and disk I/O on macOS or Windows using Python's psutil, matplotlib, and numpy libraries, covering performance analysis, troubleshooting, capacity planning, automated alerts, and includes a complete example script that visualizes resource usage over time.

Pythonperformance analysispsutil
0 likes · 6 min read
Monitoring macOS and Windows System Resources with Python
Python Programming Learning Circle
Python Programming Learning Circle
Mar 29, 2024 · Fundamentals

Comprehensive Guide to Python Built-in Functions with Examples

This article presents a detailed overview of Python's 66 built-in functions, explaining each function's purpose and providing concise example code snippets that demonstrate typical usage, making it a valuable resource for beginners and intermediate programmers seeking to master fundamental Python capabilities.

Pythonbuilt-in functions
0 likes · 10 min read
Comprehensive Guide to Python Built-in Functions with Examples
Sohu Tech Products
Sohu Tech Products
Mar 27, 2024 · Artificial Intelligence

Building a RAG Application with Baidu Vector Database and Qianfan Embedding

This tutorial walks through building a Retrieval‑Augmented Generation application by setting up Baidu’s Vector Database and Qianfan embedding service, configuring credentials, creating a document database and vector table, loading and chunking PDFs, generating embeddings, storing them, and performing scalar, vector and hybrid similarity searches, ready for integration with Wenxin LLM for answer generation.

AI applicationsBaidu QianfanEmbedding
0 likes · 11 min read
Building a RAG Application with Baidu Vector Database and Qianfan Embedding
Python Programming Learning Circle
Python Programming Learning Circle
Mar 27, 2024 · Operations

9 Practical Python Automation Scenarios with Sample Scripts

This article presents nine practical Python automation scenarios—including file management, web scraping, text processing, email handling, Excel manipulation, database interaction, social media posting, system task scheduling, and image editing—each accompanied by clear script examples and explanations to help readers streamline repetitive tasks efficiently.

DatabaseEmailPython
0 likes · 19 min read
9 Practical Python Automation Scenarios with Sample Scripts
DaTaobao Tech
DaTaobao Tech
Mar 27, 2024 · Artificial Intelligence

Building a Simple Diffusion Model with Python

This tutorial walks through implementing a basic Denoising Diffusion Probabilistic Model in Python, explaining the forward noise schedule, reverse denoising training, and providing complete code for noise schedules, diffusion functions, residual and attention blocks, a UNet architecture, loss computation, and a training loop.

DDPMPythonU-Net
0 likes · 26 min read
Building a Simple Diffusion Model with Python
Test Development Learning Exchange
Test Development Learning Exchange
Mar 27, 2024 · Artificial Intelligence

Introduction to PyTorch and Example CNN Training on CIFAR-10

This article introduces PyTorch as a leading open‑source deep‑learning framework, outlines its key components such as dynamic computation graphs, tensors, autograd, modules, optimizers, data loading, distributed training and TorchScript, and provides a complete Python example that defines a simple CNN and trains it on the CIFAR‑10 dataset.

CNNDeep LearningPyTorch
0 likes · 8 min read
Introduction to PyTorch and Example CNN Training on CIFAR-10
Python Programming Learning Circle
Python Programming Learning Circle
Mar 26, 2024 · Cloud Native

Choosing the Right Docker Base Image for Python Applications

An in‑depth comparison of popular Docker base images—including Ubuntu, Alpine, Debian, CentOS, Amazon Linux 2, and official Python images—evaluates stability, security updates, dependency freshness, size, and build time to guide developers in selecting the optimal Linux distribution for Python container deployments.

Base ImageContainerDocker
0 likes · 18 min read
Choosing the Right Docker Base Image for Python Applications
Test Development Learning Exchange
Test Development Learning Exchange
Mar 26, 2024 · Backend Development

Using pdoc to Generate API Documentation for Python Projects

pdoc is a lightweight Python command‑line tool that automatically extracts docstrings to produce clean HTML API documentation, offering features such as module and package generation, custom templates, markdown export, and a built‑in preview server for rapid documentation workflows.

API documentationCLIDocumentation Generation
0 likes · 5 min read
Using pdoc to Generate API Documentation for Python Projects
Python Programming Learning Circle
Python Programming Learning Circle
Mar 25, 2024 · Fundamentals

Simple Techniques to Accelerate Python for‑loops (1.3× to 970× Speedup)

This article presents a collection of practical Python techniques—such as list comprehensions, pre‑computing lengths, using sets, skipping irrelevant iterations, inlining functions, generators, map, memoization, vectorization, filterfalse, and join—that together can boost for‑loop performance anywhere from 1.3‑fold up to nearly a thousand times, with concrete code examples and benchmark results.

Code ProfilingLoop OptimizationPython
0 likes · 16 min read
Simple Techniques to Accelerate Python for‑loops (1.3× to 970× Speedup)
Python Programming Learning Circle
Python Programming Learning Circle
Mar 25, 2024 · Game Development

Implementing Automatic Missile Tracking in Python with Pygame

This article explains the mathematics and step‑by‑step Python pygame implementation of an automatic missile‑tracking algorithm for shooting games, covering time‑slice calculations, trigonometric direction computation, and image rotation handling to keep the missile tip aligned with the target.

Game DevelopmentMissile TrackingPygame
0 likes · 8 min read
Implementing Automatic Missile Tracking in Python with Pygame
Python Programming Learning Circle
Python Programming Learning Circle
Mar 23, 2024 · Fundamentals

13 Lesser‑Known Python Features You Should Know

This article introduces thirteen hidden or underused Python features—including list stepping, the find method, iterators, doctest, yield, dictionary get, for/else loops, named string formatting, recursion limits, conditional expressions, argument unpacking, the __hello__ module, and multi‑line strings—each illustrated with code examples.

PythonTipsfeatures
0 likes · 8 min read
13 Lesser‑Known Python Features You Should Know
Python Programming Learning Circle
Python Programming Learning Circle
Mar 23, 2024 · Artificial Intelligence

Eight Python Libraries to Accelerate Data‑Science Workflows

This article introduces eight Python libraries—including Optuna, ITMO_FS, shap‑hypetune, PyCaret, floWeaver, Gradio, Terality, and Torch‑Handle—that streamline data‑science tasks such as hyperparameter optimization, feature selection, model building, visualization, and deployment, helping users save coding time and improve productivity.

Pythonautomationdata-science
0 likes · 12 min read
Eight Python Libraries to Accelerate Data‑Science Workflows
Python Programming Learning Circle
Python Programming Learning Circle
Mar 21, 2024 · Databases

Comprehensive Guide to Using PyMySQL for MySQL Interaction in Python

This article provides a detailed tutorial on the PyMySQL library, covering installation, connection setup, cursor operations, executing queries, transaction handling, advanced features like batch processing and connection pooling, as well as best practices for error handling and performance optimization in Python‑MySQL applications.

DatabaseMySQLPython
0 likes · 9 min read
Comprehensive Guide to Using PyMySQL for MySQL Interaction in Python
Python Programming Learning Circle
Python Programming Learning Circle
Mar 20, 2024 · Game Development

Python Pygame Solar System Simulation Tutorial

This tutorial demonstrates how to use Python and the Pygame library to create a real‑time visual simulation of the solar system, complete with background images, rotating planet sprites, optional music, and frame‑rate control, providing a hands‑on example of basic game‑style graphics programming.

Game DevelopmentGraphicsPygame
0 likes · 15 min read
Python Pygame Solar System Simulation Tutorial
MaGe Linux Operations
MaGe Linux Operations
Mar 19, 2024 · Backend Development

Master Python Proxies: 5 Essential Tips for Effective Web Scraping

Learn the core concepts of using proxies in Python web scraping, including what proxies are, common types like anonymous and high‑anonymity, how they protect your crawler, practical implementation with the requests library, and an overview of building a proxy pool for scalable data extraction.

CrawlerPythonWeb Scraping
0 likes · 7 min read
Master Python Proxies: 5 Essential Tips for Effective Web Scraping
Model Perspective
Model Perspective
Mar 18, 2024 · Fundamentals

How Long Does a Brick Take to Sink to the Ocean Bottom? A Physics Model

Confucius watches two children argue about a brick’s sinking time, then uses physics—gravity, buoyancy, drag—and a mathematical model with Python code to estimate how long the brick takes to reach the bottom of various oceans, highlighting differences due to depth and terminal velocity.

PhysicsPythonfluid dynamics
0 likes · 9 min read
How Long Does a Brick Take to Sink to the Ocean Bottom? A Physics Model
Test Development Learning Exchange
Test Development Learning Exchange
Mar 17, 2024 · Fundamentals

Python Built-in Functions Reference

This reference lists Python's built‑in functions, providing concise English descriptions and example code snippets for each, covering topics from basic type conversions and arithmetic to object introspection and file handling and utility operations.

Pythonbasicsbuilt-in functions
0 likes · 19 min read
Python Built-in Functions Reference
Test Development Learning Exchange
Test Development Learning Exchange
Mar 16, 2024 · Fundamentals

Python Built-in Functions and Utilities

This article introduces 10 essential Python built-in functions and utilities including enumerate(), zip(), filter(), map(), sorted(), functools.partial(), itertools.combinations(), lambda, getattr()/setattr(), and reversed(), with practical code examples for each.

LambdaMAPPython
0 likes · 3 min read
Python Built-in Functions and Utilities
MaGe Linux Operations
MaGe Linux Operations
Mar 15, 2024 · Backend Development

Build a Simple Python Web Scraper to Fetch Recipes in 5 Minutes

This guide walks you through creating a lightweight Python web scraper that fetches recipe data from a cooking website, covering HTTP requests, HTML parsing with BeautifulSoup, extracting titles and images, and wrapping the process into an interactive console application.

Console ApplicationPythonbeautifulsoup
0 likes · 15 min read
Build a Simple Python Web Scraper to Fetch Recipes in 5 Minutes
21CTO
21CTO
Mar 14, 2024 · Fundamentals

Will Python Finally Ditch the GIL? Inside the Upcoming 3.13 Changes

The article explains how Python's CPython interpreter is set to make the Global Interpreter Lock optional through PEP 703, detailing the recent merge that adds PYTHON_GIL=0 support, the expected Python 3.13 release date, and the potential impact on concurrency and AI workloads.

ConcurrencyGILPEP703
0 likes · 5 min read
Will Python Finally Ditch the GIL? Inside the Upcoming 3.13 Changes
Sohu Tech Products
Sohu Tech Products
Mar 13, 2024 · Artificial Intelligence

Build a Minimal Retrieval‑Augmented Generation (Tiny‑RAG) from Scratch

This step‑by‑step guide explains how to implement a lightweight Retrieval‑Augmented Generation system—Tiny‑RAG—by creating embedding classes, loading and chunking documents, building a simple vector store, performing similarity search, and integrating a large language model for answer generation, complete with runnable Python code.

EmbeddingLLMPython
0 likes · 14 min read
Build a Minimal Retrieval‑Augmented Generation (Tiny‑RAG) from Scratch
Test Development Learning Exchange
Test Development Learning Exchange
Mar 13, 2024 · Backend Development

Extracting Project Dependencies and File Header Comments in Python

This guide explains how to automatically collect all third‑party modules used in a Python project—by manually inspecting imports or using tools such as pipreqs, Poetry, or pipdeptree to generate a requirements.txt file—and provides a Python script for extracting the first‑line comments from each .py file and saving them to a text file.

File CommentsPoetryPython
0 likes · 4 min read
Extracting Project Dependencies and File Header Comments in Python
Open Source Tech Hub
Open Source Tech Hub
Mar 12, 2024 · Artificial Intelligence

Step-by-Step Guide to Install ModelScope and Perform NLP Inference in Python & PHP

This guide walks you through setting up a Conda Python environment, installing PyTorch and the ModelScope library, running NLP pipelines for tasks like word segmentation and text classification, and calling ModelScope models from PHP using the PHPY extension, complete with code examples and troubleshooting tips.

AI inferenceModelScopeNLP
0 likes · 14 min read
Step-by-Step Guide to Install ModelScope and Perform NLP Inference in Python & PHP
21CTO
21CTO
Mar 12, 2024 · Artificial Intelligence

Top 10 Python Libraries Every Data Scientist Must Master in 2024

Discover the essential Python libraries for data science in 2024, from versatile tools like Taipy and Pandas to powerful machine‑learning frameworks such as TensorFlow, PyTorch, and Scikit‑Learn, each with key features, use‑cases, and GitHub links to boost your analytics career.

AIPythondata-science
0 likes · 7 min read
Top 10 Python Libraries Every Data Scientist Must Master in 2024
AI Large Model Application Practice
AI Large Model Application Practice
Mar 12, 2024 · Artificial Intelligence

How to Build a Corrective RAG Agent with LangGraph: A Step‑by‑Step Guide

This article explains how to use LangGraph—a graph‑based extension of LangChain—to implement a corrective RAG (C‑RAG) pipeline that evaluates retrieved documents, rewrites queries when needed, performs web search, and generates accurate answers, complete with code snippets and a runnable example.

Corrective RAGLLMLangChain
0 likes · 14 min read
How to Build a Corrective RAG Agent with LangGraph: A Step‑by‑Step Guide
Python Programming Learning Circle
Python Programming Learning Circle
Mar 12, 2024 · Fundamentals

Visual Guide to NumPy: Creating Arrays, Operations, Indexing, and Applications

This tutorial provides a visual, step‑by‑step guide to NumPy, covering array creation, arithmetic and broadcasting, indexing, aggregation, matrix operations, reshaping, and practical examples such as computing mean‑squared error for machine‑learning models, illustrated with code snippets and diagrams.

Array OperationsPythondata-science
0 likes · 10 min read
Visual Guide to NumPy: Creating Arrays, Operations, Indexing, and Applications