Skip to main content

LlamaIndex Managed Integration: PostgresML

PostgresML provides an all in one platform for production ready RAG applications.

Setup

First, make sure you have the latest LlamaIndex version installed and a connection string to your PostgresML database.

If you don't already have a connection string, you can get one on postgresml.org.

pip install llama-index-indices-managed-postgresml

Usage

Getting started is easy!

import os

os.environ[
    "PGML_DATABASE_URL"
] = "..."  # Can provide in the environment or constructor later on

from llama_index.core import Document
from llama_index.indices.managed.postgresml import PostgresMLIndex

# Create an index
index = PostgresMLIndex.from_documents(
    "llama-index-test-1", [Document.example()]
)

# Connect to an index
index = PostgresMLIndex("llama-index-test-1")

You can use the index as a retriever

# Create a retriever from an index
retriever = index.as_retriever()

results = retriever.retrieve("What managed index is the best?")
print(results)

You can also use the index as a query engine

# Create an engine from an index
query_engine = index.as_query_engine()

response = retriever.retrieve("What managed index is the best?")
print(response)

Metadata

Release files for llama-index-indices-managed-postgresml 0.7.0

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

Source distribution (sdist)

Source distribution for llama-index-indices-managed-postgresml 0.7.0
File Size Uploaded Provenance Actions
llama_index_indices_managed_postgresml-0.7.0.tar.gz 7.3 kB Without provenance Details for llama_index_indices_managed_postgresml-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-indices-managed-postgresml 0.7.0
File Interpreter ABI Platform Actions
llama_index_indices_managed_postgresml-0.7.0-py3-none-any.whl Python 3 none any Details for llama_index_indices_managed_postgresml-0.7.0-py3-none-any.whl

Total release size: 15.5 kB

Release files / llama_index_indices_managed_postgresml-0.7.0.tar.gz

Download URL llama_index_indices_managed_postgresml-0.7.0.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7fcebd33a200186b6a65caea30a2f38681220e98c63de7f84ce604f7b95bf872
BLAKE2b-256 checksum
How to use checksums
7f5d32de05fc3a2d742696ab36596c91377ee800b5232f65582a87e49cd4e9fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / llama_index_indices_managed_postgresml-0.7.0-py3-none-any.whl

Download URL llama_index_indices_managed_postgresml-0.7.0-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d1349f3f922bddab5cedcdbc2cdcaf5c97d1ff99db5b9c1022ab4980f1c9ee9
BLAKE2b-256 checksum
How to use checksums
d8458a5b06027c27e364cddd9eee01ed8b5905ff06d21e61df0033aaf597fea5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for llama-index-indices-managed-postgresml 0.7.0

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.

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