Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ppx-llamaindex

LlamaIndex integration for the Preference Profile Exchange (PPX).

Install

pip install ppx-llamaindex

Requires Python 3.11+. Published version: 0.1.0a1 (PyPI).

Alpha, tracking a draft specification. Expect breaking changes. The version is 0.1.0a1 on PyPI and 0.1.0-alpha.1 on npm — the same release in each ecosystem's required format.

Load claims as Documents

from ppx_client import PpxClient
from ppx_llamaindex import PpxReader
from llama_index.core import VectorStoreIndex

client = PpxClient("https://api.provider.app")
reader = PpxReader(client, grant_token=my_grant_token,
                   effective_kwargs={"requested_namespaces": ["fragrance"]})
docs = reader.load_data()

index = VectorStoreIndex.from_documents(docs)
query = index.as_query_engine().query("What scent profile suits this user?")

Use as a tool in an agent

from llama_index.core.agent import ReActAgent
from llama_index.llms.openai import OpenAI
from ppx_llamaindex import ppx_preference_tool

tool = ppx_preference_tool(client, grant_token=my_grant_token)
agent = ReActAgent.from_tools([tool], llm=OpenAI(model="gpt-4o-mini"))
agent.chat("Recommend a trip based on my core preferences.")

License

Apache-2.0.

Metadata

Release files for ppx-llamaindex 0.1.0a4

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

Source distribution (sdist)

Source distribution for ppx-llamaindex 0.1.0a4
File Size Uploaded
ppx_llamaindex-0.1.0a4.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ppx-llamaindex 0.1.0a4
File Interpreter ABI Platform
ppx_llamaindex-0.1.0a4-py3-none-any.whl Python 3 none any Details

Total release size: 15.1 kB

Release files / ppx_llamaindex-0.1.0a4.tar.gz

Download URL ppx_llamaindex-0.1.0a4.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4daa638b49ea8fe29f85fe8d73642aabf049dac5a2166a912363fcf6ac18d172
BLAKE2b-256 checksum
How to use checksums
3527e8df70c5a4ecd747cdc1eed3480caf5587dd3924c61951ae244e1b5702db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / ppx_llamaindex-0.1.0a4-py3-none-any.whl

Download URL ppx_llamaindex-0.1.0a4-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d278dd64a95d92077afeaed0a319dcd36698b88f427abc80805e2332ccbbbbd7
BLAKE2b-256 checksum
How to use checksums
2eb7d5cff91a4f0a98549490f05dbe894ad38587340cc2c3b63fdef3915226fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3
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