Skip to content
Snippets Groups Projects
Unverified Commit 922d5605 authored by Uğur Çekmez's avatar Uğur Çekmez Committed by GitHub
Browse files

grammatical fixes on chat_stores.md (#12012)

parent ef54ac6b
No related branches found
No related tags found
No related merge requests found
# Chat Stores # Chat Stores
A chat store serves as a centralized interface to store your chat history. Chat history is unique to other storage formats, since the order of messages is important to maintining an overall conversation. A chat store serves as a centralized interface to store your chat history. Chat history is unique compared to other storage formats, since the order of messages is important for maintaining an overall conversation.
Chat stores can be organize sequences of chat messages by keys (like `user_ids` or other unique identifiable strings), and handle `delete`, `insert`, and `get` operations. Chat stores can organize sequences of chat messages by keys (like `user_ids` or other unique identifiable strings), and handle `delete`, `insert`, and `get` operations.
## SimpleChatStore ## SimpleChatStore
The most basic chat store is `SimpleChatStore`, which stores messages in memory and saves to/from disk, or can be serlized and stored somewhere else. The most basic chat store is `SimpleChatStore`, which stores messages in memory and can save to/from disk, or can be serialized and stored elsewhere.
Typically, you will insansiate a chat store and give it to a memory module. Memory modules that use chat stores will default to using `SimpleChatStore` if not provided. Typically, you will instantiate a chat store and give it to a memory module. Memory modules that use chat stores will default to using `SimpleChatStore` if not provided.
```python ```python
from llama_index.core.storage.chat_store import SimpleChatStore from llama_index.core.storage.chat_store import SimpleChatStore
...@@ -49,7 +49,7 @@ loaded_chat_store = SimpleChatStore.parse_raw(chat_store_string) ...@@ -49,7 +49,7 @@ loaded_chat_store = SimpleChatStore.parse_raw(chat_store_string)
## RedisChatStore ## RedisChatStore
Using `RedisChatStore`, you can store your chat history remotely, without having to worry abouyt manually persisting and loading the chat history. Using `RedisChatStore`, you can store your chat history remotely, without having to worry about manually persisting and loading the chat history.
```python ```python
from llama_index.storage.chat_store.redis import RedisChatStore from llama_index.storage.chat_store.redis import RedisChatStore
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment