avatar

刘刚刚的blog

采菊东篱下,悠然见南山🦥

  • 首页
  • python
  • 大模型应用
  • 软件/工具导航页
  • 关于
Home
刘刚刚的blog

Typing

类型注释让python 有了更好的编辑器提示功能。 基础使用 对函数参数和返回值,进行类型注释 def surface_area_of_cube(edge_length: float) -> str:    return f"The surface area of the cube is {6 *

2025-04-21 python

大模型返回中json_schema与json_mode的区别

大模型返回json数据结构常用的方法有: json_schema:一种更适合大模型用的json返回格式 json_mode:openai最开始的json返回格式 function call:通过调用函数的形式,让大模型返回json 提示词 + 输出示例:纯提示词,如果模型能力较弱,可能会输出

2025-04-10 大模型应用

Async

协程可以使用更少的资源实现“并发”的效果。 在开发过程中要注意协程只有在遇到await才会被切换,因此在web开发中如果出现会阻塞的代码(消耗时间的同步代码或者cpu密集型代码块)需要将其添加到其他进程或者线程,才能避免阻塞主其他的请求。 ps:与go相比,GIL锁的存在,在单线程中启动python

2025-02-28

大模型应用开发相关包/工具

Prompt langchain提供:https://smith.langchain.com/hub/ MCP MCP中文文档:https://mcp-docs.cn/introduction Agent smolagents:一个可以通过写代码来进行agent行为的agent RAG<

2025-02-26

deep-searcher 、deep-research对比

阅读了两个项目的源码deep-searcher 、deep-research deep-searcher,git地址:https://github.com/zilliztech/deep-searcher deep-research,git地址:

2025-02-26
python多进程多线程下的计数及日志打印

python多进程多线程下的计数及日志打印

注意点: 需要保证在多进程内的进程锁是同一个 需要保证在单进程中的多线程内线程锁是同一个 # logger.py import multiprocessing import threading ​ ​ class Logger_test:    def __init__(self, process

2025-02-25 python
Docker的常用命令

Docker的常用命令

Docker的常用命令 # 镜像列表 docker images ​ # 容器列表 docker ps # 设置镜像源 ​ # 进入容器内部 docker exec -it {容器id} /bin/bash #或者 docker exec -it {容器id} /bin/sh # 查看镜

2025-02-05 运维
centos切换阿里云Yum源

centos切换阿里云Yum源

centos默认的yum源是国外的,国内使用的时候速度会比较慢,可以选择切换为阿里yum源。 切换Yum源 # 1.下载aliyun yum源repo文件 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo

2024-12-27 运维

一次mac环境下,dango4.2报错的问题

在升级至django4.2后,mysql连接报错如下 MySQLdb.OperationalError: (2059, "Authentication plugin 'mysql_native_password' cannot be loaded: dlopen(/usr/local/Cellar/

2024-08-06

群晖gitlab容器webstation不能访问的处理

花了3个晚上总算解决了群晖重启后,gitlab服务无法访问的问题。 群晖版本:7.2 事情的起因是这样的 在首次使用container manger启动好gitlab-ce-zh的容器后,使用webstation设置好了门户网站,webstation中根据端口进行的区分。然后好长时间没使用gitla

2024-07-24 爱好
  • 1
  • 2
  • 3
  • 4
  • …
  • 12

Recently Updated

  • 使用 claude api遇到的问题
  • 一些开发中使用的 linux运维命令
  • python包管理神器:UV
  • ollama-大模型的部署与使用
  • 为jupyter增加可选的python内核

Trending Tags

Halo 运维 postgresql 设计模式 linux就该这么学 nas rag odoo python 文本切分

©2025 刘刚刚的blog. Some rights reserved.

Using the Halo theme Chirpy