docs: rm unnecessary imports (#16876)

- **Description:** optimize the document of memory usage
  - **Issue:** it lose some install guide
pull/16822/head
Zeeland 8 months ago committed by GitHub
parent 30af711c34
commit 4986e7227e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -274,8 +274,6 @@
"metadata": {},
"outputs": [],
"source": [
"from typing import Optional\n",
"\n",
"from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder\n",
"from langchain_core.runnables.history import RunnableWithMessageHistory\n",
"from langchain_openai import ChatOpenAI"

@ -133,8 +133,6 @@
"metadata": {},
"outputs": [],
"source": [
"from typing import Optional\n",
"\n",
"from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder\n",
"from langchain_core.runnables.history import RunnableWithMessageHistory\n",
"from langchain_openai import ChatOpenAI"

@ -16,6 +16,12 @@ To get started, [sign in with Github on the Remembrall platform](https://remembr
Any request that you send with the modified `openai_api_base` (see below) and Remembrall API key will automatically be tracked in the Remembrall dashboard. You **never** have to share your OpenAI key with our platform and this information is **never** stored by the Remembrall systems.
To do this, we need to install the following dependencies:
```bash
pip install -U langchain-openai
```
### Enable Long Term Memory
In addition to setting the `openai_api_base` and Remembrall API key via `x-gp-api-key`, you should specify a UID to maintain memory for. This will usually be a unique user identifier (like email).

@ -26,7 +26,7 @@
"The integration lives in the `langchain-community` package, so we need to install that. We also need to install the `SQLAlchemy` package.\n",
"\n",
"```bash\n",
"pip install -U langchain-community SQLAlchemy\n",
"pip install -U langchain-community SQLAlchemy langchain-openai\n",
"```"
]
},
@ -71,10 +71,7 @@
"end_time": "2023-08-28T10:04:38.077748Z",
"start_time": "2023-08-28T10:04:36.105894Z"
},
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"outputs": [],
"source": [
@ -97,10 +94,7 @@
"end_time": "2023-08-28T10:04:38.929396Z",
"start_time": "2023-08-28T10:04:38.915727Z"
},
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"outputs": [
{
@ -137,8 +131,6 @@
"metadata": {},
"outputs": [],
"source": [
"from typing import Optional\n",
"\n",
"from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder\n",
"from langchain_core.runnables.history import RunnableWithMessageHistory\n",
"from langchain_openai import ChatOpenAI"

@ -119,8 +119,6 @@
"metadata": {},
"outputs": [],
"source": [
"from typing import Optional\n",
"\n",
"from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder\n",
"from langchain_core.runnables.history import RunnableWithMessageHistory\n",
"from langchain_openai import ChatOpenAI"

Loading…
Cancel
Save