1. 知识库/文档 模块
llmops
  • app应用模块
    • 基础聊天接口
      POST
    • 创建app
      POST
    • 获取app详情
      GET
    • 更新app
      POST
    • 删除app
      DELETE
  • 内置工具模块
    • 获取所有内置工具信息
      GET
    • 获取指定工具信息
      GET
    • 获取提供者的图标
      GET
    • 获取分类信息
      GET
  • 自定义api工具模块
    • 校验openapi-schema格式
      POST
    • 创建自定义api工具
      POST
    • 获取api提供者信息 根据uuid
      GET
    • 获取指定API工具详情
      GET
    • 查询分页
      GET
    • 更新apiprovider
      POST
  • 上传文件模块
    • 上传文件
      POST
    • 上传图片
      POST
  • 知识库/文档 模块
    • 知识库
      • 创建知识库
      • 获取知识库详情
      • 更新知识库
      • 分页搜索知识库
    • 文档
      • 指定知识库下新增文档
      • 修改文档名称
      • 获取指定文档基础信息
      • 获取知识库下的文档列表
    • 知识库召回测试
      POST
    • 根据批处理id 获取进度
      GET
    • 结巴分词/embedding 测试
      GET
  • 测试接口
    GET
  • 有道翻译接口
    GET
  1. 知识库/文档 模块

结巴分词/embedding 测试

开发中
GET
/datasets/embeddings

请求参数

Query 参数

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'http://localhost:5000/datasets/embeddings?query=C:\Users\MLTZ\.local\bin\uv.exe run D:/code/llm-ops/llmops-api/.venv/Scripts/python.exe D:\code\llm-ops\llmops-api\app\http\app.py uv run --link-mode=copy python app\http\app.py D:\code\llm-ops\llmops-api\.venv\Lib\site-packages\langchain_classic\embeddings\cache.py:58: UserWarning: Using default key encoder: SHA-1 is *not* collision-resistant. While acceptable for most cache scenarios, a motivated attacker can craft two different payloads that map to the same cache key. If that risk matters in your environment, supply a stronger encoder (e.g. SHA-256 or BLAKE2) via the `key_encoder` argument. If you change the key encoder, consider also creating a new cache, to avoid (the potential for) collisions with existing keys.  _warn_about_sha1_encoder() * Serving Flask app '\''app'\'' * Debug mode: on[2026-04-20 13:18:02,162.162] _internal.py -> _log line:97 [INFO]: WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Running on http://127.0.0.1:5000[2026-04-20 13:18:02,162.162] _internal.py -> _log line:97 [INFO]: Press CTRL+C to quit[2026-04-20 13:18:02,168.168] _internal.py -> _log line:97 [INFO]:  * Restarting with watchdog (windowsapi)D:\code\llm-ops\llmops-api\.venv\Lib\site-packages\langchain_classic\embeddings\cache.py:58: UserWarning: Using default key encoder: SHA-1 is *not* collision-resistant. While acceptable for most cache scenarios, a motivated attacker can craft two different payloads that map to the same cache key. If that risk matters in your environment, supply a stronger encoder (e.g. SHA-256 or BLAKE2) via the `key_encoder` argument. If you change the key encoder, consider also creating a new cache, to avoid (the potential for) collisions with existing keys.  _warn_about_sha1_encoder()[2026-04-20 13:18:15,681.681] _internal.py -> _log line:97 [WARNING]:  * Debugger is active![2026-04-20 13:18:15,686.686] _internal.py -> _log line:97 [INFO]:  * Debugger PIN: 109-481-337Building prefix dict from the default dictionary ...[2026-04-20 13:18:15,889.889] __init__.py -> initialize line:113 [DEBUG]: Building prefix dict from the default dictionary ...Loading model from cache C:\Users\MLTZ\AppData\Local\Temp\jieba.cache[2026-04-20 13:18:15,891.891] __init__.py -> initialize line:132 [DEBUG]: Loading model from cache C:\Users\MLTZ\AppData\Local\Temp\jieba.cacheLoading model cost 0.440 seconds.[2026-04-20 13:18:16,330.330] __init__.py -> initialize line:164 [DEBUG]: Loading model cost 0.440 seconds.Prefix dict has been built successfully.[2026-04-20 13:18:16,330.330] __init__.py -> initialize line:166 [DEBUG]: Prefix dict has been built successfully.[2026-04-20 13:18:16,331.331] _internal.py -> _log line:97 [INFO]: 127.0.0.1 - - [20/Apr/2026 13:18:16] "GET /datasets/embeddings?query=你好,%20我是野猪佩奇 HTTP/1.1" 200 -'

返回响应

🟢200成功
application/json
Body

示例
{
  "code": "success",
  "data": {
    "keywords": [
      "py",
      "cache",
      "2026",
      "20",
      "13",
      "18",
      "encoder",
      "04",
      "line",
      "key"
    ]
  },
  "message": ""
}
修改于 2026-04-22 06:58:44
上一页
根据批处理id 获取进度
下一页
测试接口
Built with