rag/wwwroot/api/kb_list.dspy

8 lines
390 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 对外 API列出可见知识库机构隔离 + search_roles 过滤,与检索同一权限解析)
# POST /rag/api/kb_list.dspy 认证cookie 会话或 Authorization: Bearer *** key>RBAC logined 把关
# body/query: {}(无参数)
from rag import api_core as C
_ns = await C.read_json_body(request, params_kw)
env = C.session_env(request)
return await C.kb_list(env, _ns)