Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GanymedeNil/document.ai
/ functions
Functions
5 in github.com/GanymedeNil/document.ai
⨍
Functions
5
◇
Types & classes
0
↳
Endpoints
2
↓ 1 callers
Function
prompt
生成对话的示例提示语句,格式如下: demo_q: 使用以下段落来回答问题,如果段落内容不相关就返回未查到相关信息:"成人头疼,流鼻涕是感冒还是过敏?" 1. 普通感冒:您会出现喉咙发痒或喉咙痛,流鼻涕,流清澈的稀鼻涕(液体),有时轻度发热。 2. 常年过敏
code/server/server.py:11
↓ 1 callers
Function
query
执行逻辑: 首先使用openai的Embedding API将输入的文本转换为向量 然后使用Qdrant的search API进行搜索,搜索结果中包含了向量和payload payload中包含了title和text,title是疾病的标题,text是摘要
code/server/server.py:46
↓ 1 callers
Function
to_embeddings
(items)
code/data_import/import_data.py:9
Function
hello_world
()
code/server/server.py:96
Function
search
()
code/server/server.py:101