|
|
@ -1,15 +1,16 @@
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cells": [
|
|
|
|
"cells": [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
"attachments": {},
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "ff4be5f3",
|
|
|
|
"id": "ff4be5f3",
|
|
|
|
"metadata": {},
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"source": [
|
|
|
|
"# VectorStore-Backed Memory\n",
|
|
|
|
"# VectorStore-Backed Memory\n",
|
|
|
|
"\n",
|
|
|
|
"\n",
|
|
|
|
"`VectorStoreRetrieverMemory` stores interactions in a VectorDB and queries the top-K most \"salient\" interactions every type it is called.\n",
|
|
|
|
"`VectorStoreRetrieverMemory` stores memories in a VectorDB and queries the top-K most \"salient\" docs every time it is called.\n",
|
|
|
|
"\n",
|
|
|
|
"\n",
|
|
|
|
"This differs from most of the other Memory classes in that "
|
|
|
|
"This differs from most of the other Memory classes in that it doesn't explicitly track the order of interactions."
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -60,13 +61,14 @@
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
"attachments": {},
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "8f4bdf92",
|
|
|
|
"id": "8f4bdf92",
|
|
|
|
"metadata": {},
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"source": [
|
|
|
|
"### Create your the VectorStoreRetrieverMemory\n",
|
|
|
|
"### Create your the VectorStoreRetrieverMemory\n",
|
|
|
|
"\n",
|
|
|
|
"\n",
|
|
|
|
"The memory object is instantiated from "
|
|
|
|
"The memory object is instantiated from any VectorStoreRetriever."
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|