Skip to content

Commit 93f3640

Browse files
renames session manager in .md files
1 parent 7990296 commit 93f3640

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -264,20 +264,20 @@ print(response[0]["response"])
264264
265265
> Learn more about [semantic caching]((https://docs.redisvl.com/en/stable/user_guide/03_llmcache.html)) for LLMs.
266266
267-
### LLM Session Management
267+
### LLM Memory History
268268
269-
Improve personalization and accuracy of LLM responses by providing user chat history as context. Manage access to the session data using recency or relevancy, *powered by vector search* with the [`SemanticSessionManager`](https://docs.redisvl.com/en/stable/api/session_manager.html).
269+
Improve personalization and accuracy of LLM responses by providing user message history as context. Manage access to message history data using recency or relevancy, *powered by vector search* with the [`MessageHistory`](https://docs.redisvl.com/en/stable/api/message_history.html).
270270
271271
```python
272-
from redisvl.extensions.session_manager import SemanticSessionManager
272+
from redisvl.extensions.message_history import SemanticMessageHistory
273273
274-
session = SemanticSessionManager(
274+
history = SemanticMessageHistory(
275275
name="my-session",
276276
redis_url="redis://localhost:6379",
277277
distance_threshold=0.7
278278
)
279279
280-
session.add_messages([
280+
history.add_messages([
281281
{"role": "user", "content": "hello, how are you?"},
282282
{"role": "assistant", "content": "I'm doing fine, thanks."},
283283
{"role": "user", "content": "what is the weather going to be today?"},
@@ -286,19 +286,19 @@ session.add_messages([
286286
```
287287
Get recent chat history:
288288
```python
289-
session.get_recent(top_k=1)
289+
history.get_recent(top_k=1)
290290
```
291291
```stdout
292292
>>> [{"role": "assistant", "content": "I don't know"}]
293293
```
294294
Get relevant chat history (powered by vector search):
295295
```python
296-
session.get_relevant("weather", top_k=1)
296+
history.get_relevant("weather", top_k=1)
297297
```
298298
```stdout
299299
>>> [{"role": "user", "content": "what is the weather going to be today?"}]
300300
```
301-
> Learn more about [LLM session management]((https://docs.redisvl.com/en/stable/user_guide/07_session_manager.html)).
301+
> Learn more about [LLM message history]((https://docs.redisvl.com/en/stable/user_guide/07_message_history.html)).
302302
303303
304304
### LLM Semantic Routing

docs/api/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ filter
2020
vectorizer
2121
reranker
2222
cache
23-
session_manager
23+
message_history
2424
router
2525
threshold_optimizer
2626
```

docs/user_guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ User guides provide helpful resources for using RedisVL and its different compon
1919
04_vectorizers
2020
05_hash_vs_json
2121
06_rerankers
22-
07_session_manager
22+
07_message_history
2323
08_semantic_router
2424
09_threshold_optimization
2525
release_guide/index

0 commit comments

Comments
 (0)