-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
PoC with LangChain wrapper and a webapp to chat with vector store #216
Open
AlexZhangji
wants to merge
9
commits into
THUDM:main
Choose a base branch
from
AlexZhangji:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Added a proof of concept LangChain wrapper for ChatGLM model. Added a streamlit based interface to chat with a vector store. ( in this case, OpenAI related wiki pages within two degree of separation, stored in FAISS)
- Add front end for Climate book - dynamic bot description -
1 task
虽然可以联网了,这很好,但是我要是有买openaiapikey的钱也不至于用chatglm还得int4 |
后续可不可以出在百度 or bing这种不要key的上面检索 |
@zx2021 langchain是可以用huggingface model作embedding的 |
好活! |
This was referenced Mar 29, 2023
@zx2021 需要基于全开源模型的实现可以看一下这个 imClumsyPanda/langchain-ChatGLM 受这个 pull request 启发搞出来的 |
基于这个思路实现的平台:https://github.com/l15y/wenda |
可以不可以爬一下github或者gitee,充实模型的代码能力,作为代码辅助工具可以更强? |
很好 |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
新的webapp demo! 稍微功能复杂些的版本.
增加了一个实验版的ChatGLM LangChain wrapper. (用custom llm让ChatGLM能用在各类LangChain里)
增加了一个用Streamlit写的vectorstore based Chat. (搜索和选取wiki article作为context来chat)
运行后如图
(提供两个模式, 正常聊天的 Chat 和 与wiki source聊天的 AI Wikipedia Agent)