上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 204 下一页
摘要: 一,默认不能从远程访问chrome的调试端口: 例子: $ google-chrome --remote-debugging-port=9222 --user-data-dir=/data/python/xianyu/userdata 通过局域网ip访问: 本地可以访问: 二,通过端口转发供远程访问 阅读全文
posted @ 2025-11-21 19:43 刘宏缔的架构森林 阅读(601) 评论(0) 推荐(0)
摘要: 一,项目 地址: https://github.com/unclecode/crawl4ai 二,通过pip安装: $ mkdir crawl4ai $ cd crawl4ai/ $ python3 -m venv venv $ source venv/bin/activate (venv) liu 阅读全文
posted @ 2025-11-20 22:10 刘宏缔的架构森林 阅读(241) 评论(0) 推荐(0)
摘要: 一,chrome启动调试端口 $ google-chrome --remote-debugging-port=9222 --user-data-dir=/data/python/xianyu/userdata DevTools listening on ws://127.0.0.1:9222/dev 阅读全文
posted @ 2025-11-20 12:08 刘宏缔的架构森林 阅读(61) 评论(0) 推荐(0)
摘要: 一,以无头方式打开时,调试端口会打开 $ google-chrome --headless --remote-debugging-port=9222 DevTools listening on ws://127.0.0.1:9222/devtools/browser/d445e793-89bf-42 阅读全文
posted @ 2025-11-20 10:37 刘宏缔的架构森林 阅读(577) 评论(0) 推荐(0)
摘要: 一,安装第三方库: $ pip install pyppeteer $ pip install beautifulsoup4 二,代码 import asyncio from pyppeteer import launch async def check(): browser = await lau 阅读全文
posted @ 2025-11-16 17:38 刘宏缔的架构森林 阅读(21) 评论(0) 推荐(0)
摘要: 一,代码: from flask import Blueprint,jsonify,render_template,request from app import milvus_client from pymilvus import FieldSchema, DataType, Collection 阅读全文
posted @ 2025-11-16 15:05 刘宏缔的架构森林 阅读(27) 评论(0) 推荐(0)
摘要: 一,安装第三方库 $ pip install sentence_transformers 二,创建collection并添加数据 from app import milvus_client from pymilvus import FieldSchema, DataType, CollectionS 阅读全文
posted @ 2025-11-16 13:20 刘宏缔的架构森林 阅读(21) 评论(0) 推荐(0)
摘要: 一,下载地址: all-MiniLM-L6-v2 https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/tree/main 二,镜像地址: https://public.ukp.informatik.tu-darmstadt.de 阅读全文
posted @ 2025-11-16 13:17 刘宏缔的架构森林 阅读(1313) 评论(0) 推荐(0)
摘要: 一,报错信息: MilvusException: (code=65535, message=the length(384) of float data should divide the dim(1024)) 原因: 代码中定义的vector的dim是1024,但模型的长度是384,设置为两者一致即 阅读全文
posted @ 2025-11-16 13:10 刘宏缔的架构森林 阅读(142) 评论(0) 推荐(0)
摘要: 一,代码: 建立连接: from pymilvus import MilvusClient # Milvus连接配置 milvus_client = MilvusClient( uri="http://localhost:19530", token="root:Milvus", db_name="d 阅读全文
posted @ 2025-11-15 14:36 刘宏缔的架构森林 阅读(43) 评论(0) 推荐(0)
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 204 下一页