Skip to content

Commit

Permalink
improve example notebook langchain
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Jan 17, 2024
1 parent 67b0b1b commit 2675729
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Those checkpoints are features we plan to work on in the future, feel free to le
- [x] Stream response to the websocket to show words as they are generated
- [ ] Add button to let the user stop the chatbot generation
- [ ] Add authentication mechanisms? (OAuth/OpenID Connect) https://github.com/vemonet/libre-chat/issues/5
- [ ] Add conversational history? https://milvus.io/blog/conversational-memory-in-langchain.md
- [ ] Add an admin dashboard web UI to enable users to upload/inspect/delete documents for QA, see/edit the config of the chatbot.
- [ ] Kubernetes deployment (Helm chart?)

Expand Down
3 changes: 3 additions & 0 deletions scripts/langchain.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
"metadata": {},
"outputs": [],
"source": [
"import sys\n",
"!{sys.executable} -m pip install langchain langchain-community llama-cpp-python\n",
"\n",
"from langchain.prompts import ChatPromptTemplate\n",
"from langchain_community.llms import LlamaCpp\n",
"from langchain_core.output_parsers import StrOutputParser"
Expand Down

0 comments on commit 2675729

Please sign in to comment.