From 54a8d70eb5f840931fda69d62559ff8137794835 Mon Sep 17 00:00:00 2001 From: Bagatur <22008038+baskaryan@users.noreply.github.com> Date: Thu, 19 Oct 2023 15:06:26 -0700 Subject: [PATCH] Bagatur/mv singlestore doc (#12053) --- .../elasticsearch_chat_message_history.ipynb | 0 .../singlestoredb_chat_message_history.ipynb | 65 ------------------- 2 files changed, 65 deletions(-) rename docs/docs/integrations/memory/{memory => }/elasticsearch_chat_message_history.ipynb (100%) delete mode 100644 docs/extras/integrations/memory/singlestoredb_chat_message_history.ipynb diff --git a/docs/docs/integrations/memory/memory/elasticsearch_chat_message_history.ipynb b/docs/docs/integrations/memory/elasticsearch_chat_message_history.ipynb similarity index 100% rename from docs/docs/integrations/memory/memory/elasticsearch_chat_message_history.ipynb rename to docs/docs/integrations/memory/elasticsearch_chat_message_history.ipynb diff --git a/docs/extras/integrations/memory/singlestoredb_chat_message_history.ipynb b/docs/extras/integrations/memory/singlestoredb_chat_message_history.ipynb deleted file mode 100644 index 9b5912e79c..0000000000 --- a/docs/extras/integrations/memory/singlestoredb_chat_message_history.ipynb +++ /dev/null @@ -1,65 +0,0 @@ -{ - "cells": [ - { - "attachments": {}, - "cell_type": "markdown", - "id": "91c6a7ef", - "metadata": {}, - "source": [ - "# SingleStoreDB Chat Message History\n", - "\n", - "This notebook goes over how to use SingleStoreDB to store chat message history." - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "d15e3302", - "metadata": {}, - "outputs": [], - "source": [ - "from langchain.memory import SingleStoreDBChatMessageHistory\n", - "\n", - "history = SingleStoreDBChatMessageHistory(\n", - " session_id=\"foo\",\n", - " host=\"root:pass@localhost:3306/db\"\n", - ")\n", - "\n", - "history.add_user_message(\"hi!\")\n", - "\n", - "history.add_ai_message(\"whats up?\")" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "64fc465e", - "metadata": {}, - "outputs": [], - "source": [ - "history.messages" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3 (ipykernel)", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.11.2" - } - }, - "nbformat": 4, - "nbformat_minor": 5 -}