rag
This commit is contained in:
parent
069e287bdd
commit
d629f483dc
@ -17,6 +17,7 @@ class APIService:
|
||||
debug(f'{uapi=}, {type(uapi.call)}')
|
||||
params_kw = {"input": texts}
|
||||
b = await uapi.call(upappid, apiname, user, params_kw)
|
||||
debug(f'{b=}, {type(b)}')
|
||||
d = json.loads(b.decode('utf-8'))
|
||||
if d.get("object") != "list" or not d.get("data"):
|
||||
error(f"嵌入服务响应格式错误: {d}")
|
||||
@ -146,7 +147,7 @@ class APIService:
|
||||
}
|
||||
b = uapi.call(upappid, apiname, user, params_kw)
|
||||
d = json.loads(b.decode('utf-8'))
|
||||
return d
|
||||
return d
|
||||
|
||||
async def neo4j_delete_document(self, request, document_id: str, upappid: str, apiname: str, user: str) -> Dict[str, Any]:
|
||||
"""删除指定文档"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user