diff --git a/404.html b/404.html index 8c5bac4ca9..6eb819fabd 100644 --- a/404.html +++ b/404.html @@ -10,7 +10,7 @@ - + diff --git a/Components/components-memories.html b/Components/components-memories.html index 1765938a43..1a7f2da9c8 100644 --- a/Components/components-memories.html +++ b/Components/components-memories.html @@ -10,7 +10,7 @@ - + diff --git a/Components/components-tools.html b/Components/components-tools.html index 683440196a..98858c9921 100644 --- a/Components/components-tools.html +++ b/Components/components-tools.html @@ -10,7 +10,7 @@ - + diff --git a/Configuration/configuration-custom-database.html b/Configuration/configuration-custom-database.html index 179d97348c..9377acf4f2 100644 --- a/Configuration/configuration-custom-database.html +++ b/Configuration/configuration-custom-database.html @@ -10,7 +10,7 @@ - + diff --git a/agents-overview.html b/agents-overview.html index 242b0205f9..2d17ee36f1 100644 --- a/agents-overview.html +++ b/agents-overview.html @@ -10,7 +10,7 @@ - + diff --git a/agents-tool-calling-agent-component.html b/agents-tool-calling-agent-component.html index 5256c8575f..11310d4629 100644 --- a/agents-tool-calling-agent-component.html +++ b/agents-tool-calling-agent-component.html @@ -10,7 +10,7 @@ - + diff --git a/api.html b/api.html index 4bb6628c03..6cc81f2201 100644 --- a/api.html +++ b/api.html @@ -10,7 +10,7 @@ - + diff --git a/api/add-user.html b/api/add-user.html index 24a6e12a3a..20bd77575d 100644 --- a/api/add-user.html +++ b/api/add-user.html @@ -10,7 +10,7 @@ - + diff --git a/api/auto-login.html b/api/auto-login.html index f866923ee1..1d07539791 100644 --- a/api/auto-login.html +++ b/api/auto-login.html @@ -10,7 +10,7 @@ - + diff --git a/api/build-flow.html b/api/build-flow.html index 38a3dcdb15..31ce31bbfe 100644 --- a/api/build-flow.html +++ b/api/build-flow.html @@ -10,7 +10,7 @@ - + diff --git a/api/build-vertex-stream.html b/api/build-vertex-stream.html index 847e61a655..d86a4c5370 100644 --- a/api/build-vertex-stream.html +++ b/api/build-vertex-stream.html @@ -10,7 +10,7 @@ - + diff --git a/api/build-vertex.html b/api/build-vertex.html index ea389a5013..6ada64b357 100644 --- a/api/build-vertex.html +++ b/api/build-vertex.html @@ -10,7 +10,7 @@ - + diff --git a/api/check-if-store-has-api-key.html b/api/check-if-store-has-api-key.html index b373f3accf..6f14d51177 100644 --- a/api/check-if-store-has-api-key.html +++ b/api/check-if-store-has-api-key.html @@ -10,7 +10,7 @@ - + diff --git a/api/check-if-store-is-enabled.html b/api/check-if-store-is-enabled.html index 9a12258a61..5bd2ff9ecf 100644 --- a/api/check-if-store-is-enabled.html +++ b/api/check-if-store-is-enabled.html @@ -10,7 +10,7 @@ - + diff --git a/api/create-api-key-route.html b/api/create-api-key-route.html index a637a1c76e..6093b73c3e 100644 --- a/api/create-api-key-route.html +++ b/api/create-api-key-route.html @@ -10,7 +10,7 @@ - + diff --git a/api/create-flow.html b/api/create-flow.html index b2dc095c3c..86328b5729 100644 --- a/api/create-flow.html +++ b/api/create-flow.html @@ -10,7 +10,7 @@ - + diff --git a/api/create-flows.html b/api/create-flows.html index efde4d7529..192e59d86e 100644 --- a/api/create-flows.html +++ b/api/create-flows.html @@ -10,7 +10,7 @@ - + diff --git a/api/create-folder.html b/api/create-folder.html index 57889922b4..fb585efaf8 100644 --- a/api/create-folder.html +++ b/api/create-folder.html @@ -10,7 +10,7 @@ - + diff --git a/api/create-upload-file.html b/api/create-upload-file.html index 1512b2636e..b16ac64c2c 100644 --- a/api/create-upload-file.html +++ b/api/create-upload-file.html @@ -10,7 +10,7 @@ - + diff --git a/api/create-variable.html b/api/create-variable.html index 7cd0a8346d..1bef394b05 100644 --- a/api/create-variable.html +++ b/api/create-variable.html @@ -10,7 +10,7 @@ - + diff --git a/api/custom-component-update.html b/api/custom-component-update.html index e69b8f36d1..b8b5e12c02 100644 --- a/api/custom-component-update.html +++ b/api/custom-component-update.html @@ -10,7 +10,7 @@ - + diff --git a/api/custom-component.html b/api/custom-component.html index 4d5f8fd94a..e1702fe937 100644 --- a/api/custom-component.html +++ b/api/custom-component.html @@ -10,7 +10,7 @@ - + diff --git a/api/delete-api-key-route.html b/api/delete-api-key-route.html index a0cf457f63..754bef9e21 100644 --- a/api/delete-api-key-route.html +++ b/api/delete-api-key-route.html @@ -10,7 +10,7 @@ - + diff --git a/api/delete-file.html b/api/delete-file.html index f37d6a6c84..73195d9ded 100644 --- a/api/delete-file.html +++ b/api/delete-file.html @@ -10,7 +10,7 @@ - + diff --git a/api/delete-flow.html b/api/delete-flow.html index 58079fa420..dbf7d6166a 100644 --- a/api/delete-flow.html +++ b/api/delete-flow.html @@ -10,7 +10,7 @@ - + diff --git a/api/delete-folder.html b/api/delete-folder.html index 32e43e3e3c..8c8a48ad15 100644 --- a/api/delete-folder.html +++ b/api/delete-folder.html @@ -10,7 +10,7 @@ - + diff --git a/api/delete-messages-session.html b/api/delete-messages-session.html index 2307d94b86..d5bdc2a088 100644 --- a/api/delete-messages-session.html +++ b/api/delete-messages-session.html @@ -10,7 +10,7 @@ - + diff --git a/api/delete-messages.html b/api/delete-messages.html index 25ed653cb7..9c3e4628b4 100644 --- a/api/delete-messages.html +++ b/api/delete-messages.html @@ -10,7 +10,7 @@ - + diff --git a/api/delete-multiple-flows.html b/api/delete-multiple-flows.html index 07c114fbb1..dbe71962d0 100644 --- a/api/delete-multiple-flows.html +++ b/api/delete-multiple-flows.html @@ -10,7 +10,7 @@ - + diff --git a/api/delete-user.html b/api/delete-user.html index 8a776c1d6b..bc7052b2be 100644 --- a/api/delete-user.html +++ b/api/delete-user.html @@ -10,7 +10,7 @@ - + diff --git a/api/delete-variable.html b/api/delete-variable.html index 0c38c7dc24..316fd1d995 100644 --- a/api/delete-variable.html +++ b/api/delete-variable.html @@ -10,7 +10,7 @@ - + diff --git a/api/delete-vertex-builds.html b/api/delete-vertex-builds.html index 2798a78e91..23668bbb19 100644 --- a/api/delete-vertex-builds.html +++ b/api/delete-vertex-builds.html @@ -10,7 +10,7 @@ - + diff --git a/api/download-component.html b/api/download-component.html index d7e38ff7b4..77bc01403e 100644 --- a/api/download-component.html +++ b/api/download-component.html @@ -10,7 +10,7 @@ - + diff --git a/api/download-file-1.html b/api/download-file-1.html index f425c1992f..15b1dbe666 100644 --- a/api/download-file-1.html +++ b/api/download-file-1.html @@ -10,7 +10,7 @@ - + diff --git a/api/download-file.html b/api/download-file.html index e5294f372e..91215a6937 100644 --- a/api/download-file.html +++ b/api/download-file.html @@ -10,7 +10,7 @@ - + diff --git a/api/download-image.html b/api/download-image.html index 7fa55fff49..4444ccab95 100644 --- a/api/download-image.html +++ b/api/download-image.html @@ -10,7 +10,7 @@ - + diff --git a/api/download-multiple-file.html b/api/download-multiple-file.html index 173877bb45..7f3b8630c8 100644 --- a/api/download-multiple-file.html +++ b/api/download-multiple-file.html @@ -10,7 +10,7 @@ - + diff --git a/api/download-profile-picture.html b/api/download-profile-picture.html index 7691d355ed..eb58e26a91 100644 --- a/api/download-profile-picture.html +++ b/api/download-profile-picture.html @@ -10,7 +10,7 @@ - + diff --git a/api/experimental-run-flow.html b/api/experimental-run-flow.html index 8f96dfcf32..2a0b8770ce 100644 --- a/api/experimental-run-flow.html +++ b/api/experimental-run-flow.html @@ -10,7 +10,7 @@ - + diff --git a/api/get-all.html b/api/get-all.html index b5e2fff4ae..d742b8a7d6 100644 --- a/api/get-all.html +++ b/api/get-all.html @@ -10,7 +10,7 @@ - + diff --git a/api/get-api-keys-route.html b/api/get-api-keys-route.html index 898b70b28e..0e5bd420ce 100644 --- a/api/get-api-keys-route.html +++ b/api/get-api-keys-route.html @@ -10,7 +10,7 @@ - + diff --git a/api/get-components.html b/api/get-components.html index dd99b98116..d6b4443d7c 100644 --- a/api/get-components.html +++ b/api/get-components.html @@ -10,7 +10,7 @@ - + diff --git a/api/get-config.html b/api/get-config.html index d25f81c9f7..9b3156ec78 100644 --- a/api/get-config.html +++ b/api/get-config.html @@ -10,7 +10,7 @@ - + diff --git a/api/get-list-of-components-liked-by-user.html b/api/get-list-of-components-liked-by-user.html index a2d8f90b3a..4736316012 100644 --- a/api/get-list-of-components-liked-by-user.html +++ b/api/get-list-of-components-liked-by-user.html @@ -10,7 +10,7 @@ - + diff --git a/api/get-messages.html b/api/get-messages.html index 9caf376eb7..398e633439 100644 --- a/api/get-messages.html +++ b/api/get-messages.html @@ -10,7 +10,7 @@ - + diff --git a/api/get-starter-projects.html b/api/get-starter-projects.html index 2e47adab00..394a59caba 100644 --- a/api/get-starter-projects.html +++ b/api/get-starter-projects.html @@ -10,7 +10,7 @@ - + diff --git a/api/get-tags.html b/api/get-tags.html index 726944efe2..9c72fc7165 100644 --- a/api/get-tags.html +++ b/api/get-tags.html @@ -10,7 +10,7 @@ - + diff --git a/api/get-task-status.html b/api/get-task-status.html index 8691019209..3992cb6d16 100644 --- a/api/get-task-status.html +++ b/api/get-task-status.html @@ -10,7 +10,7 @@ - + diff --git a/api/get-transactions.html b/api/get-transactions.html index bcbfd5b8ef..a992ca4a93 100644 --- a/api/get-transactions.html +++ b/api/get-transactions.html @@ -10,7 +10,7 @@ - + diff --git a/api/get-version.html b/api/get-version.html index 2da99f9629..d38582f1f4 100644 --- a/api/get-version.html +++ b/api/get-version.html @@ -10,7 +10,7 @@ - + diff --git a/api/get-vertex-builds.html b/api/get-vertex-builds.html index 6eaad52aa5..2392d1bd51 100644 --- a/api/get-vertex-builds.html +++ b/api/get-vertex-builds.html @@ -10,7 +10,7 @@ - + diff --git a/api/health-check.html b/api/health-check.html index a74fe04b6a..c25ad7e128 100644 --- a/api/health-check.html +++ b/api/health-check.html @@ -10,7 +10,7 @@ - + diff --git a/api/health.html b/api/health.html index c46202db72..0395d401d9 100644 --- a/api/health.html +++ b/api/health.html @@ -10,7 +10,7 @@ - + diff --git a/api/like-component.html b/api/like-component.html index 3795575189..829bc1f8af 100644 --- a/api/like-component.html +++ b/api/like-component.html @@ -10,7 +10,7 @@ - + diff --git a/api/list-files.html b/api/list-files.html index afb61bebfb..26d2743ac4 100644 --- a/api/list-files.html +++ b/api/list-files.html @@ -10,7 +10,7 @@ - + diff --git a/api/list-profile-pictures.html b/api/list-profile-pictures.html index 1135f6d48f..3ae907dfe9 100644 --- a/api/list-profile-pictures.html +++ b/api/list-profile-pictures.html @@ -10,7 +10,7 @@ - + diff --git a/api/login-to-get-access-token.html b/api/login-to-get-access-token.html index e1e1081e85..fb3e89891d 100644 --- a/api/login-to-get-access-token.html +++ b/api/login-to-get-access-token.html @@ -10,7 +10,7 @@ - + diff --git a/api/logout.html b/api/logout.html index de01ec4bb4..4c6dea1f4e 100644 --- a/api/logout.html +++ b/api/logout.html @@ -10,7 +10,7 @@ - + diff --git a/api/logs.html b/api/logs.html index 0891054417..e54f5a0b1c 100644 --- a/api/logs.html +++ b/api/logs.html @@ -10,7 +10,7 @@ - + diff --git a/api/patch-user.html b/api/patch-user.html index 329e1dba56..6a32fc21ef 100644 --- a/api/patch-user.html +++ b/api/patch-user.html @@ -10,7 +10,7 @@ - + diff --git a/api/post-validate-code.html b/api/post-validate-code.html index 32cff2885e..16a07c929a 100644 --- a/api/post-validate-code.html +++ b/api/post-validate-code.html @@ -10,7 +10,7 @@ - + diff --git a/api/post-validate-prompt.html b/api/post-validate-prompt.html index ed9c05952c..91dc8dbd79 100644 --- a/api/post-validate-prompt.html +++ b/api/post-validate-prompt.html @@ -10,7 +10,7 @@ - + diff --git a/api/process-1.html b/api/process-1.html index 49b11ad66c..2cd26aacd0 100644 --- a/api/process-1.html +++ b/api/process-1.html @@ -10,7 +10,7 @@ - + diff --git a/api/process.html b/api/process.html index 0e395202d8..b76ba12e0b 100644 --- a/api/process.html +++ b/api/process.html @@ -10,7 +10,7 @@ - + diff --git a/api/read-all-users.html b/api/read-all-users.html index 328194db31..29f1ab18dd 100644 --- a/api/read-all-users.html +++ b/api/read-all-users.html @@ -10,7 +10,7 @@ - + diff --git a/api/read-basic-examples.html b/api/read-basic-examples.html index 8c10f258b8..a1beeb6e39 100644 --- a/api/read-basic-examples.html +++ b/api/read-basic-examples.html @@ -10,7 +10,7 @@ - + diff --git a/api/read-current-user.html b/api/read-current-user.html index 13dc081a05..bab9a6932e 100644 --- a/api/read-current-user.html +++ b/api/read-current-user.html @@ -10,7 +10,7 @@ - + diff --git a/api/read-flow.html b/api/read-flow.html index 7430752a59..98be0861d4 100644 --- a/api/read-flow.html +++ b/api/read-flow.html @@ -10,7 +10,7 @@ - + diff --git a/api/read-flows.html b/api/read-flows.html index 73e08ffdc4..5adbf33109 100644 --- a/api/read-flows.html +++ b/api/read-flows.html @@ -10,7 +10,7 @@ - + diff --git a/api/read-folder.html b/api/read-folder.html index 2e69e4bde0..8421e9319a 100644 --- a/api/read-folder.html +++ b/api/read-folder.html @@ -10,7 +10,7 @@ - + diff --git a/api/read-folders.html b/api/read-folders.html index ac90518107..f7aba20db7 100644 --- a/api/read-folders.html +++ b/api/read-folders.html @@ -10,7 +10,7 @@ - + diff --git a/api/read-variables.html b/api/read-variables.html index 556361bd36..1f90d7e005 100644 --- a/api/read-variables.html +++ b/api/read-variables.html @@ -10,7 +10,7 @@ - + diff --git a/api/refresh-token.html b/api/refresh-token.html index 1ed2fc78fc..95a585e648 100644 --- a/api/refresh-token.html +++ b/api/refresh-token.html @@ -10,7 +10,7 @@ - + diff --git a/api/reset-password.html b/api/reset-password.html index f7dc5021a4..ae04792747 100644 --- a/api/reset-password.html +++ b/api/reset-password.html @@ -10,7 +10,7 @@ - + diff --git a/api/retrieve-vertices-order.html b/api/retrieve-vertices-order.html index 4e7c435333..6317338efe 100644 --- a/api/retrieve-vertices-order.html +++ b/api/retrieve-vertices-order.html @@ -10,7 +10,7 @@ - + diff --git a/api/save-store-api-key.html b/api/save-store-api-key.html index d2d223c5c3..15e4261200 100644 --- a/api/save-store-api-key.html +++ b/api/save-store-api-key.html @@ -10,7 +10,7 @@ - + diff --git a/api/share-component.html b/api/share-component.html index 6e6d3b0ec5..35e15da9fe 100644 --- a/api/share-component.html +++ b/api/share-component.html @@ -10,7 +10,7 @@ - + diff --git a/api/simplified-run-flow.html b/api/simplified-run-flow.html index e5ee192d11..73913086fe 100644 --- a/api/simplified-run-flow.html +++ b/api/simplified-run-flow.html @@ -10,7 +10,7 @@ - + diff --git a/api/stream-logs.html b/api/stream-logs.html index a0d78f964b..fb35b6fc2a 100644 --- a/api/stream-logs.html +++ b/api/stream-logs.html @@ -10,7 +10,7 @@ - + diff --git a/api/update-flow.html b/api/update-flow.html index 13935c63f2..9a230e2ebb 100644 --- a/api/update-flow.html +++ b/api/update-flow.html @@ -10,7 +10,7 @@ - + diff --git a/api/update-folder.html b/api/update-folder.html index 785e458817..447072ea2f 100644 --- a/api/update-folder.html +++ b/api/update-folder.html @@ -10,7 +10,7 @@ - + diff --git a/api/update-message.html b/api/update-message.html index 11bf6bd2b6..a9a75e1a8c 100644 --- a/api/update-message.html +++ b/api/update-message.html @@ -10,7 +10,7 @@ - + diff --git a/api/update-session-id.html b/api/update-session-id.html index 349171a633..fd52c4ed8b 100644 --- a/api/update-session-id.html +++ b/api/update-session-id.html @@ -10,7 +10,7 @@ - + diff --git a/api/update-shared-component.html b/api/update-shared-component.html index 7c789cfca0..c1e1eab5e9 100644 --- a/api/update-shared-component.html +++ b/api/update-shared-component.html @@ -10,7 +10,7 @@ - + diff --git a/api/update-variable.html b/api/update-variable.html index 5724aa22f6..14610a4aff 100644 --- a/api/update-variable.html +++ b/api/update-variable.html @@ -10,7 +10,7 @@ - + diff --git a/api/upload-file-1.html b/api/upload-file-1.html index 6227bc341c..9156782fcc 100644 --- a/api/upload-file-1.html +++ b/api/upload-file-1.html @@ -10,7 +10,7 @@ - + diff --git a/api/upload-file-2.html b/api/upload-file-2.html index 1278ecfefe..892ed3acaa 100644 --- a/api/upload-file-2.html +++ b/api/upload-file-2.html @@ -10,7 +10,7 @@ - + diff --git a/api/upload-file.html b/api/upload-file.html index 6acea50f63..930d475cce 100644 --- a/api/upload-file.html +++ b/api/upload-file.html @@ -10,7 +10,7 @@ - + diff --git a/api/webhook-run-flow.html b/api/webhook-run-flow.html index d90855219c..efe14bdd22 100644 --- a/api/webhook-run-flow.html +++ b/api/webhook-run-flow.html @@ -10,7 +10,7 @@ - + diff --git a/assets/images/astra_db_chat_memory_rounded-9746ca2bb69d3b07ac0a071f4b9471b3.png b/assets/images/astra_db_chat_memory_rounded-9746ca2bb69d3b07ac0a071f4b9471b3.png new file mode 100644 index 0000000000..630e74bc0a Binary files /dev/null and b/assets/images/astra_db_chat_memory_rounded-9746ca2bb69d3b07ac0a071f4b9471b3.png differ diff --git a/assets/js/16d61ab3.69fae80f.js b/assets/js/16d61ab3.69fae80f.js new file mode 100644 index 0000000000..3a4323da19 --- /dev/null +++ b/assets/js/16d61ab3.69fae80f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunklangflow_docs=self.webpackChunklangflow_docs||[]).push([[1039],{98724:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>d,frontMatter:()=>r,metadata:()=>a,toc:()=>h});var s=n(74848),o=n(28453);const r={title:"Memory Chatbot",sidebar_position:3,slug:"/starter-projects-memory-chatbot"},i=void 0,a={id:"Starter-Projects/starter-projects-memory-chatbot",title:"Memory Chatbot",description:"This flow extends the\xa0basic prompting\xa0flow to include a chat memory. This makes the AI remember previous user inputs.",source:"@site/docs/Starter-Projects/starter-projects-memory-chatbot.md",sourceDirName:"Starter-Projects",slug:"/starter-projects-memory-chatbot",permalink:"/starter-projects-memory-chatbot",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:3,frontMatter:{title:"Memory Chatbot",sidebar_position:3,slug:"/starter-projects-memory-chatbot"},sidebar:"docs",previous:{title:"Document QA",permalink:"/starter-projects-document-qa"},next:{title:"Simple agent",permalink:"/starter-projects-simple-agent"}},c={},h=[{value:"Prerequisites",id:"a71d73e99b1543bbba827207503cf31f",level:2},{value:"Create the memory chatbot flow",id:"create-the-memory-chatbot-flow",level:2},{value:"Run the memory chatbot flow",id:"run-the-memory-chatbot-flow",level:2},{value:"Use Session ID with the memory chatbot flow",id:"4e68c3c0750942f98c45c1c45d7ffbbe",level:2}];function l(e){const t={a:"a",admonition:"admonition",code:"code",h2:"h2",hr:"hr",img:"img",li:"li",ol:"ol",p:"p",strong:"strong",ul:"ul",...(0,o.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(t.p,{children:["This flow extends the\xa0",(0,s.jsx)(t.a,{href:"/starter-projects-basic-prompting",children:"basic prompting"}),"\xa0flow to include a chat memory. This makes the AI remember previous user inputs."]}),"\n",(0,s.jsx)(t.h2,{id:"a71d73e99b1543bbba827207503cf31f",children:"Prerequisites"}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:(0,s.jsx)(t.a,{href:"/get-started-installation",children:"Langflow installed and running"})}),"\n",(0,s.jsx)(t.li,{children:(0,s.jsx)(t.a,{href:"https://platform.openai.com/",children:"OpenAI API key created"})}),"\n"]}),"\n",(0,s.jsx)(t.h2,{id:"create-the-memory-chatbot-flow",children:"Create the memory chatbot flow"}),"\n",(0,s.jsxs)(t.ol,{children:["\n",(0,s.jsxs)(t.li,{children:["From the Langflow dashboard, click\xa0",(0,s.jsx)(t.strong,{children:"New Flow"}),"."]}),"\n",(0,s.jsxs)(t.li,{children:["Select\xa0",(0,s.jsx)(t.strong,{children:"Memory Chatbot"}),"."]}),"\n",(0,s.jsxs)(t.li,{children:["The\xa0",(0,s.jsx)(t.strong,{children:"Memory Chatbot"}),"\xa0flow is created."]}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.img,{src:n(97829).A+"",width:"2978",height:"1056"})}),"\n",(0,s.jsxs)(t.p,{children:["This flow uses the same components as the Basic Prompting one, but extends it with a\xa0",(0,s.jsx)(t.strong,{children:"Chat Memory"}),"\xa0component. This component retrieves previous messages and sends them to the\xa0",(0,s.jsx)(t.strong,{children:"Prompt"}),"\xa0component to fill a part of the\xa0",(0,s.jsx)(t.strong,{children:"Template"}),"\xa0with context."]}),"\n",(0,s.jsx)(t.p,{children:"By clicking the template, you'll see the prompt editor like below:"}),"\n",(0,s.jsxs)(t.p,{children:["This gives the\xa0",(0,s.jsx)(t.strong,{children:"OpenAI"}),"\xa0component a memory of previous chat messages."]}),"\n",(0,s.jsx)(t.h2,{id:"run-the-memory-chatbot-flow",children:"Run the memory chatbot flow"}),"\n",(0,s.jsxs)(t.ol,{children:["\n",(0,s.jsx)(t.li,{children:"Open the Playground."}),"\n",(0,s.jsxs)(t.li,{children:["Type multiple questions. In the\xa0",(0,s.jsx)(t.strong,{children:"Memories"}),"\xa0tab, your queries are logged in order. Up to 100 queries are stored by default. Try telling the AI your name and asking\xa0",(0,s.jsx)(t.code,{children:"What is my name?"})," on a second message, or\xa0",(0,s.jsx)(t.code,{children:"What is the first subject I asked you about?"}),"\xa0to validate that previous knowledge is taking effect."]}),"\n"]}),"\n",(0,s.jsx)(t.admonition,{type:"tip",children:(0,s.jsxs)(t.p,{children:["Check and adjust advanced parameters by opening the Advanced Settings of the\xa0",(0,s.jsx)(t.strong,{children:"Chat Memory"}),"\xa0component."]})}),"\n",(0,s.jsx)(t.h2,{id:"4e68c3c0750942f98c45c1c45d7ffbbe",children:"Use Session ID with the memory chatbot flow"}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"SessionID"}),"\xa0is a unique identifier in Langflow that stores conversation sessions between the AI and a user. A\xa0",(0,s.jsx)(t.code,{children:"SessionID"}),"\xa0is created when a conversation is initiated, and then associated with all subsequent messages during that session."]}),"\n",(0,s.jsxs)(t.p,{children:["In the\xa0",(0,s.jsx)(t.strong,{children:"Memory Chatbot"}),"\xa0flow you created, the\xa0",(0,s.jsx)(t.strong,{children:"Chat Memory"}),"\xa0component references past interactions by\xa0",(0,s.jsx)(t.strong,{children:"Session ID"}),". You can demonstrate this by modifying the\xa0",(0,s.jsx)(t.strong,{children:"Session ID"}),"\xa0value to switch between conversation histories."]}),"\n",(0,s.jsxs)(t.ol,{children:["\n",(0,s.jsxs)(t.li,{children:["In the\xa0",(0,s.jsx)(t.strong,{children:"Session ID"}),"\xa0field of the\xa0",(0,s.jsx)(t.strong,{children:"Chat Memory"}),"\xa0and\xa0",(0,s.jsx)(t.strong,{children:"Chat Input"}),"\xa0components, add a\xa0",(0,s.jsx)(t.strong,{children:"Session ID"}),"\xa0value like\xa0",(0,s.jsx)(t.code,{children:"MySessionID"}),"."]}),"\n",(0,s.jsxs)(t.li,{children:["Now, once you send a new message the\xa0",(0,s.jsx)(t.strong,{children:"Playground"}),", you should have a new memory created on the\xa0",(0,s.jsx)(t.strong,{children:"Memories"}),"\xa0tab."]}),"\n",(0,s.jsx)(t.li,{children:"Notice how your conversation is being stored in different memory sessions."}),"\n"]}),"\n",(0,s.jsx)(t.admonition,{type:"tip",children:(0,s.jsxs)(t.p,{children:["Every\xa0chat\xa0component in Langflow comes with a\xa0",(0,s.jsx)(t.code,{children:"SessionID"}),". It defaults to the flow ID. Explore how changing it affects what the AI remembers."]})}),"\n",(0,s.jsxs)(t.p,{children:["Learn more about memories in the ",(0,s.jsx)(t.a,{href:"/guides-chat-memory",children:"Chat Memory"})," section."]})]})}function d(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},97829:(e,t,n)=>{n.d(t,{A:()=>s});const s=n.p+"assets/images/starter-flow-memory-chatbot-e2582e60e66da0086d957faa300f569e.png"},28453:(e,t,n)=>{n.d(t,{R:()=>i,x:()=>a});var s=n(96540);const o={},r=s.createContext(o);function i(e){const t=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:i(e.components),s.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/16d61ab3.6e5a6695.js b/assets/js/16d61ab3.6e5a6695.js deleted file mode 100644 index d0d1bc2247..0000000000 --- a/assets/js/16d61ab3.6e5a6695.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunklangflow_docs=self.webpackChunklangflow_docs||[]).push([[1039],{98724:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>d,frontMatter:()=>r,metadata:()=>a,toc:()=>h});var s=n(74848),o=n(28453);const r={title:"Memory Chatbot",sidebar_position:3,slug:"/starter-projects-memory-chatbot"},i=void 0,a={id:"Starter-Projects/starter-projects-memory-chatbot",title:"Memory Chatbot",description:"This flow extends the\xa0basic prompting\xa0flow to include a chat memory. This makes the AI remember previous user inputs.",source:"@site/docs/Starter-Projects/starter-projects-memory-chatbot.md",sourceDirName:"Starter-Projects",slug:"/starter-projects-memory-chatbot",permalink:"/starter-projects-memory-chatbot",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:3,frontMatter:{title:"Memory Chatbot",sidebar_position:3,slug:"/starter-projects-memory-chatbot"},sidebar:"docs",previous:{title:"Document QA",permalink:"/starter-projects-document-qa"},next:{title:"Simple agent",permalink:"/starter-projects-simple-agent"}},c={},h=[{value:"Prerequisites",id:"a71d73e99b1543bbba827207503cf31f",level:2},{value:"Create the memory chatbot flow",id:"create-the-memory-chatbot-flow",level:2},{value:"Run the memory chatbot flow",id:"run-the-memory-chatbot-flow",level:2},{value:"Use Session ID in with the memory chatbot flow",id:"4e68c3c0750942f98c45c1c45d7ffbbe",level:2}];function l(e){const t={a:"a",admonition:"admonition",code:"code",h2:"h2",hr:"hr",img:"img",li:"li",ol:"ol",p:"p",strong:"strong",ul:"ul",...(0,o.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(t.p,{children:["This flow extends the\xa0",(0,s.jsx)(t.a,{href:"/starter-projects-basic-prompting",children:"basic prompting"}),"\xa0flow to include a chat memory. This makes the AI remember previous user inputs."]}),"\n",(0,s.jsx)(t.h2,{id:"a71d73e99b1543bbba827207503cf31f",children:"Prerequisites"}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:(0,s.jsx)(t.a,{href:"/get-started-installation",children:"Langflow installed and running"})}),"\n",(0,s.jsx)(t.li,{children:(0,s.jsx)(t.a,{href:"https://platform.openai.com/",children:"OpenAI API key created"})}),"\n"]}),"\n",(0,s.jsx)(t.h2,{id:"create-the-memory-chatbot-flow",children:"Create the memory chatbot flow"}),"\n",(0,s.jsxs)(t.ol,{children:["\n",(0,s.jsxs)(t.li,{children:["From the Langflow dashboard, click\xa0",(0,s.jsx)(t.strong,{children:"New Flow"}),"."]}),"\n",(0,s.jsxs)(t.li,{children:["Select\xa0",(0,s.jsx)(t.strong,{children:"Memory Chatbot"}),"."]}),"\n",(0,s.jsxs)(t.li,{children:["The\xa0",(0,s.jsx)(t.strong,{children:"Memory Chatbot"}),"\xa0flow is created."]}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.img,{src:n(97829).A+"",width:"2978",height:"1056"})}),"\n",(0,s.jsxs)(t.p,{children:["This flow uses the same components as the Basic Prompting one, but extends it with a\xa0",(0,s.jsx)(t.strong,{children:"Chat Memory"}),"\xa0component. This component retrieves previous messages and sends them to the\xa0",(0,s.jsx)(t.strong,{children:"Prompt"}),"\xa0component to fill a part of the\xa0",(0,s.jsx)(t.strong,{children:"Template"}),"\xa0with context."]}),"\n",(0,s.jsx)(t.p,{children:"By clicking the template, you'll see the prompt editor like below:"}),"\n",(0,s.jsxs)(t.p,{children:["This gives the\xa0",(0,s.jsx)(t.strong,{children:"OpenAI"}),"\xa0component a memory of previous chat messages."]}),"\n",(0,s.jsx)(t.h2,{id:"run-the-memory-chatbot-flow",children:"Run the memory chatbot flow"}),"\n",(0,s.jsxs)(t.ol,{children:["\n",(0,s.jsx)(t.li,{children:"Open the Playground."}),"\n",(0,s.jsxs)(t.li,{children:["Type multiple questions. In the\xa0",(0,s.jsx)(t.strong,{children:"Memories"}),"\xa0tab, your queries are logged in order. Up to 100 queries are stored by default. Try telling the AI your name and asking\xa0",(0,s.jsx)(t.code,{children:"What is my name?"})," on a second message, or\xa0",(0,s.jsx)(t.code,{children:"What is the first subject I asked you about?"}),"\xa0to validate that previous knowledge is taking effect."]}),"\n"]}),"\n",(0,s.jsx)(t.admonition,{type:"tip",children:(0,s.jsxs)(t.p,{children:["Check and adjust advanced parameters by opening the Advanced Settings of the\xa0",(0,s.jsx)(t.strong,{children:"Chat Memory"}),"\xa0component."]})}),"\n",(0,s.jsx)(t.h2,{id:"4e68c3c0750942f98c45c1c45d7ffbbe",children:"Use Session ID in with the memory chatbot flow"}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"SessionID"}),"\xa0is a unique identifier in Langflow that stores conversation sessions between the AI and a user. A\xa0",(0,s.jsx)(t.code,{children:"SessionID"}),"\xa0is created when a conversation is initiated, and then associated with all subsequent messages during that session."]}),"\n",(0,s.jsxs)(t.p,{children:["In the\xa0",(0,s.jsx)(t.strong,{children:"Memory Chatbot"}),"\xa0flow you created, the\xa0",(0,s.jsx)(t.strong,{children:"Chat Memory"}),"\xa0component references past interactions by\xa0",(0,s.jsx)(t.strong,{children:"Session ID"}),". You can demonstrate this by modifying the\xa0",(0,s.jsx)(t.strong,{children:"Session ID"}),"\xa0value to switch between conversation histories."]}),"\n",(0,s.jsxs)(t.ol,{children:["\n",(0,s.jsxs)(t.li,{children:["In the\xa0",(0,s.jsx)(t.strong,{children:"Session ID"}),"\xa0field of the\xa0",(0,s.jsx)(t.strong,{children:"Chat Memory"}),"\xa0and\xa0",(0,s.jsx)(t.strong,{children:"Chat Input"}),"\xa0components, add a\xa0",(0,s.jsx)(t.strong,{children:"Session ID"}),"\xa0value like\xa0",(0,s.jsx)(t.code,{children:"MySessionID"}),"."]}),"\n",(0,s.jsxs)(t.li,{children:["Now, once you send a new message the\xa0",(0,s.jsx)(t.strong,{children:"Playground"}),", you should have a new memory created on the\xa0",(0,s.jsx)(t.strong,{children:"Memories"}),"\xa0tab."]}),"\n",(0,s.jsx)(t.li,{children:"Notice how your conversation is being stored in different memory sessions."}),"\n"]}),"\n",(0,s.jsx)(t.admonition,{type:"tip",children:(0,s.jsxs)(t.p,{children:["Every\xa0chat\xa0component in Langflow comes with a\xa0",(0,s.jsx)(t.code,{children:"SessionID"}),". It defaults to the flow ID. Explore how changing it affects what the AI remembers."]})}),"\n",(0,s.jsxs)(t.p,{children:["Learn more about memories in the ",(0,s.jsx)(t.a,{href:"/guides-chat-memory",children:"Chat Memory"})," section."]})]})}function d(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},97829:(e,t,n)=>{n.d(t,{A:()=>s});const s=n.p+"assets/images/starter-flow-memory-chatbot-e2582e60e66da0086d957faa300f569e.png"},28453:(e,t,n)=>{n.d(t,{R:()=>i,x:()=>a});var s=n(96540);const o={},r=s.createContext(o);function i(e){const t=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:i(e.components),s.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/c329cc2b.31372bf9.js b/assets/js/c329cc2b.31372bf9.js new file mode 100644 index 0000000000..ffbd259fa2 --- /dev/null +++ b/assets/js/c329cc2b.31372bf9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunklangflow_docs=self.webpackChunklangflow_docs||[]).push([[9304],{24905:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>a,default:()=>d,frontMatter:()=>r,metadata:()=>i,toc:()=>h});var n=t(74848),o=t(28453);const r={title:"Chat Memory",sidebar_position:1,slug:"/guides-chat-memory"},a=void 0,i={id:"Guides/guides-chat-memory",title:"Chat Memory",description:"Langflow allows every chat message to be stored, and a single flow can have multiple memory sessions. This enables you to create separate memories for agents to store and recall information as needed.",source:"@site/docs/Guides/guides-chat-memory.md",sourceDirName:"Guides",slug:"/guides-chat-memory",permalink:"/guides-chat-memory",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"Chat Memory",sidebar_position:1,slug:"/guides-chat-memory"},sidebar:"docs",previous:{title:"Vector Stores",permalink:"/components-vector-stores"},next:{title:"Data & Message",permalink:"/guides-data-message"}},c={},h=[{value:"Session ID",id:"4ee86e27d1004e8288a72c633c323703",level:2},{value:"Store chat memory in an external database",id:"store-chat-memory-in-an-external-database",level:2},{value:"Prerequisites",id:"prerequisites",level:3},{value:"Connect the chat memory component to an external database",id:"connect-the-chat-memory-component-to-an-external-database",level:3}];function l(e){const s={a:"a",code:"code",em:"em",h2:"h2",h3:"h3",hr:"hr",img:"img",li:"li",ol:"ol",p:"p",strong:"strong",ul:"ul",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.p,{children:["Langflow allows every chat message to be stored, and a single flow can have multiple memory sessions. This enables you to create separate ",(0,n.jsx)(s.em,{children:"memories"})," for agents to store and recall information as needed."]}),"\n",(0,n.jsxs)(s.p,{children:["In any project, as long as there are ",(0,n.jsx)(s.a,{href:"/components-io",children:(0,n.jsx)(s.strong,{children:"Chat"})})," being used, memories are always being stored by default. These are messages from a user to the AI or vice-versa."]}),"\n",(0,n.jsxs)(s.p,{children:["To see and access this history of messages, Langflow features a component called ",(0,n.jsx)(s.strong,{children:"Chat Memory"}),". It retrieves previous messages and outputs them in structured format or parsed."]}),"\n",(0,n.jsxs)(s.p,{children:["To learn the basics about memory in Langflow, check out the ",(0,n.jsx)(s.a,{href:"/starter-projects-memory-chatbot",children:"Memory Chatbot"})," starter example."]}),"\n",(0,n.jsxs)(s.p,{children:["Memories can be visualized and managed directly from the ",(0,n.jsx)(s.strong,{children:"Playground"}),". You can edit and remove previous messages to inspect and validate the AI\u2019s response behavior. You can remove or edit previous messages to get your models acting just right."]}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.img,{src:t(75918).A+"",width:"3244",height:"1776"})}),"\n",(0,n.jsx)(s.p,{children:"Modifying these memories will influence the behavior of the chatbot responses, as long as an agent uses them. Here you have the ability to remove or edit previous messages, allowing them to manipulate and explore how these changes affect model responses."}),"\n",(0,n.jsxs)(s.p,{children:["To modify chat memories, from the playground, click the ",(0,n.jsx)(s.strong,{children:"Options"})," menu of any session, and then select ",(0,n.jsx)(s.strong,{children:"Message Logs"}),"."]}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.img,{src:t(77232).A+"",width:"3278",height:"1884"})}),"\n",(0,n.jsx)(s.h2,{id:"4ee86e27d1004e8288a72c633c323703",children:"Session ID"}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsxs)(s.p,{children:["Chat conversations store messages categorized by a ",(0,n.jsx)(s.code,{children:"Session ID"}),". A a single flow can host multiple session IDs, and different flows can also share the same one."]}),"\n",(0,n.jsxs)(s.p,{children:["The ",(0,n.jsx)(s.strong,{children:"Chat Memory"})," component also retrieves message histories by ",(0,n.jsx)(s.code,{children:"Session ID"}),", which users can change in the component's ",(0,n.jsx)(s.strong,{children:"Controls"})," pane."]}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.img,{src:t(86190).A+"",width:"3246",height:"1772"})}),"\n",(0,n.jsxs)(s.p,{children:["By default, if the ",(0,n.jsx)(s.code,{children:"Session ID"})," value is empty, it is set to the same value as ",(0,n.jsx)(s.code,{children:"Flow ID"}),"."]}),"\n",(0,n.jsxs)(s.p,{children:["You can also display all messages stored across every flow and session by going to\xa0",(0,n.jsx)(s.strong,{children:"Settings"}),"\xa0>\xa0",(0,n.jsx)(s.strong,{children:"Messages"}),"."]}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.img,{src:t(25381).A+"",width:"2910",height:"1686"})}),"\n",(0,n.jsx)(s.h2,{id:"store-chat-memory-in-an-external-database",children:"Store chat memory in an external database"}),"\n",(0,n.jsxs)(s.p,{children:["Chat memory is retrieved from an external database or vector store using the ",(0,n.jsx)(s.a,{href:"/components-helpers#chat-memory",children:(0,n.jsx)(s.strong,{children:"Chat Memory"})})," component."]}),"\n",(0,n.jsxs)(s.p,{children:["Chat memory is stored to an external database or vector store using the ",(0,n.jsx)(s.a,{href:"/components-helpers#store-message",children:"Store Message"})," component."]}),"\n",(0,n.jsxs)(s.p,{children:["The ",(0,n.jsx)(s.a,{href:"/Components/components-memories",children:(0,n.jsx)(s.strong,{children:"Chat Memories"})})," components provide access to their respective external databases ",(0,n.jsx)(s.strong,{children:"as memory"}),". This allows AIs to access external memory for persistence and context retention. For example, connect the ",(0,n.jsx)(s.strong,{children:"Chat Memory"})," component to an ",(0,n.jsx)(s.strong,{children:"AstraDBChatMemory"}),"* component to store the message history in an external Astra DB database."]}),"\n",(0,n.jsxs)(s.p,{children:["This example stores and retrieves chat history from an ",(0,n.jsx)(s.a,{href:"/Components/components-memories#astradbchatmemory-component",children:"AstraDBChatMemory"})," component with ",(0,n.jsx)(s.strong,{children:"Store Message"})," and ",(0,n.jsx)(s.strong,{children:"Chat Memory"})," components."]}),"\n",(0,n.jsx)(s.h3,{id:"prerequisites",children:"Prerequisites"}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"https://platform.openai.com/",children:"An OpenAI API key"})}),"\n",(0,n.jsxs)(s.li,{children:[(0,n.jsx)(s.a,{href:"https://docs.datastax.com/en/astra-db-serverless/get-started/quickstart.html",children:"An Astra DB vector database"}),"\xa0with:","\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Application Token"}),"\n",(0,n.jsx)(s.li,{children:"API Endpoint"}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,n.jsx)(s.h3,{id:"connect-the-chat-memory-component-to-an-external-database",children:"Connect the chat memory component to an external database"}),"\n",(0,n.jsxs)(s.ol,{children:["\n",(0,n.jsxs)(s.li,{children:["Load the ",(0,n.jsx)(s.a,{href:"/starter-projects-memory-chatbot",children:"Memory Chatbot"})," starter project.\nThis starter project extends the basic prompting flow to include a chat memory component."]}),"\n",(0,n.jsxs)(s.li,{children:["Add the ",(0,n.jsx)(s.a,{href:"/components-helpers#store-message",children:"Store Message"})," component to the flow.\nThe ",(0,n.jsx)(s.strong,{children:"Store message"})," component stores messages in the external database."]}),"\n",(0,n.jsxs)(s.li,{children:["Add the ",(0,n.jsx)(s.a,{href:"/Components/components-memories#astradbchatmemory-component",children:"AstraDBChatMemory Component"})," to the flow.\nThe ",(0,n.jsx)(s.strong,{children:"Astra DB Chat Memory"})," component stores and retrieves messages from ",(0,n.jsx)(s.strong,{children:"Astra DB"}),"."]}),"\n",(0,n.jsxs)(s.li,{children:["Configure the ",(0,n.jsx)(s.strong,{children:"AstraDBChatMemory"})," component with your AstraDB instance details.","\n",(0,n.jsxs)(s.ol,{children:["\n",(0,n.jsxs)(s.li,{children:["In the ",(0,n.jsx)(s.strong,{children:"Astra DB Application Token"})," field, add your Astra token. (",(0,n.jsx)(s.code,{children:"AstraCS:..."}),")"]}),"\n",(0,n.jsxs)(s.li,{children:["In the ",(0,n.jsx)(s.strong,{children:"API Endpoint"})," field, add your Astra database's endpoint. (for example, ",(0,n.jsx)(s.code,{children:"https://12adb-bc-5378c845f05a6-e0a12-bd889b4-us-east-2.apps.astra.datastax.com"}),")"]}),"\n"]}),"\n"]}),"\n",(0,n.jsxs)(s.li,{children:["Connect the ",(0,n.jsx)(s.strong,{children:"AstraDBChatMemory"})," component output to the external memory inputs of the ",(0,n.jsx)(s.a,{href:"/components-helpers#chat-memory",children:"Chat Memory"})," and ",(0,n.jsx)(s.a,{href:"/components-helpers#store-message",children:"Store Message"})," components."]}),"\n",(0,n.jsxs)(s.li,{children:["Link the ",(0,n.jsx)(s.a,{href:"/components-io#chat-output",children:"Chat Output"})," component to the input of the ",(0,n.jsx)(s.a,{href:"/components-helpers#store-message",children:"Store Message"})," component."]}),"\n"]}),"\n",(0,n.jsx)(s.p,{children:"Your completed flow should look like this:"}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.img,{alt:"Sample Flow storing Chat Memory in AstraDB",src:t(72654).A+"",width:"3178",height:"1228"})}),"\n",(0,n.jsxs)(s.ol,{start:"7",children:["\n",(0,n.jsx)(s.li,{children:"In Langflow, create message traffic by running a flow."}),"\n",(0,n.jsx)(s.li,{children:"Inspect your Astra database's tables and activity.\nYou will see new tables and traffic created."}),"\n"]})]})}function d(e={}){const{wrapper:s}={...(0,o.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},72654:(e,s,t)=>{t.d(s,{A:()=>n});const n=t.p+"assets/images/astra_db_chat_memory_rounded-9746ca2bb69d3b07ac0a071f4b9471b3.png"},86190:(e,s,t)=>{t.d(s,{A:()=>n});const n=t.p+"assets/images/chat-input-controls-pane-b60b21c923aa47a2265ae1775e693cb0.png"},77232:(e,s,t)=>{t.d(s,{A:()=>n});const n=t.p+"assets/images/logs-7deb7c1a822f826469d17856b9dcebb5.png"},75918:(e,s,t)=>{t.d(s,{A:()=>n});const n=t.p+"assets/images/playground-b2c623fb6849024570bc9bd5285309f5.png"},25381:(e,s,t)=>{t.d(s,{A:()=>n});const n=t.p+"assets/images/settings-messages-d0ad3a8e3bea5f8896565c041946a919.png"},28453:(e,s,t)=>{t.d(s,{R:()=>a,x:()=>i});var n=t(96540);const o={},r=n.createContext(o);function a(e){const s=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function i(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),n.createElement(r.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/c329cc2b.46ee1117.js b/assets/js/c329cc2b.46ee1117.js deleted file mode 100644 index 74a258243f..0000000000 --- a/assets/js/c329cc2b.46ee1117.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunklangflow_docs=self.webpackChunklangflow_docs||[]).push([[9304],{24905:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>r,default:()=>h,frontMatter:()=>a,metadata:()=>i,toc:()=>d});var n=t(74848),o=t(28453);const a={title:"Chat Memory",sidebar_position:1,slug:"/guides-chat-memory"},r=void 0,i={id:"Guides/guides-chat-memory",title:"Chat Memory",description:"Langflow allows every chat message to be stored, and a single flow can have multiple memory sessions. This enables you to create separate memories for agents to store and recall information as needed.",source:"@site/docs/Guides/guides-chat-memory.md",sourceDirName:"Guides",slug:"/guides-chat-memory",permalink:"/guides-chat-memory",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"Chat Memory",sidebar_position:1,slug:"/guides-chat-memory"},sidebar:"docs",previous:{title:"Vector Stores",permalink:"/components-vector-stores"},next:{title:"Data & Message",permalink:"/guides-data-message"}},c={},d=[{value:"Session ID",id:"4ee86e27d1004e8288a72c633c323703",level:2}];function l(e){const s={a:"a",code:"code",em:"em",h2:"h2",hr:"hr",img:"img",p:"p",strong:"strong",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.p,{children:["Langflow allows every chat message to be stored, and a single flow can have multiple memory sessions. This enables you to create separate ",(0,n.jsx)(s.em,{children:"memories"})," for agents to store and recall information as needed."]}),"\n",(0,n.jsxs)(s.p,{children:["In any project, as long as there are ",(0,n.jsx)(s.a,{href:"/components-io",children:(0,n.jsx)(s.strong,{children:"Chat"})})," being used, memories are always being stored by default. These are messages from a user to the AI or vice-versa."]}),"\n",(0,n.jsxs)(s.p,{children:["To see and access this history of messages, Langflow features a component called ",(0,n.jsx)(s.strong,{children:"Chat Memory"}),". It retrieves previous messages and outputs them in structured format or parsed."]}),"\n",(0,n.jsxs)(s.p,{children:["To learn the basics about memory in Langflow, check out the ",(0,n.jsx)(s.a,{href:"/starter-projects-memory-chatbot",children:"Memory Chatbot"})," starter example."]}),"\n",(0,n.jsxs)(s.p,{children:["Memories can be visualized and managed directly from the ",(0,n.jsx)(s.strong,{children:"Playground"}),". You can edit and remove previous messages to inspect and validate the AI\u2019s response behavior. You can remove or edit previous messages to get your models acting just right."]}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.img,{src:t(75918).A+"",width:"3244",height:"1776"})}),"\n",(0,n.jsx)(s.p,{children:"Modifying these memories will influence the behavior of the chatbot responses, as long as an agent uses them. Here you have the ability to remove or edit previous messages, allowing them to manipulate and explore how these changes affect model responses."}),"\n",(0,n.jsxs)(s.p,{children:["To modify chat memories, from the playground, click the ",(0,n.jsx)(s.strong,{children:"Options"})," menu of any session, and then select ",(0,n.jsx)(s.strong,{children:"Message Logs"}),"."]}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.img,{src:t(77232).A+"",width:"3278",height:"1884"})}),"\n",(0,n.jsx)(s.h2,{id:"4ee86e27d1004e8288a72c633c323703",children:"Session ID"}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsxs)(s.p,{children:["Chat conversations store messages categorized by a ",(0,n.jsx)(s.code,{children:"Session ID"}),". A a single flow can host multiple session IDs, and different flows can also share the same one."]}),"\n",(0,n.jsxs)(s.p,{children:["The ",(0,n.jsx)(s.strong,{children:"Chat Memory"})," component also retrieves message histories by ",(0,n.jsx)(s.code,{children:"Session ID"}),", which users can change in the component's ",(0,n.jsx)(s.strong,{children:"Controls"})," pane."]}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.img,{src:t(86190).A+"",width:"3246",height:"1772"})}),"\n",(0,n.jsxs)(s.p,{children:["By default, if the ",(0,n.jsx)(s.code,{children:"Session ID"})," value is empty, it is set to the same value as ",(0,n.jsx)(s.code,{children:"Flow ID"}),"."]}),"\n",(0,n.jsxs)(s.p,{children:["You can also display all messages stored across every flow and session by going to\xa0",(0,n.jsx)(s.strong,{children:"Settings"}),"\xa0>\xa0",(0,n.jsx)(s.strong,{children:"Messages"}),"."]}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.img,{src:t(25381).A+"",width:"2910",height:"1686"})})]})}function h(e={}){const{wrapper:s}={...(0,o.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},86190:(e,s,t)=>{t.d(s,{A:()=>n});const n=t.p+"assets/images/chat-input-controls-pane-b60b21c923aa47a2265ae1775e693cb0.png"},77232:(e,s,t)=>{t.d(s,{A:()=>n});const n=t.p+"assets/images/logs-7deb7c1a822f826469d17856b9dcebb5.png"},75918:(e,s,t)=>{t.d(s,{A:()=>n});const n=t.p+"assets/images/playground-b2c623fb6849024570bc9bd5285309f5.png"},25381:(e,s,t)=>{t.d(s,{A:()=>n});const n=t.p+"assets/images/settings-messages-d0ad3a8e3bea5f8896565c041946a919.png"},28453:(e,s,t)=>{t.d(s,{R:()=>r,x:()=>i});var n=t(96540);const o={},a=n.createContext(o);function r(e){const s=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function i(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),n.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/runtime~main.54bedb52.js b/assets/js/runtime~main.f2445227.js similarity index 82% rename from assets/js/runtime~main.54bedb52.js rename to assets/js/runtime~main.f2445227.js index f1be4b042c..9577f0a8cb 100644 --- a/assets/js/runtime~main.54bedb52.js +++ b/assets/js/runtime~main.f2445227.js @@ -1 +1 @@ -(()=>{"use strict";var e,a,c,f,d,b={},t={};function r(e){var a=t[e];if(void 0!==a)return a.exports;var c=t[e]={id:e,loaded:!1,exports:{}};return b[e].call(c.exports,c,c.exports,r),c.loaded=!0,c.exports}r.m=b,r.c=t,e=[],r.O=(a,c,f,d)=>{if(!c){var b=1/0;for(i=0;i=d)&&Object.keys(r.O).every((e=>r.O[e](c[o])))?c.splice(o--,1):(t=!1,d0&&e[i-1][2]>d;i--)e[i]=e[i-1];e[i]=[c,f,d]},r.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a:a}),a},c=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(e,f){if(1&f&&(e=this(e)),8&f)return e;if("object"==typeof e&&e){if(4&f&&e.__esModule)return e;if(16&f&&"function"==typeof e.then)return e}var d=Object.create(null);r.r(d);var b={};a=a||[null,c({}),c([]),c(c)];for(var t=2&f&&e;"object"==typeof t&&!~a.indexOf(t);t=c(t))Object.getOwnPropertyNames(t).forEach((a=>b[a]=()=>e[a]));return b.default=()=>e,r.d(d,b),d},r.d=(e,a)=>{for(var c in a)r.o(a,c)&&!r.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((a,c)=>(r.f[c](e,a),a)),[])),r.u=e=>"assets/js/"+({51:"b7251463",145:"0be1d5fe",191:"c643a6d5",230:"bc63ae25",417:"93e16042",768:"6d684b63",784:"fe965b62",787:"672a0eba",800:"a4c0ff01",868:"dc7b1ef3",964:"05d835b4",1022:"8a61012d",1035:"24d32e91",1039:"16d61ab3",1185:"c2de64b8",1227:"647965d5",1246:"1b523369",1258:"7da17ff3",1394:"8054effa",1488:"ac3cc3f5",1500:"1e9025f7",1563:"3ef76b56",1567:"22dd74f7",1625:"92852ade",1690:"41a97a99",1845:"2ab0d4f5",1917:"c3616f7f",1956:"fe6f9601",2073:"7b7db446",2097:"338a6f8e",2273:"e756fa26",2431:"c0d3c6ab",2624:"8ff68e6f",2657:"a3ab51d1",2691:"2efb9d3a",2777:"b3ba68b4",2818:"a9b73094",3040:"2148ae42",3110:"6a2beaac",3247:"bd7ab245",3327:"6aa941bb",3347:"b5257597",3391:"f66238ae",3576:"64045095",3694:"c2b1730c",3758:"a963b3cb",3859:"7679ca6e",3917:"c8dad5f1",3964:"829ff4d2",4028:"c2ebd62a",4046:"9ac856ad",4133:"5cf11f26",4429:"32cedcea",4633:"c563aec0",4645:"fef056e9",4778:"e189eece",4784:"438e4337",4841:"8298c1cb",4891:"ca67d85f",4930:"d2ad385b",4931:"a9b4f8aa",4954:"a71efd4a",4973:"2d2c4fcb",5138:"309383dc",5179:"41e3c105",5281:"a0511a5b",5284:"64ca91f1",5339:"9447891f",5425:"ee32130c",5467:"40d13080",5474:"d175aa8b",5475:"18f3809a",5513:"20d49d07",5514:"02955c09",5562:"20e9af62",5572:"873ebc27",5628:"a83bc7c0",5634:"9822a706",5673:"73af8c33",5716:"946d1cee",5718:"5ccf4833",5742:"aba21aa0",5772:"4e7126f8",5865:"e1766139",5866:"3b577cbb",5883:"61cfab8e",5979:"a3a1efc2",6003:"4d983c8e",6008:"445668ec",6053:"dfc50084",6080:"4d15791b",6147:"ab17fe15",6281:"c96ce3ed",6332:"873508e7",6350:"188ee668",6419:"96eb0e67",6445:"9fb9a766",6473:"4c5e977b",6559:"6f13807a",6668:"18988c08",6682:"5a6d6120",6920:"c817e236",6949:"b36bb719",7098:"a7bd4aaa",7108:"688feaef",7118:"4ce9199e",7165:"547df4a1",7211:"cacdc615",7258:"11478de3",7338:"c39b795e",7408:"3ae94ad4",7453:"fdefa9a8",7462:"921b5fc1",7472:"744aaf8b",7507:"be76515e",7713:"3a82b27e",7892:"790349b7",7894:"0f44198a",8031:"25bf2d67",8054:"85112c90",8064:"274fd934",8085:"cc44357e",8102:"019dbd1f",8188:"ecd67556",8196:"75a9e1e0",8208:"216e3ed7",8261:"474d53cd",8304:"73d1a090",8356:"c6a5eaec",8401:"17896441",8504:"e6c6a4d2",8598:"44dfcf75",8661:"8f774222",8679:"3705a9c0",8921:"45476a69",8927:"ae68aa8b",8929:"172b3cfb",8953:"adef6868",9048:"a94703ab",9126:"ea3c040a",9141:"19136925",9304:"c329cc2b",9306:"667d0790",9371:"991799c5",9455:"54175a6c",9461:"23d0e682",9476:"57c9a2b8",9479:"4e038a6a",9483:"7823fa72",9555:"dedd5914",9580:"f81a91eb",9619:"29b8e27a",9642:"eae80ce0",9647:"5e95c892",9905:"43df3697"}[e]||e)+"."+{51:"3fa09726",145:"1d098b99",191:"5f273688",230:"04fbccf0",417:"099ab03e",768:"65469bf5",784:"b6a35b07",787:"7486d7e0",800:"9022588c",868:"dcdd6bc3",900:"f83a9a5d",964:"3893612e",1022:"11c801ab",1035:"1a6c2f56",1039:"6e5a6695",1185:"9748a9a7",1227:"6e74c5d8",1246:"4186baef",1258:"a4bce530",1394:"e591c566",1488:"517c076b",1500:"6ea32b36",1563:"90358b4f",1567:"6e974544",1625:"14cdddbe",1690:"e0babedf",1845:"05da85d7",1917:"8eb62a8e",1956:"ba4da060",2073:"b3f8d739",2097:"ab549652",2237:"254217db",2273:"9499374f",2431:"c2a4a552",2624:"44057286",2657:"0a14fc05",2691:"137f1b76",2777:"50ca02a1",2818:"807cd6bf",3040:"1a81b288",3110:"87f20d44",3247:"52c928ff",3327:"a94a2c25",3347:"a02e271f",3391:"a423a13f",3477:"5c645be2",3576:"da9c580a",3694:"af3527cf",3758:"8dca7900",3859:"51e75ae4",3917:"ddd21831",3964:"0cd22fac",4028:"c46fe749",4046:"d82ce2df",4133:"709a34ca",4429:"542379f2",4633:"6fa1329f",4645:"e8d61841",4778:"88b91dab",4784:"942b7b69",4841:"ce23a523",4848:"03d25b14",4891:"b33e29f2",4930:"edacc80e",4931:"2f05178f",4954:"e5b1d897",4973:"d35ec9c8",5138:"8e4ae7ac",5179:"64e4c1f0",5281:"e84e8032",5284:"03bad459",5339:"a7de1f63",5425:"212e3898",5467:"1e54ecae",5474:"d264c1d9",5475:"30699dc9",5513:"5dafbef0",5514:"3b4a4736",5562:"88e5e3a2",5572:"2c03f163",5628:"5d209b33",5634:"91c6ae65",5673:"3b49b5ef",5716:"39697a86",5718:"36eb37b6",5742:"60b1d5b2",5772:"1fcd9acf",5865:"7ce0748f",5866:"82b75810",5883:"42922af9",5979:"16e1357e",6003:"61570841",6008:"adfa0d2f",6053:"da80e031",6080:"cbe50574",6147:"d40743e8",6281:"33a3c771",6332:"f2a4f3d5",6350:"620eb4c9",6419:"219b4ba9",6445:"48996318",6473:"f971cbc2",6559:"d1058175",6668:"73c6cd59",6682:"44a73ed9",6920:"02274d7b",6949:"f88bd12b",7098:"7a425922",7108:"685fe17f",7118:"66e8a4e6",7165:"3ae4f8e5",7211:"9b6f5f2f",7258:"4eea06e3",7338:"3e8c79c0",7408:"c6de4fbc",7453:"9b7dd8c8",7462:"60236844",7472:"ce946c2a",7507:"cd4f7aad",7713:"cb6d0f3d",7892:"e97eef4c",7894:"5e157eb4",8031:"46f2eb17",8054:"a9dd4a34",8064:"c255462c",8085:"c3449534",8102:"d5229333",8188:"5e58698d",8196:"7af007ad",8208:"872c8aa4",8261:"6883b6d6",8304:"258c7b9e",8356:"63481bd6",8401:"72b10a31",8504:"47593649",8598:"47a85797",8661:"098d5c8a",8679:"b99c1633",8921:"a78561cd",8927:"3a5836ad",8929:"27d12542",8953:"3a9c6464",9048:"271808f7",9126:"108a0e55",9141:"89b0e034",9304:"46ee1117",9306:"203273db",9371:"4b41f654",9455:"7870fd22",9461:"9f9fa204",9476:"d1729427",9479:"f58748d6",9483:"c57cc5af",9495:"b0827074",9555:"5269bca3",9580:"e76bfa8b",9619:"3d4e8dce",9642:"a597defe",9647:"7a7fae88",9905:"7d9e471a"}[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),f={},d="langflow-docs:",r.l=(e,a,c,b)=>{if(f[e])f[e].push(a);else{var t,o;if(void 0!==c)for(var n=document.getElementsByTagName("script"),i=0;i{t.onerror=t.onload=null,clearTimeout(s);var d=f[e];if(delete f[e],t.parentNode&&t.parentNode.removeChild(t),d&&d.forEach((e=>e(c))),a)return a(c)},s=setTimeout(u.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=u.bind(null,t.onerror),t.onload=u.bind(null,t.onload),o&&document.head.appendChild(t)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.p="/",r.gca=function(e){return e={17896441:"8401",19136925:"9141",64045095:"3576",b7251463:"51","0be1d5fe":"145",c643a6d5:"191",bc63ae25:"230","93e16042":"417","6d684b63":"768",fe965b62:"784","672a0eba":"787",a4c0ff01:"800",dc7b1ef3:"868","05d835b4":"964","8a61012d":"1022","24d32e91":"1035","16d61ab3":"1039",c2de64b8:"1185","647965d5":"1227","1b523369":"1246","7da17ff3":"1258","8054effa":"1394",ac3cc3f5:"1488","1e9025f7":"1500","3ef76b56":"1563","22dd74f7":"1567","92852ade":"1625","41a97a99":"1690","2ab0d4f5":"1845",c3616f7f:"1917",fe6f9601:"1956","7b7db446":"2073","338a6f8e":"2097",e756fa26:"2273",c0d3c6ab:"2431","8ff68e6f":"2624",a3ab51d1:"2657","2efb9d3a":"2691",b3ba68b4:"2777",a9b73094:"2818","2148ae42":"3040","6a2beaac":"3110",bd7ab245:"3247","6aa941bb":"3327",b5257597:"3347",f66238ae:"3391",c2b1730c:"3694",a963b3cb:"3758","7679ca6e":"3859",c8dad5f1:"3917","829ff4d2":"3964",c2ebd62a:"4028","9ac856ad":"4046","5cf11f26":"4133","32cedcea":"4429",c563aec0:"4633",fef056e9:"4645",e189eece:"4778","438e4337":"4784","8298c1cb":"4841",ca67d85f:"4891",d2ad385b:"4930",a9b4f8aa:"4931",a71efd4a:"4954","2d2c4fcb":"4973","309383dc":"5138","41e3c105":"5179",a0511a5b:"5281","64ca91f1":"5284","9447891f":"5339",ee32130c:"5425","40d13080":"5467",d175aa8b:"5474","18f3809a":"5475","20d49d07":"5513","02955c09":"5514","20e9af62":"5562","873ebc27":"5572",a83bc7c0:"5628","9822a706":"5634","73af8c33":"5673","946d1cee":"5716","5ccf4833":"5718",aba21aa0:"5742","4e7126f8":"5772",e1766139:"5865","3b577cbb":"5866","61cfab8e":"5883",a3a1efc2:"5979","4d983c8e":"6003","445668ec":"6008",dfc50084:"6053","4d15791b":"6080",ab17fe15:"6147",c96ce3ed:"6281","873508e7":"6332","188ee668":"6350","96eb0e67":"6419","9fb9a766":"6445","4c5e977b":"6473","6f13807a":"6559","18988c08":"6668","5a6d6120":"6682",c817e236:"6920",b36bb719:"6949",a7bd4aaa:"7098","688feaef":"7108","4ce9199e":"7118","547df4a1":"7165",cacdc615:"7211","11478de3":"7258",c39b795e:"7338","3ae94ad4":"7408",fdefa9a8:"7453","921b5fc1":"7462","744aaf8b":"7472",be76515e:"7507","3a82b27e":"7713","790349b7":"7892","0f44198a":"7894","25bf2d67":"8031","85112c90":"8054","274fd934":"8064",cc44357e:"8085","019dbd1f":"8102",ecd67556:"8188","75a9e1e0":"8196","216e3ed7":"8208","474d53cd":"8261","73d1a090":"8304",c6a5eaec:"8356",e6c6a4d2:"8504","44dfcf75":"8598","8f774222":"8661","3705a9c0":"8679","45476a69":"8921",ae68aa8b:"8927","172b3cfb":"8929",adef6868:"8953",a94703ab:"9048",ea3c040a:"9126",c329cc2b:"9304","667d0790":"9306","991799c5":"9371","54175a6c":"9455","23d0e682":"9461","57c9a2b8":"9476","4e038a6a":"9479","7823fa72":"9483",dedd5914:"9555",f81a91eb:"9580","29b8e27a":"9619",eae80ce0:"9642","5e95c892":"9647","43df3697":"9905"}[e]||e,r.p+r.u(e)},(()=>{var e={5354:0,1869:0};r.f.j=(a,c)=>{var f=r.o(e,a)?e[a]:void 0;if(0!==f)if(f)c.push(f[2]);else if(/^(1869|5354)$/.test(a))e[a]=0;else{var d=new Promise(((c,d)=>f=e[a]=[c,d]));c.push(f[2]=d);var b=r.p+r.u(a),t=new Error;r.l(b,(c=>{if(r.o(e,a)&&(0!==(f=e[a])&&(e[a]=void 0),f)){var d=c&&("load"===c.type?"missing":c.type),b=c&&c.target&&c.target.src;t.message="Loading chunk "+a+" failed.\n("+d+": "+b+")",t.name="ChunkLoadError",t.type=d,t.request=b,f[1](t)}}),"chunk-"+a,a)}},r.O.j=a=>0===e[a];var a=(a,c)=>{var f,d,b=c[0],t=c[1],o=c[2],n=0;if(b.some((a=>0!==e[a]))){for(f in t)r.o(t,f)&&(r.m[f]=t[f]);if(o)var i=o(r)}for(a&&a(c);n{"use strict";var e,a,c,d,f,b={},t={};function r(e){var a=t[e];if(void 0!==a)return a.exports;var c=t[e]={id:e,loaded:!1,exports:{}};return b[e].call(c.exports,c,c.exports,r),c.loaded=!0,c.exports}r.m=b,r.c=t,e=[],r.O=(a,c,d,f)=>{if(!c){var b=1/0;for(i=0;i=f)&&Object.keys(r.O).every((e=>r.O[e](c[o])))?c.splice(o--,1):(t=!1,f0&&e[i-1][2]>f;i--)e[i]=e[i-1];e[i]=[c,d,f]},r.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a:a}),a},c=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(e,d){if(1&d&&(e=this(e)),8&d)return e;if("object"==typeof e&&e){if(4&d&&e.__esModule)return e;if(16&d&&"function"==typeof e.then)return e}var f=Object.create(null);r.r(f);var b={};a=a||[null,c({}),c([]),c(c)];for(var t=2&d&&e;"object"==typeof t&&!~a.indexOf(t);t=c(t))Object.getOwnPropertyNames(t).forEach((a=>b[a]=()=>e[a]));return b.default=()=>e,r.d(f,b),f},r.d=(e,a)=>{for(var c in a)r.o(a,c)&&!r.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((a,c)=>(r.f[c](e,a),a)),[])),r.u=e=>"assets/js/"+({51:"b7251463",145:"0be1d5fe",191:"c643a6d5",230:"bc63ae25",417:"93e16042",768:"6d684b63",784:"fe965b62",787:"672a0eba",800:"a4c0ff01",868:"dc7b1ef3",964:"05d835b4",1022:"8a61012d",1035:"24d32e91",1039:"16d61ab3",1185:"c2de64b8",1227:"647965d5",1246:"1b523369",1258:"7da17ff3",1394:"8054effa",1488:"ac3cc3f5",1500:"1e9025f7",1563:"3ef76b56",1567:"22dd74f7",1625:"92852ade",1690:"41a97a99",1845:"2ab0d4f5",1917:"c3616f7f",1956:"fe6f9601",2073:"7b7db446",2097:"338a6f8e",2273:"e756fa26",2431:"c0d3c6ab",2624:"8ff68e6f",2657:"a3ab51d1",2691:"2efb9d3a",2777:"b3ba68b4",2818:"a9b73094",3040:"2148ae42",3110:"6a2beaac",3247:"bd7ab245",3327:"6aa941bb",3347:"b5257597",3391:"f66238ae",3576:"64045095",3694:"c2b1730c",3758:"a963b3cb",3859:"7679ca6e",3917:"c8dad5f1",3964:"829ff4d2",4028:"c2ebd62a",4046:"9ac856ad",4133:"5cf11f26",4429:"32cedcea",4633:"c563aec0",4645:"fef056e9",4778:"e189eece",4784:"438e4337",4841:"8298c1cb",4891:"ca67d85f",4930:"d2ad385b",4931:"a9b4f8aa",4954:"a71efd4a",4973:"2d2c4fcb",5138:"309383dc",5179:"41e3c105",5281:"a0511a5b",5284:"64ca91f1",5339:"9447891f",5425:"ee32130c",5467:"40d13080",5474:"d175aa8b",5475:"18f3809a",5513:"20d49d07",5514:"02955c09",5562:"20e9af62",5572:"873ebc27",5628:"a83bc7c0",5634:"9822a706",5673:"73af8c33",5716:"946d1cee",5718:"5ccf4833",5742:"aba21aa0",5772:"4e7126f8",5865:"e1766139",5866:"3b577cbb",5883:"61cfab8e",5979:"a3a1efc2",6003:"4d983c8e",6008:"445668ec",6053:"dfc50084",6080:"4d15791b",6147:"ab17fe15",6281:"c96ce3ed",6332:"873508e7",6350:"188ee668",6419:"96eb0e67",6445:"9fb9a766",6473:"4c5e977b",6559:"6f13807a",6668:"18988c08",6682:"5a6d6120",6920:"c817e236",6949:"b36bb719",7098:"a7bd4aaa",7108:"688feaef",7118:"4ce9199e",7165:"547df4a1",7211:"cacdc615",7258:"11478de3",7338:"c39b795e",7408:"3ae94ad4",7453:"fdefa9a8",7462:"921b5fc1",7472:"744aaf8b",7507:"be76515e",7713:"3a82b27e",7892:"790349b7",7894:"0f44198a",8031:"25bf2d67",8054:"85112c90",8064:"274fd934",8085:"cc44357e",8102:"019dbd1f",8188:"ecd67556",8196:"75a9e1e0",8208:"216e3ed7",8261:"474d53cd",8304:"73d1a090",8356:"c6a5eaec",8401:"17896441",8504:"e6c6a4d2",8598:"44dfcf75",8661:"8f774222",8679:"3705a9c0",8921:"45476a69",8927:"ae68aa8b",8929:"172b3cfb",8953:"adef6868",9048:"a94703ab",9126:"ea3c040a",9141:"19136925",9304:"c329cc2b",9306:"667d0790",9371:"991799c5",9455:"54175a6c",9461:"23d0e682",9476:"57c9a2b8",9479:"4e038a6a",9483:"7823fa72",9555:"dedd5914",9580:"f81a91eb",9619:"29b8e27a",9642:"eae80ce0",9647:"5e95c892",9905:"43df3697"}[e]||e)+"."+{51:"3fa09726",145:"1d098b99",191:"5f273688",230:"04fbccf0",417:"099ab03e",768:"65469bf5",784:"b6a35b07",787:"7486d7e0",800:"9022588c",868:"dcdd6bc3",900:"f83a9a5d",964:"3893612e",1022:"11c801ab",1035:"1a6c2f56",1039:"69fae80f",1185:"9748a9a7",1227:"6e74c5d8",1246:"4186baef",1258:"a4bce530",1394:"e591c566",1488:"517c076b",1500:"6ea32b36",1563:"90358b4f",1567:"6e974544",1625:"14cdddbe",1690:"e0babedf",1845:"05da85d7",1917:"8eb62a8e",1956:"ba4da060",2073:"b3f8d739",2097:"ab549652",2237:"254217db",2273:"9499374f",2431:"c2a4a552",2624:"44057286",2657:"0a14fc05",2691:"137f1b76",2777:"50ca02a1",2818:"807cd6bf",3040:"1a81b288",3110:"87f20d44",3247:"52c928ff",3327:"a94a2c25",3347:"a02e271f",3391:"a423a13f",3477:"5c645be2",3576:"da9c580a",3694:"af3527cf",3758:"8dca7900",3859:"51e75ae4",3917:"ddd21831",3964:"0cd22fac",4028:"c46fe749",4046:"d82ce2df",4133:"709a34ca",4429:"542379f2",4633:"6fa1329f",4645:"e8d61841",4778:"88b91dab",4784:"942b7b69",4841:"ce23a523",4848:"03d25b14",4891:"b33e29f2",4930:"edacc80e",4931:"2f05178f",4954:"e5b1d897",4973:"d35ec9c8",5138:"8e4ae7ac",5179:"64e4c1f0",5281:"e84e8032",5284:"03bad459",5339:"a7de1f63",5425:"212e3898",5467:"1e54ecae",5474:"d264c1d9",5475:"30699dc9",5513:"5dafbef0",5514:"3b4a4736",5562:"88e5e3a2",5572:"2c03f163",5628:"5d209b33",5634:"91c6ae65",5673:"3b49b5ef",5716:"39697a86",5718:"36eb37b6",5742:"60b1d5b2",5772:"1fcd9acf",5865:"7ce0748f",5866:"82b75810",5883:"42922af9",5979:"16e1357e",6003:"61570841",6008:"adfa0d2f",6053:"da80e031",6080:"cbe50574",6147:"d40743e8",6281:"33a3c771",6332:"f2a4f3d5",6350:"620eb4c9",6419:"219b4ba9",6445:"48996318",6473:"f971cbc2",6559:"d1058175",6668:"73c6cd59",6682:"44a73ed9",6920:"02274d7b",6949:"f88bd12b",7098:"7a425922",7108:"685fe17f",7118:"66e8a4e6",7165:"3ae4f8e5",7211:"9b6f5f2f",7258:"4eea06e3",7338:"3e8c79c0",7408:"c6de4fbc",7453:"9b7dd8c8",7462:"60236844",7472:"ce946c2a",7507:"cd4f7aad",7713:"cb6d0f3d",7892:"e97eef4c",7894:"5e157eb4",8031:"46f2eb17",8054:"a9dd4a34",8064:"c255462c",8085:"c3449534",8102:"d5229333",8188:"5e58698d",8196:"7af007ad",8208:"872c8aa4",8261:"6883b6d6",8304:"258c7b9e",8356:"63481bd6",8401:"72b10a31",8504:"47593649",8598:"47a85797",8661:"098d5c8a",8679:"b99c1633",8921:"a78561cd",8927:"3a5836ad",8929:"27d12542",8953:"3a9c6464",9048:"271808f7",9126:"108a0e55",9141:"89b0e034",9304:"31372bf9",9306:"203273db",9371:"4b41f654",9455:"7870fd22",9461:"9f9fa204",9476:"d1729427",9479:"f58748d6",9483:"c57cc5af",9495:"b0827074",9555:"5269bca3",9580:"e76bfa8b",9619:"3d4e8dce",9642:"a597defe",9647:"7a7fae88",9905:"7d9e471a"}[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),d={},f="langflow-docs:",r.l=(e,a,c,b)=>{if(d[e])d[e].push(a);else{var t,o;if(void 0!==c)for(var n=document.getElementsByTagName("script"),i=0;i{t.onerror=t.onload=null,clearTimeout(s);var f=d[e];if(delete d[e],t.parentNode&&t.parentNode.removeChild(t),f&&f.forEach((e=>e(c))),a)return a(c)},s=setTimeout(u.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=u.bind(null,t.onerror),t.onload=u.bind(null,t.onload),o&&document.head.appendChild(t)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.p="/",r.gca=function(e){return e={17896441:"8401",19136925:"9141",64045095:"3576",b7251463:"51","0be1d5fe":"145",c643a6d5:"191",bc63ae25:"230","93e16042":"417","6d684b63":"768",fe965b62:"784","672a0eba":"787",a4c0ff01:"800",dc7b1ef3:"868","05d835b4":"964","8a61012d":"1022","24d32e91":"1035","16d61ab3":"1039",c2de64b8:"1185","647965d5":"1227","1b523369":"1246","7da17ff3":"1258","8054effa":"1394",ac3cc3f5:"1488","1e9025f7":"1500","3ef76b56":"1563","22dd74f7":"1567","92852ade":"1625","41a97a99":"1690","2ab0d4f5":"1845",c3616f7f:"1917",fe6f9601:"1956","7b7db446":"2073","338a6f8e":"2097",e756fa26:"2273",c0d3c6ab:"2431","8ff68e6f":"2624",a3ab51d1:"2657","2efb9d3a":"2691",b3ba68b4:"2777",a9b73094:"2818","2148ae42":"3040","6a2beaac":"3110",bd7ab245:"3247","6aa941bb":"3327",b5257597:"3347",f66238ae:"3391",c2b1730c:"3694",a963b3cb:"3758","7679ca6e":"3859",c8dad5f1:"3917","829ff4d2":"3964",c2ebd62a:"4028","9ac856ad":"4046","5cf11f26":"4133","32cedcea":"4429",c563aec0:"4633",fef056e9:"4645",e189eece:"4778","438e4337":"4784","8298c1cb":"4841",ca67d85f:"4891",d2ad385b:"4930",a9b4f8aa:"4931",a71efd4a:"4954","2d2c4fcb":"4973","309383dc":"5138","41e3c105":"5179",a0511a5b:"5281","64ca91f1":"5284","9447891f":"5339",ee32130c:"5425","40d13080":"5467",d175aa8b:"5474","18f3809a":"5475","20d49d07":"5513","02955c09":"5514","20e9af62":"5562","873ebc27":"5572",a83bc7c0:"5628","9822a706":"5634","73af8c33":"5673","946d1cee":"5716","5ccf4833":"5718",aba21aa0:"5742","4e7126f8":"5772",e1766139:"5865","3b577cbb":"5866","61cfab8e":"5883",a3a1efc2:"5979","4d983c8e":"6003","445668ec":"6008",dfc50084:"6053","4d15791b":"6080",ab17fe15:"6147",c96ce3ed:"6281","873508e7":"6332","188ee668":"6350","96eb0e67":"6419","9fb9a766":"6445","4c5e977b":"6473","6f13807a":"6559","18988c08":"6668","5a6d6120":"6682",c817e236:"6920",b36bb719:"6949",a7bd4aaa:"7098","688feaef":"7108","4ce9199e":"7118","547df4a1":"7165",cacdc615:"7211","11478de3":"7258",c39b795e:"7338","3ae94ad4":"7408",fdefa9a8:"7453","921b5fc1":"7462","744aaf8b":"7472",be76515e:"7507","3a82b27e":"7713","790349b7":"7892","0f44198a":"7894","25bf2d67":"8031","85112c90":"8054","274fd934":"8064",cc44357e:"8085","019dbd1f":"8102",ecd67556:"8188","75a9e1e0":"8196","216e3ed7":"8208","474d53cd":"8261","73d1a090":"8304",c6a5eaec:"8356",e6c6a4d2:"8504","44dfcf75":"8598","8f774222":"8661","3705a9c0":"8679","45476a69":"8921",ae68aa8b:"8927","172b3cfb":"8929",adef6868:"8953",a94703ab:"9048",ea3c040a:"9126",c329cc2b:"9304","667d0790":"9306","991799c5":"9371","54175a6c":"9455","23d0e682":"9461","57c9a2b8":"9476","4e038a6a":"9479","7823fa72":"9483",dedd5914:"9555",f81a91eb:"9580","29b8e27a":"9619",eae80ce0:"9642","5e95c892":"9647","43df3697":"9905"}[e]||e,r.p+r.u(e)},(()=>{var e={5354:0,1869:0};r.f.j=(a,c)=>{var d=r.o(e,a)?e[a]:void 0;if(0!==d)if(d)c.push(d[2]);else if(/^(1869|5354)$/.test(a))e[a]=0;else{var f=new Promise(((c,f)=>d=e[a]=[c,f]));c.push(d[2]=f);var b=r.p+r.u(a),t=new Error;r.l(b,(c=>{if(r.o(e,a)&&(0!==(d=e[a])&&(e[a]=void 0),d)){var f=c&&("load"===c.type?"missing":c.type),b=c&&c.target&&c.target.src;t.message="Loading chunk "+a+" failed.\n("+f+": "+b+")",t.name="ChunkLoadError",t.type=f,t.request=b,d[1](t)}}),"chunk-"+a,a)}},r.O.j=a=>0===e[a];var a=(a,c)=>{var d,f,b=c[0],t=c[1],o=c[2],n=0;if(b.some((a=>0!==e[a]))){for(d in t)r.o(t,d)&&(r.m[d]=t[d]);if(o)var i=o(r)}for(a&&a(c);n - + diff --git a/components-custom-components.html b/components-custom-components.html index 1606a572d5..3b7a8e1d99 100644 --- a/components-custom-components.html +++ b/components-custom-components.html @@ -10,7 +10,7 @@ - + diff --git a/components-data.html b/components-data.html index 0fff7b7873..59e274b8ca 100644 --- a/components-data.html +++ b/components-data.html @@ -10,7 +10,7 @@ - + diff --git a/components-embedding-models.html b/components-embedding-models.html index 8e30b01313..40b36a0d65 100644 --- a/components-embedding-models.html +++ b/components-embedding-models.html @@ -10,7 +10,7 @@ - + diff --git a/components-helpers.html b/components-helpers.html index c3cb3072be..04796852b0 100644 --- a/components-helpers.html +++ b/components-helpers.html @@ -10,7 +10,7 @@ - + diff --git a/components-io.html b/components-io.html index b2f188612f..b60acc803a 100644 --- a/components-io.html +++ b/components-io.html @@ -10,7 +10,7 @@ - + diff --git a/components-loaders.html b/components-loaders.html index 4d5b19ff2d..19166752bd 100644 --- a/components-loaders.html +++ b/components-loaders.html @@ -10,7 +10,7 @@ - + diff --git a/components-logic.html b/components-logic.html index 480836eff9..0a0a4fcd38 100644 --- a/components-logic.html +++ b/components-logic.html @@ -10,7 +10,7 @@ - + diff --git a/components-models.html b/components-models.html index 29e0e3ec05..d11d9254a9 100644 --- a/components-models.html +++ b/components-models.html @@ -10,7 +10,7 @@ - + diff --git a/components-overview.html b/components-overview.html index fd6f165e4e..48d18ee403 100644 --- a/components-overview.html +++ b/components-overview.html @@ -10,7 +10,7 @@ - + diff --git a/components-prompts.html b/components-prompts.html index d45a154624..54ed4ab58d 100644 --- a/components-prompts.html +++ b/components-prompts.html @@ -10,7 +10,7 @@ - + diff --git a/components-rag.html b/components-rag.html index 03098be826..e4fb1d7ca1 100644 --- a/components-rag.html +++ b/components-rag.html @@ -10,7 +10,7 @@ - + diff --git a/components-vector-stores.html b/components-vector-stores.html index 29b43edcaa..82e0eae02e 100644 --- a/components-vector-stores.html +++ b/components-vector-stores.html @@ -10,7 +10,7 @@ - + diff --git a/configuration-api-keys.html b/configuration-api-keys.html index f764cc5b77..d9fe93c045 100644 --- a/configuration-api-keys.html +++ b/configuration-api-keys.html @@ -10,7 +10,7 @@ - + diff --git a/configuration-authentication.html b/configuration-authentication.html index 9c0b16a8a2..54a88e4602 100644 --- a/configuration-authentication.html +++ b/configuration-authentication.html @@ -10,7 +10,7 @@ - + diff --git a/configuration-auto-save.html b/configuration-auto-save.html index 0c1300b0a4..66655aa7b0 100644 --- a/configuration-auto-save.html +++ b/configuration-auto-save.html @@ -10,7 +10,7 @@ - + diff --git a/configuration-backend-only.html b/configuration-backend-only.html index 543abc538e..5c4c28f9f7 100644 --- a/configuration-backend-only.html +++ b/configuration-backend-only.html @@ -10,7 +10,7 @@ - + diff --git a/configuration-cli.html b/configuration-cli.html index 00a468474d..21a84246a2 100644 --- a/configuration-cli.html +++ b/configuration-cli.html @@ -10,7 +10,7 @@ - + diff --git a/configuration-global-variables.html b/configuration-global-variables.html index 90222971d1..4f8161a616 100644 --- a/configuration-global-variables.html +++ b/configuration-global-variables.html @@ -10,7 +10,7 @@ - + diff --git a/contributing-community.html b/contributing-community.html index 61bf44d642..f9a1f64e7b 100644 --- a/contributing-community.html +++ b/contributing-community.html @@ -10,7 +10,7 @@ - + diff --git a/contributing-components.html b/contributing-components.html index 7aa35d6b78..4a8ce29dc0 100644 --- a/contributing-components.html +++ b/contributing-components.html @@ -10,7 +10,7 @@ - + diff --git a/contributing-github-discussions.html b/contributing-github-discussions.html index 489def817e..78f0b4b6a4 100644 --- a/contributing-github-discussions.html +++ b/contributing-github-discussions.html @@ -10,7 +10,7 @@ - + diff --git a/contributing-github-issues.html b/contributing-github-issues.html index 3ab5e7f75f..2db260c319 100644 --- a/contributing-github-issues.html +++ b/contributing-github-issues.html @@ -10,7 +10,7 @@ - + diff --git a/contributing-how-to-contribute.html b/contributing-how-to-contribute.html index e09f6c9ff3..0b46355ebc 100644 --- a/contributing-how-to-contribute.html +++ b/contributing-how-to-contribute.html @@ -10,7 +10,7 @@ - + diff --git a/contributing-telemetry.html b/contributing-telemetry.html index cfdc2ef4d5..e2508efe9d 100644 --- a/contributing-telemetry.html +++ b/contributing-telemetry.html @@ -10,7 +10,7 @@ - + diff --git a/deployment-docker.html b/deployment-docker.html index 51a9ec3b95..65416a3239 100644 --- a/deployment-docker.html +++ b/deployment-docker.html @@ -10,7 +10,7 @@ - + diff --git a/deployment-gcp.html b/deployment-gcp.html index e7d84c0c14..d3a135fafb 100644 --- a/deployment-gcp.html +++ b/deployment-gcp.html @@ -10,7 +10,7 @@ - + diff --git a/deployment-hugging-face-spaces.html b/deployment-hugging-face-spaces.html index f8fd56ef99..ca93a7103a 100644 --- a/deployment-hugging-face-spaces.html +++ b/deployment-hugging-face-spaces.html @@ -10,7 +10,7 @@ - + diff --git a/deployment-kubernetes.html b/deployment-kubernetes.html index 166fa1f381..a457cfdf3c 100644 --- a/deployment-kubernetes.html +++ b/deployment-kubernetes.html @@ -10,7 +10,7 @@ - + diff --git a/deployment-railway.html b/deployment-railway.html index fcdc782948..a155ebdd50 100644 --- a/deployment-railway.html +++ b/deployment-railway.html @@ -10,7 +10,7 @@ - + diff --git a/deployment-render.html b/deployment-render.html index 0775bd6f71..75bac68295 100644 --- a/deployment-render.html +++ b/deployment-render.html @@ -10,7 +10,7 @@ - + diff --git a/environment-variables.html b/environment-variables.html index 1b7d0dd580..2df10cb64b 100644 --- a/environment-variables.html +++ b/environment-variables.html @@ -10,7 +10,7 @@ - + diff --git a/get-started-installation.html b/get-started-installation.html index ca055d02d8..2fc84c20c2 100644 --- a/get-started-installation.html +++ b/get-started-installation.html @@ -10,7 +10,7 @@ - + diff --git a/get-started-quickstart.html b/get-started-quickstart.html index 8758bd6dca..b34f128cca 100644 --- a/get-started-quickstart.html +++ b/get-started-quickstart.html @@ -10,7 +10,7 @@ - + diff --git a/guides-chat-memory.html b/guides-chat-memory.html index a59b9a8074..c4b4cec209 100644 --- a/guides-chat-memory.html +++ b/guides-chat-memory.html @@ -10,7 +10,7 @@ - + @@ -34,6 +34,45 @@

By default, if the Session ID value is empty, it is set to the same value as Flow ID.

You can also display all messages stored across every flow and session by going to Settings > Messages.

-

Hi, how can I help you?

+

+

Store chat memory in an external database

+

Chat memory is retrieved from an external database or vector store using the Chat Memory component.

+

Chat memory is stored to an external database or vector store using the Store Message component.

+

The Chat Memories components provide access to their respective external databases as memory. This allows AIs to access external memory for persistence and context retention. For example, connect the Chat Memory component to an AstraDBChatMemory* component to store the message history in an external Astra DB database.

+

This example stores and retrieves chat history from an AstraDBChatMemory component with Store Message and Chat Memory components.

+

Prerequisites

+ +

Connect the chat memory component to an external database

+
    +
  1. Load the Memory Chatbot starter project. +This starter project extends the basic prompting flow to include a chat memory component.
  2. +
  3. Add the Store Message component to the flow. +The Store message component stores messages in the external database.
  4. +
  5. Add the AstraDBChatMemory Component to the flow. +The Astra DB Chat Memory component stores and retrieves messages from Astra DB.
  6. +
  7. Configure the AstraDBChatMemory component with your AstraDB instance details. +
      +
    1. In the Astra DB Application Token field, add your Astra token. (AstraCS:...)
    2. +
    3. In the API Endpoint field, add your Astra database's endpoint. (for example, https://12adb-bc-5378c845f05a6-e0a12-bd889b4-us-east-2.apps.astra.datastax.com)
    4. +
    +
  8. +
  9. Connect the AstraDBChatMemory component output to the external memory inputs of the Chat Memory and Store Message components.
  10. +
  11. Link the Chat Output component to the input of the Store Message component.
  12. +
+

Your completed flow should look like this:

+

Sample Flow storing Chat Memory in AstraDB

+
    +
  1. In Langflow, create message traffic by running a flow.
  2. +
  3. Inspect your Astra database's tables and activity. +You will see new tables and traffic created.
  4. +

Hi, how can I help you?

\ No newline at end of file diff --git a/guides-data-message.html b/guides-data-message.html index 0ff33f095b..eada4c313c 100644 --- a/guides-data-message.html +++ b/guides-data-message.html @@ -10,7 +10,7 @@ - + diff --git a/guides-new-to-llms.html b/guides-new-to-llms.html index b7d22de36f..f37e0a5fa7 100644 --- a/guides-new-to-llms.html +++ b/guides-new-to-llms.html @@ -10,7 +10,7 @@ - + diff --git a/img/astra_db_chat_memory_rounded.png b/img/astra_db_chat_memory_rounded.png new file mode 100644 index 0000000000..630e74bc0a Binary files /dev/null and b/img/astra_db_chat_memory_rounded.png differ diff --git a/index.html b/index.html index cf23a1011e..e2c2da0f84 100644 --- a/index.html +++ b/index.html @@ -10,7 +10,7 @@ - + diff --git a/integrations-assemblyai.html b/integrations-assemblyai.html index d100eb3eba..76cb30e8af 100644 --- a/integrations-assemblyai.html +++ b/integrations-assemblyai.html @@ -10,7 +10,7 @@ - + diff --git a/integrations-langfuse.html b/integrations-langfuse.html index e28d8a6ea6..4f0f0d1f73 100644 --- a/integrations-langfuse.html +++ b/integrations-langfuse.html @@ -10,7 +10,7 @@ - + diff --git a/integrations-langsmith.html b/integrations-langsmith.html index ef20d54880..b90afdc4dc 100644 --- a/integrations-langsmith.html +++ b/integrations-langsmith.html @@ -10,7 +10,7 @@ - + diff --git a/integrations-langwatch.html b/integrations-langwatch.html index 80de1bd04e..477c764736 100644 --- a/integrations-langwatch.html +++ b/integrations-langwatch.html @@ -10,7 +10,7 @@ - + diff --git a/integrations-setup-google-oauth-langflow.html b/integrations-setup-google-oauth-langflow.html index 44d85a49f3..5c0549b648 100644 --- a/integrations-setup-google-oauth-langflow.html +++ b/integrations-setup-google-oauth-langflow.html @@ -10,7 +10,7 @@ - + diff --git a/integrations/notion/notion-agent-conversational.html b/integrations/notion/notion-agent-conversational.html index dabdf17da9..2ba27ad868 100644 --- a/integrations/notion/notion-agent-conversational.html +++ b/integrations/notion/notion-agent-conversational.html @@ -10,7 +10,7 @@ - + diff --git a/integrations/notion/notion-agent-meeting-notes.html b/integrations/notion/notion-agent-meeting-notes.html index 377aac5f84..27a006089d 100644 --- a/integrations/notion/notion-agent-meeting-notes.html +++ b/integrations/notion/notion-agent-meeting-notes.html @@ -10,7 +10,7 @@ - + diff --git a/integrations/notion/setup.html b/integrations/notion/setup.html index f2a719463b..dfe928343e 100644 --- a/integrations/notion/setup.html +++ b/integrations/notion/setup.html @@ -10,7 +10,7 @@ - + diff --git a/sitemap.xml b/sitemap.xml index eed46119e1..b6f5bf2e2d 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1 +1 @@ -https://docs.langflow.org/apihttps://docs.langflow.org/api/add-userhttps://docs.langflow.org/api/auto-loginhttps://docs.langflow.org/api/build-flowhttps://docs.langflow.org/api/build-vertexhttps://docs.langflow.org/api/build-vertex-streamhttps://docs.langflow.org/api/check-if-store-has-api-keyhttps://docs.langflow.org/api/check-if-store-is-enabledhttps://docs.langflow.org/api/create-api-key-routehttps://docs.langflow.org/api/create-flowhttps://docs.langflow.org/api/create-flowshttps://docs.langflow.org/api/create-folderhttps://docs.langflow.org/api/create-upload-filehttps://docs.langflow.org/api/create-variablehttps://docs.langflow.org/api/custom-componenthttps://docs.langflow.org/api/custom-component-updatehttps://docs.langflow.org/api/delete-api-key-routehttps://docs.langflow.org/api/delete-filehttps://docs.langflow.org/api/delete-flowhttps://docs.langflow.org/api/delete-folderhttps://docs.langflow.org/api/delete-messageshttps://docs.langflow.org/api/delete-messages-sessionhttps://docs.langflow.org/api/delete-multiple-flowshttps://docs.langflow.org/api/delete-userhttps://docs.langflow.org/api/delete-variablehttps://docs.langflow.org/api/delete-vertex-buildshttps://docs.langflow.org/api/download-componenthttps://docs.langflow.org/api/download-filehttps://docs.langflow.org/api/download-file-1https://docs.langflow.org/api/download-imagehttps://docs.langflow.org/api/download-multiple-filehttps://docs.langflow.org/api/download-profile-picturehttps://docs.langflow.org/api/experimental-run-flowhttps://docs.langflow.org/api/get-allhttps://docs.langflow.org/api/get-api-keys-routehttps://docs.langflow.org/api/get-componentshttps://docs.langflow.org/api/get-confighttps://docs.langflow.org/api/get-list-of-components-liked-by-userhttps://docs.langflow.org/api/get-messageshttps://docs.langflow.org/api/get-starter-projectshttps://docs.langflow.org/api/get-tagshttps://docs.langflow.org/api/get-task-statushttps://docs.langflow.org/api/get-transactionshttps://docs.langflow.org/api/get-versionhttps://docs.langflow.org/api/get-vertex-buildshttps://docs.langflow.org/api/healthhttps://docs.langflow.org/api/health-checkhttps://docs.langflow.org/api/like-componenthttps://docs.langflow.org/api/list-fileshttps://docs.langflow.org/api/list-profile-pictureshttps://docs.langflow.org/api/login-to-get-access-tokenhttps://docs.langflow.org/api/logouthttps://docs.langflow.org/api/logshttps://docs.langflow.org/api/patch-userhttps://docs.langflow.org/api/post-validate-codehttps://docs.langflow.org/api/post-validate-prompthttps://docs.langflow.org/api/processhttps://docs.langflow.org/api/process-1https://docs.langflow.org/api/read-all-usershttps://docs.langflow.org/api/read-basic-exampleshttps://docs.langflow.org/api/read-current-userhttps://docs.langflow.org/api/read-flowhttps://docs.langflow.org/api/read-flowshttps://docs.langflow.org/api/read-folderhttps://docs.langflow.org/api/read-foldershttps://docs.langflow.org/api/read-variableshttps://docs.langflow.org/api/refresh-tokenhttps://docs.langflow.org/api/reset-passwordhttps://docs.langflow.org/api/retrieve-vertices-orderhttps://docs.langflow.org/api/save-store-api-keyhttps://docs.langflow.org/api/share-componenthttps://docs.langflow.org/api/simplified-run-flowhttps://docs.langflow.org/api/stream-logshttps://docs.langflow.org/api/update-flowhttps://docs.langflow.org/api/update-folderhttps://docs.langflow.org/api/update-messagehttps://docs.langflow.org/api/update-session-idhttps://docs.langflow.org/api/update-shared-componenthttps://docs.langflow.org/api/update-variablehttps://docs.langflow.org/api/upload-filehttps://docs.langflow.org/api/upload-file-1https://docs.langflow.org/api/upload-file-2https://docs.langflow.org/api/webhook-run-flowhttps://docs.langflow.org/agents-overview2024-11-26T20:26:06.000Zhttps://docs.langflow.org/agents-tool-calling-agent-component2024-11-26T20:26:06.000Zhttps://docs.langflow.org/components-agents2024-11-26T20:26:06.000Zhttps://docs.langflow.org/components-custom-components2024-11-26T20:26:06.000Zhttps://docs.langflow.org/components-data2024-11-26T20:26:06.000Zhttps://docs.langflow.org/components-embedding-models2024-11-26T20:26:06.000Zhttps://docs.langflow.org/components-helpers2024-11-26T20:26:06.000Zhttps://docs.langflow.org/components-io2024-11-26T20:26:06.000Zhttps://docs.langflow.org/components-loaders2024-11-26T20:26:06.000Zhttps://docs.langflow.org/components-logic2024-11-26T20:26:06.000Zhttps://docs.langflow.org/components-models2024-11-26T20:26:06.000Zhttps://docs.langflow.org/components-overview2024-11-26T20:26:06.000Zhttps://docs.langflow.org/components-prompts2024-11-26T20:26:06.000Zhttps://docs.langflow.org/components-rag2024-11-26T20:26:06.000Zhttps://docs.langflow.org/components-vector-stores2024-11-26T20:26:06.000Zhttps://docs.langflow.org/Components/components-memories2024-11-26T20:26:06.000Zhttps://docs.langflow.org/Components/components-tools2024-11-26T20:26:06.000Zhttps://docs.langflow.org/configuration-api-keys2024-11-26T20:26:06.000Zhttps://docs.langflow.org/configuration-authentication2024-11-26T20:26:06.000Zhttps://docs.langflow.org/configuration-auto-save2024-11-26T20:26:06.000Zhttps://docs.langflow.org/configuration-backend-only2024-11-26T20:26:06.000Zhttps://docs.langflow.org/configuration-cli2024-11-26T20:26:06.000Zhttps://docs.langflow.org/configuration-global-variables2024-11-26T20:26:06.000Zhttps://docs.langflow.org/Configuration/configuration-custom-database2024-11-26T20:26:06.000Zhttps://docs.langflow.org/contributing-community2024-11-26T20:26:06.000Zhttps://docs.langflow.org/contributing-components2024-11-26T20:26:06.000Zhttps://docs.langflow.org/contributing-github-discussions2024-11-26T20:26:06.000Zhttps://docs.langflow.org/contributing-github-issues2024-11-26T20:26:06.000Zhttps://docs.langflow.org/contributing-how-to-contribute2024-11-26T20:26:06.000Zhttps://docs.langflow.org/contributing-telemetry2024-11-26T20:26:06.000Zhttps://docs.langflow.org/deployment-docker2024-11-26T20:26:06.000Zhttps://docs.langflow.org/deployment-gcp2024-11-26T20:26:06.000Zhttps://docs.langflow.org/deployment-hugging-face-spaces2024-11-26T20:26:06.000Zhttps://docs.langflow.org/deployment-kubernetes2024-11-26T20:26:06.000Zhttps://docs.langflow.org/deployment-railway2024-11-26T20:26:06.000Zhttps://docs.langflow.org/deployment-render2024-11-26T20:26:06.000Zhttps://docs.langflow.org/environment-variables2024-11-26T20:26:06.000Zhttps://docs.langflow.org/get-started-installation2024-11-26T20:26:06.000Zhttps://docs.langflow.org/get-started-quickstart2024-11-26T20:26:06.000Zhttps://docs.langflow.org/guides-chat-memory2024-11-26T20:26:06.000Zhttps://docs.langflow.org/guides-data-message2024-11-26T20:26:06.000Zhttps://docs.langflow.org/guides-new-to-llms2024-11-26T20:26:06.000Zhttps://docs.langflow.org/integrations-assemblyai2024-11-26T20:26:06.000Zhttps://docs.langflow.org/integrations-langfuse2024-11-26T20:26:06.000Zhttps://docs.langflow.org/integrations-langsmith2024-11-26T20:26:06.000Zhttps://docs.langflow.org/integrations-langwatch2024-11-26T20:26:06.000Zhttps://docs.langflow.org/integrations-setup-google-oauth-langflow2024-11-26T20:26:06.000Zhttps://docs.langflow.org/integrations/notion/notion-agent-conversational2024-11-26T20:26:06.000Zhttps://docs.langflow.org/integrations/notion/notion-agent-meeting-notes2024-11-26T20:26:06.000Zhttps://docs.langflow.org/integrations/notion/setup2024-11-26T20:26:06.000Zhttps://docs.langflow.org/starter-projects-basic-prompting2024-11-26T20:26:06.000Zhttps://docs.langflow.org/starter-projects-blog-writer2024-11-26T20:26:06.000Zhttps://docs.langflow.org/starter-projects-document-qa2024-11-26T20:26:06.000Zhttps://docs.langflow.org/starter-projects-memory-chatbot2024-11-26T20:26:06.000Zhttps://docs.langflow.org/starter-projects-sequential-agent2024-11-26T20:26:06.000Zhttps://docs.langflow.org/starter-projects-simple-agent2024-11-26T20:26:06.000Zhttps://docs.langflow.org/starter-projects-travel-planning-agent2024-11-26T20:26:06.000Zhttps://docs.langflow.org/starter-projects-vector-store-rag2024-11-26T20:26:06.000Zhttps://docs.langflow.org/workspace-api2024-11-26T20:26:06.000Zhttps://docs.langflow.org/workspace-logs2024-11-26T20:26:06.000Zhttps://docs.langflow.org/workspace-overview2024-11-26T20:26:06.000Zhttps://docs.langflow.org/workspace-playground2024-11-26T20:26:06.000Zhttps://docs.langflow.org/2024-11-26T20:26:06.000Z \ No newline at end of file +https://docs.langflow.org/apihttps://docs.langflow.org/api/add-userhttps://docs.langflow.org/api/auto-loginhttps://docs.langflow.org/api/build-flowhttps://docs.langflow.org/api/build-vertexhttps://docs.langflow.org/api/build-vertex-streamhttps://docs.langflow.org/api/check-if-store-has-api-keyhttps://docs.langflow.org/api/check-if-store-is-enabledhttps://docs.langflow.org/api/create-api-key-routehttps://docs.langflow.org/api/create-flowhttps://docs.langflow.org/api/create-flowshttps://docs.langflow.org/api/create-folderhttps://docs.langflow.org/api/create-upload-filehttps://docs.langflow.org/api/create-variablehttps://docs.langflow.org/api/custom-componenthttps://docs.langflow.org/api/custom-component-updatehttps://docs.langflow.org/api/delete-api-key-routehttps://docs.langflow.org/api/delete-filehttps://docs.langflow.org/api/delete-flowhttps://docs.langflow.org/api/delete-folderhttps://docs.langflow.org/api/delete-messageshttps://docs.langflow.org/api/delete-messages-sessionhttps://docs.langflow.org/api/delete-multiple-flowshttps://docs.langflow.org/api/delete-userhttps://docs.langflow.org/api/delete-variablehttps://docs.langflow.org/api/delete-vertex-buildshttps://docs.langflow.org/api/download-componenthttps://docs.langflow.org/api/download-filehttps://docs.langflow.org/api/download-file-1https://docs.langflow.org/api/download-imagehttps://docs.langflow.org/api/download-multiple-filehttps://docs.langflow.org/api/download-profile-picturehttps://docs.langflow.org/api/experimental-run-flowhttps://docs.langflow.org/api/get-allhttps://docs.langflow.org/api/get-api-keys-routehttps://docs.langflow.org/api/get-componentshttps://docs.langflow.org/api/get-confighttps://docs.langflow.org/api/get-list-of-components-liked-by-userhttps://docs.langflow.org/api/get-messageshttps://docs.langflow.org/api/get-starter-projectshttps://docs.langflow.org/api/get-tagshttps://docs.langflow.org/api/get-task-statushttps://docs.langflow.org/api/get-transactionshttps://docs.langflow.org/api/get-versionhttps://docs.langflow.org/api/get-vertex-buildshttps://docs.langflow.org/api/healthhttps://docs.langflow.org/api/health-checkhttps://docs.langflow.org/api/like-componenthttps://docs.langflow.org/api/list-fileshttps://docs.langflow.org/api/list-profile-pictureshttps://docs.langflow.org/api/login-to-get-access-tokenhttps://docs.langflow.org/api/logouthttps://docs.langflow.org/api/logshttps://docs.langflow.org/api/patch-userhttps://docs.langflow.org/api/post-validate-codehttps://docs.langflow.org/api/post-validate-prompthttps://docs.langflow.org/api/processhttps://docs.langflow.org/api/process-1https://docs.langflow.org/api/read-all-usershttps://docs.langflow.org/api/read-basic-exampleshttps://docs.langflow.org/api/read-current-userhttps://docs.langflow.org/api/read-flowhttps://docs.langflow.org/api/read-flowshttps://docs.langflow.org/api/read-folderhttps://docs.langflow.org/api/read-foldershttps://docs.langflow.org/api/read-variableshttps://docs.langflow.org/api/refresh-tokenhttps://docs.langflow.org/api/reset-passwordhttps://docs.langflow.org/api/retrieve-vertices-orderhttps://docs.langflow.org/api/save-store-api-keyhttps://docs.langflow.org/api/share-componenthttps://docs.langflow.org/api/simplified-run-flowhttps://docs.langflow.org/api/stream-logshttps://docs.langflow.org/api/update-flowhttps://docs.langflow.org/api/update-folderhttps://docs.langflow.org/api/update-messagehttps://docs.langflow.org/api/update-session-idhttps://docs.langflow.org/api/update-shared-componenthttps://docs.langflow.org/api/update-variablehttps://docs.langflow.org/api/upload-filehttps://docs.langflow.org/api/upload-file-1https://docs.langflow.org/api/upload-file-2https://docs.langflow.org/api/webhook-run-flowhttps://docs.langflow.org/agents-overview2024-11-26T20:46:17.000Zhttps://docs.langflow.org/agents-tool-calling-agent-component2024-11-26T20:46:17.000Zhttps://docs.langflow.org/components-agents2024-11-26T20:46:17.000Zhttps://docs.langflow.org/components-custom-components2024-11-26T20:46:17.000Zhttps://docs.langflow.org/components-data2024-11-26T20:46:17.000Zhttps://docs.langflow.org/components-embedding-models2024-11-26T20:46:17.000Zhttps://docs.langflow.org/components-helpers2024-11-26T20:46:17.000Zhttps://docs.langflow.org/components-io2024-11-26T20:46:17.000Zhttps://docs.langflow.org/components-loaders2024-11-26T20:46:17.000Zhttps://docs.langflow.org/components-logic2024-11-26T20:46:17.000Zhttps://docs.langflow.org/components-models2024-11-26T20:46:17.000Zhttps://docs.langflow.org/components-overview2024-11-26T20:46:17.000Zhttps://docs.langflow.org/components-prompts2024-11-26T20:46:17.000Zhttps://docs.langflow.org/components-rag2024-11-26T20:46:17.000Zhttps://docs.langflow.org/components-vector-stores2024-11-26T20:46:17.000Zhttps://docs.langflow.org/Components/components-memories2024-11-26T20:46:17.000Zhttps://docs.langflow.org/Components/components-tools2024-11-26T20:46:17.000Zhttps://docs.langflow.org/configuration-api-keys2024-11-26T20:46:17.000Zhttps://docs.langflow.org/configuration-authentication2024-11-26T20:46:17.000Zhttps://docs.langflow.org/configuration-auto-save2024-11-26T20:46:17.000Zhttps://docs.langflow.org/configuration-backend-only2024-11-26T20:46:17.000Zhttps://docs.langflow.org/configuration-cli2024-11-26T20:46:17.000Zhttps://docs.langflow.org/configuration-global-variables2024-11-26T20:46:17.000Zhttps://docs.langflow.org/Configuration/configuration-custom-database2024-11-26T20:46:17.000Zhttps://docs.langflow.org/contributing-community2024-11-26T20:46:17.000Zhttps://docs.langflow.org/contributing-components2024-11-26T20:46:17.000Zhttps://docs.langflow.org/contributing-github-discussions2024-11-26T20:46:17.000Zhttps://docs.langflow.org/contributing-github-issues2024-11-26T20:46:17.000Zhttps://docs.langflow.org/contributing-how-to-contribute2024-11-26T20:46:17.000Zhttps://docs.langflow.org/contributing-telemetry2024-11-26T20:46:17.000Zhttps://docs.langflow.org/deployment-docker2024-11-26T20:46:17.000Zhttps://docs.langflow.org/deployment-gcp2024-11-26T20:46:17.000Zhttps://docs.langflow.org/deployment-hugging-face-spaces2024-11-26T20:46:17.000Zhttps://docs.langflow.org/deployment-kubernetes2024-11-26T20:46:17.000Zhttps://docs.langflow.org/deployment-railway2024-11-26T20:46:17.000Zhttps://docs.langflow.org/deployment-render2024-11-26T20:46:17.000Zhttps://docs.langflow.org/environment-variables2024-11-26T20:46:17.000Zhttps://docs.langflow.org/get-started-installation2024-11-26T20:46:17.000Zhttps://docs.langflow.org/get-started-quickstart2024-11-26T20:46:17.000Zhttps://docs.langflow.org/guides-chat-memory2024-11-26T20:46:17.000Zhttps://docs.langflow.org/guides-data-message2024-11-26T20:46:17.000Zhttps://docs.langflow.org/guides-new-to-llms2024-11-26T20:46:17.000Zhttps://docs.langflow.org/integrations-assemblyai2024-11-26T20:46:17.000Zhttps://docs.langflow.org/integrations-langfuse2024-11-26T20:46:17.000Zhttps://docs.langflow.org/integrations-langsmith2024-11-26T20:46:17.000Zhttps://docs.langflow.org/integrations-langwatch2024-11-26T20:46:17.000Zhttps://docs.langflow.org/integrations-setup-google-oauth-langflow2024-11-26T20:46:17.000Zhttps://docs.langflow.org/integrations/notion/notion-agent-conversational2024-11-26T20:46:17.000Zhttps://docs.langflow.org/integrations/notion/notion-agent-meeting-notes2024-11-26T20:46:17.000Zhttps://docs.langflow.org/integrations/notion/setup2024-11-26T20:46:17.000Zhttps://docs.langflow.org/starter-projects-basic-prompting2024-11-26T20:46:17.000Zhttps://docs.langflow.org/starter-projects-blog-writer2024-11-26T20:46:17.000Zhttps://docs.langflow.org/starter-projects-document-qa2024-11-26T20:46:17.000Zhttps://docs.langflow.org/starter-projects-memory-chatbot2024-11-26T20:46:17.000Zhttps://docs.langflow.org/starter-projects-sequential-agent2024-11-26T20:46:17.000Zhttps://docs.langflow.org/starter-projects-simple-agent2024-11-26T20:46:17.000Zhttps://docs.langflow.org/starter-projects-travel-planning-agent2024-11-26T20:46:17.000Zhttps://docs.langflow.org/starter-projects-vector-store-rag2024-11-26T20:46:17.000Zhttps://docs.langflow.org/workspace-api2024-11-26T20:46:17.000Zhttps://docs.langflow.org/workspace-logs2024-11-26T20:46:17.000Zhttps://docs.langflow.org/workspace-overview2024-11-26T20:46:17.000Zhttps://docs.langflow.org/workspace-playground2024-11-26T20:46:17.000Zhttps://docs.langflow.org/2024-11-26T20:46:17.000Z \ No newline at end of file diff --git a/starter-projects-basic-prompting.html b/starter-projects-basic-prompting.html index 444a609ca4..a6a3f933c6 100644 --- a/starter-projects-basic-prompting.html +++ b/starter-projects-basic-prompting.html @@ -10,7 +10,7 @@ - + diff --git a/starter-projects-blog-writer.html b/starter-projects-blog-writer.html index 4c45c0ea87..f3b97dbeba 100644 --- a/starter-projects-blog-writer.html +++ b/starter-projects-blog-writer.html @@ -10,7 +10,7 @@ - + diff --git a/starter-projects-document-qa.html b/starter-projects-document-qa.html index 2c05ba5dda..a8a03f91e7 100644 --- a/starter-projects-document-qa.html +++ b/starter-projects-document-qa.html @@ -10,7 +10,7 @@ - + diff --git a/starter-projects-memory-chatbot.html b/starter-projects-memory-chatbot.html index 9a97f18407..ca76cc4d8f 100644 --- a/starter-projects-memory-chatbot.html +++ b/starter-projects-memory-chatbot.html @@ -10,7 +10,7 @@ - + @@ -41,7 +41,7 @@
  • Type multiple questions. In the Memories tab, your queries are logged in order. Up to 100 queries are stored by default. Try telling the AI your name and asking What is my name? on a second message, or What is the first subject I asked you about? to validate that previous knowledge is taking effect.
  • tip

    Check and adjust advanced parameters by opening the Advanced Settings of the Chat Memory component.

    -

    Use Session ID in with the memory chatbot flow

    +

    Use Session ID with the memory chatbot flow


    SessionID is a unique identifier in Langflow that stores conversation sessions between the AI and a user. A SessionID is created when a conversation is initiated, and then associated with all subsequent messages during that session.

    In the Memory Chatbot flow you created, the Chat Memory component references past interactions by Session ID. You can demonstrate this by modifying the Session ID value to switch between conversation histories.

    @@ -51,6 +51,6 @@
  • Notice how your conversation is being stored in different memory sessions.
  • tip

    Every chat component in Langflow comes with a SessionID. It defaults to the flow ID. Explore how changing it affects what the AI remembers.

    -

    Learn more about memories in the Chat Memory section.

    Hi, how can I help you?

    +

    Learn more about memories in the Chat Memory section.

    Hi, how can I help you?

    \ No newline at end of file diff --git a/starter-projects-sequential-agent.html b/starter-projects-sequential-agent.html index ea5ae9ef91..b4a2929d97 100644 --- a/starter-projects-sequential-agent.html +++ b/starter-projects-sequential-agent.html @@ -10,7 +10,7 @@ - + diff --git a/starter-projects-simple-agent.html b/starter-projects-simple-agent.html index 7349aaaaa7..f3b9831e49 100644 --- a/starter-projects-simple-agent.html +++ b/starter-projects-simple-agent.html @@ -10,7 +10,7 @@ - + diff --git a/starter-projects-travel-planning-agent.html b/starter-projects-travel-planning-agent.html index 86692ebce1..91c3731d3c 100644 --- a/starter-projects-travel-planning-agent.html +++ b/starter-projects-travel-planning-agent.html @@ -10,7 +10,7 @@ - + diff --git a/starter-projects-vector-store-rag.html b/starter-projects-vector-store-rag.html index af2e4786ff..864cd8ea0f 100644 --- a/starter-projects-vector-store-rag.html +++ b/starter-projects-vector-store-rag.html @@ -10,7 +10,7 @@ - + diff --git a/workspace-api.html b/workspace-api.html index 696cac1fd2..1558fc5603 100644 --- a/workspace-api.html +++ b/workspace-api.html @@ -10,7 +10,7 @@ - + diff --git a/workspace-logs.html b/workspace-logs.html index 8c6a6f0441..30014a155b 100644 --- a/workspace-logs.html +++ b/workspace-logs.html @@ -10,7 +10,7 @@ - + diff --git a/workspace-overview.html b/workspace-overview.html index 3d7ed67a9a..ea1aff9cc2 100644 --- a/workspace-overview.html +++ b/workspace-overview.html @@ -10,7 +10,7 @@ - + diff --git a/workspace-playground.html b/workspace-playground.html index fb0c95057d..52406cb510 100644 --- a/workspace-playground.html +++ b/workspace-playground.html @@ -10,7 +10,7 @@ - +