From 2675729427cacc6859131fe90dc1f514783b388f Mon Sep 17 00:00:00 2001 From: Vincent Emonet Date: Wed, 17 Jan 2024 02:52:49 +0100 Subject: [PATCH] improve example notebook langchain --- README.md | 1 + scripts/langchain.ipynb | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index cba4624..5df980d 100644 --- a/README.md +++ b/README.md @@ -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?) diff --git a/scripts/langchain.ipynb b/scripts/langchain.ipynb index bf28e9c..8792c47 100644 --- a/scripts/langchain.ipynb +++ b/scripts/langchain.ipynb @@ -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"