Practical Python AI Project (Complete Code Included)

Practical Python AI Project (Complete Code Included)

00 Abstract Introduction As we enter the era of “AI artificial intelligence”, mastering the integration of AI and development technologies and accumulating practical experience in AI projects is crucial for future career development and meeting business demands. Last week, I successfully implemented a highly anticipated AI chat session project using the FastAPI + SQLAlchemy + … Read more

JWT Authentication in HTTP Requests

JWT Authentication in HTTP Requests

This article will briefly introduce what JWT authentication in HTTP requests is and how to use JWT in practical projects. Welcome to follow my public account NLP Journey, where original technical articles are pushed at the first time. Welcome to follow my knowledge planet Natural Language Processing Journey, where I am working hard to build … Read more

Image Recognition System (Non-Docker Version) – Complete Deployment Documentation – Ubuntu (Orange Pi Development Board Testing) Learning Record 2

Image Recognition System (Non-Docker Version) - Complete Deployment Documentation - Ubuntu (Orange Pi Development Board Testing) Learning Record 2

1. Project Overview This project is a machine learning-based Partial Discharge (PD) image recognition system that uses the Support Vector Machine (SVM) algorithm to automatically classify different types of partial discharge images. The system provides RESTful API services through the FastAPI framework, allowing it to receive uploaded images and return recognition results. 2. Features • … Read more

Developing AI Agents with Python (Part Four)

Developing AI Agents with Python (Part Four)

The previous article introduced how to define prompt templates within the Langchain framework. This article will introduce a tool in the LangChain ecosystem called LangServe. 1. What is LangServe? LangServe is a tool in the LangChain ecosystem designed to help developers quickly deploy chains, agents, or other runnable objects developed with LangChain as REST API … Read more

Unveiling: Practical Implementation Process of Python Microservices Architecture from Requirements to Deployment

Unveiling: Practical Implementation Process of Python Microservices Architecture from Requirements to Deployment

That day at three in the morning, the online service suddenly crashed. After checking the logs, we discovered that our seemingly rock-solid monolithic application could not withstand high concurrency. The entire team stayed up all night, and we barely managed to get through the crisis by temporarily scaling up the servers. This incident completely solidified … Read more

Full Stack Development with Python: Building Cloud-Native Applications with FastAPI and Docker

Full Stack Development with Python: Building Cloud-Native Applications with FastAPI and Docker

1. Practical Steps for Full Stack Development with FastAPI and Docker 1. Project Initialization and Basic Configuration of FastAPI # main.py from fastapi import FastAPI from pydantic import BaseModel app = FastAPI(title="Cloud-Native API Service") # Automatically generate Swagger documentation class Item(BaseModel): name: str price: float @app.post("/items/") async def create_item(item: Item): """Asynchronously handle POST requests with … Read more

Exploring FastAPI: A Powerful Python Framework for Backend Development

Exploring FastAPI: A Powerful Python Framework for Backend Development

Exploring FastAPI: A Powerful Python Framework for Backend Development Hello everyone, I am Xiangqian! Today I want to introduce you to a super powerful Python web framework – FastAPI. It is not only fast and easy to use, but also comes with built-in API documentation, making it a magical tool for backend development! Let’s explore … Read more