Skip to main content

oliviadb-llamaindex

LlamaIndex memory in OliviaDB: a chat store (OliviaDBChatStore, active and archived chat history) and a memory block (OliviaDBMemoryBlock: flushed messages remembered, recalled for the latest message). Tested with llama-index-core 0.14.26.

Install

pip install oliviadb-llamaindex

Python 3.10 or later.

Example

A server from the core image (docker run -d -p 8443:8443 -v oliviadb-data:/data ghcr.io/oliviadb/oliviadb), its API key in OLIVIADB_API_KEY and its certificate in oliviadb-ca.pem (docker cp <container>:/data/tls/server.pem oliviadb-ca.pem):

import asyncio
import os

from llama_index.core.base.llms.types import ChatMessage
from llama_index.core.memory import Memory
from oliviadb import OliviaDbClient
from oliviadb_llamaindex import OliviaDBChatStore, OliviaDBMemoryBlock

client = OliviaDbClient("https://localhost:8443", api_key=os.environ["OLIVIADB_API_KEY"], ca_file="oliviadb-ca.pem")


async def main():
    memory = Memory.from_defaults(
        session_id="user-1",
        chat_store=OliviaDBChatStore(client, root=("llamaindex", "assistant")),
        memory_blocks=[OliviaDBMemoryBlock(client=client, thread="assistant")],
    )
    await memory.aput(ChatMessage(role="user", content="I play the cello on Sundays."))
    print(await memory.aget())


asyncio.run(main())

Licence: Apache-2.0.

Metadata

Release files for oliviadb-llamaindex 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oliviadb-llamaindex 0.1.2
File Size Uploaded Provenance Actions
oliviadb_llamaindex-0.1.2.tar.gz 5.2 kB With provenance Details for oliviadb_llamaindex-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for oliviadb-llamaindex 0.1.2
File Interpreter ABI Platform Actions
oliviadb_llamaindex-0.1.2-py3-none-any.whl Python 3 none any Details for oliviadb_llamaindex-0.1.2-py3-none-any.whl

Total release size: 10.3 kB

Release files / oliviadb_llamaindex-0.1.2.tar.gz

Download URL oliviadb_llamaindex-0.1.2.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0909d83e2be79ae8769bb522bd23ddda3c25f6c7b04e186fce1e3030a0a54a22
BLAKE2b-256 checksum
How to use checksums
b9a4752b1abfb9e7b50db6a1f8365f69000fbddd1edcccaff7f39ffdb2c1a0b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

Release files / oliviadb_llamaindex-0.1.2-py3-none-any.whl

Download URL oliviadb_llamaindex-0.1.2-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d32275e7ba918b2b64d5cf66fcea43aa3ccdee292d51c8126f8b5c6face5f04
BLAKE2b-256 checksum
How to use checksums
f625a0a7e4dd305c49cbb4b5050befe16a7de1f71a6fe9ca29076a31fc633933
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

Security for oliviadb-llamaindex 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for oliviadb_llamaindex-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page