Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix no resualt bugs #1449

Merged
merged 2 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
Try our demo at [https://demo.ragflow.io](https://demo.ragflow.io).
<div align="center" style="margin-top:20px;margin-bottom:20px;">
<img src="https://github.com/infiniflow/ragflow/assets/7248/2f6baa3e-1092-4f11-866d-36f6a9d075e5" width="1200"/>
<img src="https://github.com/infiniflow/ragflow/assets/12318111/b083d173-dadc-4ea9-bdeb-180d7df514eb" width="1200"/>
</div>


Expand Down
1 change: 1 addition & 0 deletions README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
デモをお試しください:[https://demo.ragflow.io](https://demo.ragflow.io)。
<div align="center" style="margin-top:20px;margin-bottom:20px;">
<img src="https://github.com/infiniflow/ragflow/assets/7248/2f6baa3e-1092-4f11-866d-36f6a9d075e5" width="1200"/>
<img src="https://github.com/infiniflow/ragflow/assets/12318111/b083d173-dadc-4ea9-bdeb-180d7df514eb" width="1200"/>
</div>


Expand Down
1 change: 1 addition & 0 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
请登录网址 [https://demo.ragflow.io](https://demo.ragflow.io) 试用 demo。
<div align="center" style="margin-top:20px;margin-bottom:20px;">
<img src="https://github.com/infiniflow/ragflow/assets/7248/2f6baa3e-1092-4f11-866d-36f6a9d075e5" width="1200"/>
<img src="https://github.com/infiniflow/ragflow/assets/12318111/b083d173-dadc-4ea9-bdeb-180d7df514eb" width="1200"/>
</div>


Expand Down
2 changes: 2 additions & 0 deletions graph/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ def prepare2run(cpns):
prepare2run([p])
break
traceback.print_exc()
break
continue

try:
Expand All @@ -231,6 +232,7 @@ def prepare2run(cpns):
prepare2run([p])
break
traceback.print_exc()
break

if self.answer:
cpn_id = self.answer[0]
Expand Down
6 changes: 3 additions & 3 deletions graph/component/baidu.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ def _run(self, history, **kwargs):
in zip(url_res, title_res, body_res)]
del body_res, url_res, title_res

br = pd.DataFrame(baidu_res, columns=['content'])
print(">>>>>>>>>>>>>>>>>>>>>>>>>>\n", br)
return br
print(baidu_res, ":::::::::::::::::::::::::::::::::")
return Baidu.be_output(baidu_res)

5 changes: 2 additions & 3 deletions graph/component/duckduckgosearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,5 @@ def _run(self, history, **kwargs):
duck_res = ['<a href="' + i["url"] + '">' + i["title"] + '</a> ' + i["body"] for i in
ddgs.news(ans, max_results=self._param.top_n)]

dr = pd.DataFrame(duck_res, columns=['content'])
print(">>>>>>>>>>>>>>>>>>>>>>>>>>\n", dr)
return dr
print(duck_res, ":::::::::::::::::::::::::::::::::")
return DuckDuckGoSearch.be_output(duck_res)
6 changes: 5 additions & 1 deletion graph/component/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ def _run(self, history, **kwargs):
return Message.be_output(random.choice(self._param.messages))

def stream_output(self):
res = None
if self._param.messages:
yield {"content": random.choice(self._param.messages)}
res = {"content": random.choice(self._param.messages)}
yield res

self.set_output(res)


4 changes: 2 additions & 2 deletions graph/templates/HR_callout_zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
"component_name": "Message",
"params": {
"messages": [
"我简单介绍以下:\nRAGFlow 是一款基于深度文档理解构建的开源 RAG(Retrieval-Augmented Generation)引擎。RAGFlow 可以为各种规模的企业及个人提供一套精简的 RAG 工作流程,结合大语言模型(LLM)针对用户各类不同的复杂格式数据提供可靠的问答以及有理有据的引用。https://github.com/infiniflow/ragflow\n您那边还有什么要了解的?"
"我简单介绍一下:\nRAGFlow 是一款基于深度文档理解构建的开源 RAG(Retrieval-Augmented Generation)引擎。RAGFlow 可以为各种规模的企业及个人提供一套精简的 RAG 工作流程,结合大语言模型(LLM)针对用户各类不同的复杂格式数据提供可靠的问答以及有理有据的引用。https://github.com/infiniflow/ragflow\n您那边还有什么要了解的?"
]
}
},
Expand Down Expand Up @@ -448,7 +448,7 @@
"data": {
"form": {
"messages": [
"我简单介绍以下:\nRAGFlow 是一款基于深度文档理解构建的开源 RAG(Retrieval-Augmented Generation)引擎。RAGFlow 可以为各种规模的企业及个人提供一套精简的 RAG 工作流程,结合大语言模型(LLM)针对用户各类不同的复杂格式数据提供可靠的问答以及有理有据的引用。https://github.com/infiniflow/ragflow\n您那边还有什么要了解的?"
"我简单介绍一下:\nRAGFlow 是一款基于深度文档理解构建的开源 RAG(Retrieval-Augmented Generation)引擎。RAGFlow 可以为各种规模的企业及个人提供一套精简的 RAG 工作流程,结合大语言模型(LLM)针对用户各类不同的复杂格式数据提供可靠的问答以及有理有据的引用。https://github.com/infiniflow/ragflow\n您那边还有什么要了解的?"
]
},
"label": "Message",
Expand Down