livekit-memory
Document ingestion engine. Chunks and indexes knowledge sources into Qdrant to power LiveKit agent's contextual retrieval.
Installation
pip install livekit-memory
Usage
CLI
Ingest documents:
# Ingest a markdown file to Qdrant Cloud
livekit-memory ingest document.md --type markdown --collection my-docs \
--url https://your-cluster.qdrant.io --api-key $QDRANT_API_KEY
# Ingest to localhost Qdrant (no API key required)
livekit-memory ingest --url localhost --collection my-docs --file document.md --type markdown
Query documents:
# Query from Qdrant Cloud
livekit-memory query --url https://your-cluster.qdrant.io --api-key $QDRANT_API_KEY \
--collection my-docs --query "What is the main topic?"
# Query from localhost
livekit-memory query --url localhost --collection my-docs --query "What is the main topic?"
Migrate between Qdrant instances:
# Migrate from cloud to localhost
livekit-memory migrate \
--source-url https://your-cluster.qdrant.io --source-api-key $QDRANT_API_KEY \
--dest-url localhost \
--collection my-docs
Python API
import asyncio
from livekit_memory import FastRAGPipeline, RAGConfig, QdrantConfig, EmbeddingConfig
async def main():
config = RAGConfig(
qdrant=QdrantConfig(
url="localhost",
collection_name="my-docs",
),
embedding=EmbeddingConfig(
model_name="BAAI/bge-small-en-v1.5",
),
)
pipeline = FastRAGPipeline(config)
await pipeline.initialize_collection()
# Ingest documents
await pipeline.ingest_documents(["Document content here..."])
# Retrieve context
result = await pipeline.retrieve_context("What is this about?", top_k=5)
print(result.top_result)
asyncio.run(main())
License
Apache-2.0
Metadata
Release files for livekit-memory 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| livekit_memory-0.2.5.tar.gz | 18.4 kB | Without provenance | Details for livekit_memory-0.2.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| livekit_memory-0.2.5-py3-none-any.whl | Python 3 | none | any | Details for livekit_memory-0.2.5-py3-none-any.whl |
Total release size: 41.5 kB
Release files / livekit_memory-0.2.5.tar.gz
| Download URL | livekit_memory-0.2.5.tar.gz |
|---|---|
| Size | 18.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
067f0f1113a0c7d4bba3a9b42b37f4ae6f62178ad2a5628d2b172be08a788e6f
|
|
BLAKE2b-256 checksum How to use checksums |
809a39018da1cc4efd428a567eddf7bdfa70fce3c5a2c4bcd57dd82d4d2651e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.1
|
Release files / livekit_memory-0.2.5-py3-none-any.whl
| Download URL | livekit_memory-0.2.5-py3-none-any.whl |
|---|---|
| Size | 23.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf4c534b184a21749a9bc729b944a65d5f12bb711ec0a0a82e7d2806a673f027
|
|
BLAKE2b-256 checksum How to use checksums |
22d6075b68bed8b615b07850fa9a9dd11324fe556229fcde3e2fcb100a8cc426
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.1
|
Security for livekit-memory 0.2.5
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.