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

[BUG/Help] chatGLM是否可以联网/在搜索引擎获取最新消息 #198

Closed
1 task done
YIZXIY opened this issue Mar 22, 2023 · 10 comments
Closed
1 task done

[BUG/Help] chatGLM是否可以联网/在搜索引擎获取最新消息 #198

YIZXIY opened this issue Mar 22, 2023 · 10 comments

Comments

@YIZXIY
Copy link
Contributor

YIZXIY commented Mar 22, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

我问了chatGLM,但是他的回答颠三倒四,一会谁可以一会说不行,想求证一下到底行不行

Expected Behavior

No response

Steps To Reproduce

.

Environment

- OS:windows10
- Python:3.10
- Transformers:
- PyTorch:2.0.0
- CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) :ture

Anything else?

No response

@georgechen1827
Copy link

不行,但你可以把网页上的内容作为输入进行提问

@AlexZhangji
Copy link

可以配合Google custom search API加入到prompt里.

@imClumsyPanda
Copy link
Contributor

可以利用llama-index和langchain实现对输入内容建立索引➡️输入问句匹配索引中内容➡️依据模版将匹配内容+问句形成新问句提出query➡️获得最终回答

@zerodegress
Copy link

也许可以把搜索结果简单处理后插入到prompts前面

@YIZXIY
Copy link
Contributor Author

YIZXIY commented Mar 24, 2023

可以配合Google custom search API加入到prompt里.

这个要怎么加

@YIZXIY
Copy link
Contributor Author

YIZXIY commented Mar 24, 2023

这个要怎么加

@66hh
Copy link

66hh commented Mar 25, 2023

可以配合Google custom search API加入到prompt里.

这个要怎么加

你可以试试先抽取输入问题的关键词然后去搜索引擎搜一下然后把搜索到的内容喂给chatglm然后再让chatglm回答提的问题

@kunshou123
Copy link

可以利用llama-index和langchain实现对输入内容建立索引➡️输入问句匹配索引中内容➡️依据模版将匹配内容+问句形成新问句提出query➡️获得最终回答
你好,这种实现方式有开源的项目可以参考吗

@imClumsyPanda
Copy link
Contributor

@kunshou123 可以看一下这个#216

@imClumsyPanda
Copy link
Contributor

我前两天刚做了一个基于本地文本的实现,后续可以通过langchain的接口增加html的接入,可以参考一下
langchain-ChatGLM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants