Name | llama-index-storage-chat-store-postgres JSON |
Version |
0.1.0
JSON |
| download |
home_page | None |
Summary | llama-index storage-chat-store postgres integration |
upload_time | 2024-10-16 22:02:05 |
maintainer | None |
docs_url | None |
author | Your Name |
requires_python | <4.0,>=3.8.1 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# LlamaIndex Chat_Store Integration: Postgres Chat Store
## Installation
`pip install llama-index-storage-chat-store-postgres`
## Usage
Using `PostgresChatStore`, you can store your chat history remotely, without having to worry about manually persisting and loading the chat history.
```python
from llama_index.storage.chat_store.postgres import PostgresChatStore
from llama_index.core.memory import ChatMemoryBuffer
chat_store = PostgresChatStore.from_uri(
uri="postgresql+asyncpg://postgres:password@127.0.0.1:5432/database",
)
chat_memory = ChatMemoryBuffer.from_defaults(
token_limit=3000,
chat_store=chat_store,
chat_store_key="user1",
)
```
Raw data
{
"_id": null,
"home_page": null,
"name": "llama-index-storage-chat-store-postgres",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8.1",
"maintainer_email": null,
"keywords": null,
"author": "Your Name",
"author_email": "you@example.com",
"download_url": "https://files.pythonhosted.org/packages/42/bf/11b7a6fab191c413799d35a50abeb99bbc1e18762bbdce6d76aebc0a2e52/llama_index_storage_chat_store_postgres-0.1.0.tar.gz",
"platform": null,
"description": "# LlamaIndex Chat_Store Integration: Postgres Chat Store\n\n## Installation\n\n`pip install llama-index-storage-chat-store-postgres`\n\n## Usage\n\nUsing `PostgresChatStore`, you can store your chat history remotely, without having to worry about manually persisting and loading the chat history.\n\n```python\nfrom llama_index.storage.chat_store.postgres import PostgresChatStore\nfrom llama_index.core.memory import ChatMemoryBuffer\n\nchat_store = PostgresChatStore.from_uri(\n uri=\"postgresql+asyncpg://postgres:password@127.0.0.1:5432/database\",\n)\n\nchat_memory = ChatMemoryBuffer.from_defaults(\n token_limit=3000,\n chat_store=chat_store,\n chat_store_key=\"user1\",\n)\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "llama-index storage-chat-store postgres integration",
"version": "0.1.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8931c60148a264ceb71fc922aa91b0ee9be9518083cab4fcc733dda58ff7da79",
"md5": "d4a6d40253855b8bc5daf7504e981098",
"sha256": "045fcef487b5fd2c9cc6104b0f38b8f9b58c70a3f8c7d7c3919d056571023f90"
},
"downloads": -1,
"filename": "llama_index_storage_chat_store_postgres-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d4a6d40253855b8bc5daf7504e981098",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8.1",
"size": 4814,
"upload_time": "2024-10-16T22:02:04",
"upload_time_iso_8601": "2024-10-16T22:02:04.586659Z",
"url": "https://files.pythonhosted.org/packages/89/31/c60148a264ceb71fc922aa91b0ee9be9518083cab4fcc733dda58ff7da79/llama_index_storage_chat_store_postgres-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "42bf11b7a6fab191c413799d35a50abeb99bbc1e18762bbdce6d76aebc0a2e52",
"md5": "9bfae4d5866eddeeccabdaf8beb77c87",
"sha256": "100054af9339d2532ba09af1a141de5b63b26c9883f69909b95327d70311a939"
},
"downloads": -1,
"filename": "llama_index_storage_chat_store_postgres-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "9bfae4d5866eddeeccabdaf8beb77c87",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8.1",
"size": 4369,
"upload_time": "2024-10-16T22:02:05",
"upload_time_iso_8601": "2024-10-16T22:02:05.789966Z",
"url": "https://files.pythonhosted.org/packages/42/bf/11b7a6fab191c413799d35a50abeb99bbc1e18762bbdce6d76aebc0a2e52/llama_index_storage_chat_store_postgres-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-16 22:02:05",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-storage-chat-store-postgres"
}