Skip to main content

LlamaIndex Callbacks Integration: UpTrain

UpTrain (github || website || docs) is an open-source platform to evaluate and improve Generative AI applications. It provides grades for 20+ preconfigured checks (covering language, code, embedding use cases), performs root cause analysis on failure cases and gives insights on how to resolve them. Once you add UpTrainCallbackHandler to your existing LlamaIndex pipeline, it will automatically capture the right data, run evaluations and display the results in the output.

More details on UpTrain's evaluations can be found here.

Selected operators from the LlamaIndex pipeline are highlighted for demonstration:

1. RAG Query Engine Evaluations:

The RAG query engine plays a crucial role in retrieving context and generating responses. To ensure its performance and response quality, we conduct the following evaluations:

  • Context Relevance: Determines if the context extracted from the query is relevant to the response.
  • Factual Accuracy: Assesses if the LLM is hallucinating or providing incorrect information.
  • Response Completeness: Checks if the response contains all the information requested by the query.

2. Sub-Question Query Generation Evaluation:

The SubQuestionQueryGeneration operator decomposes a question into sub-questions, generating responses for each using a RAG query engine. To evaluate the performance of SubQuery module, we add another check as well as run the above three for all the sub-queries:

  • Sub Query Completeness: Assures that the sub-questions accurately and comprehensively cover the original query.

3. Re-Ranking Evaluations:

Re-ranking involves reordering nodes based on relevance to the query and choosing the top n nodes. Different evaluations are performed based on the number of nodes returned after re-ranking.

a. Same Number of Nodes

  • Context Reranking: Checks if the order of re-ranked nodes is more relevant to the query than the original order.

b. Different Number of Nodes:

  • Context Conciseness: Examines whether the reduced number of nodes still provides all the required information.

These evaluations collectively ensure the robustness and effectiveness of the RAG query engine, SubQuestionQueryGeneration operator, and the re-ranking process in the LlamaIndex pipeline.

Metadata

Release files for llama-index-callbacks-uptrain 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-callbacks-uptrain 0.7.0
File Size Uploaded Provenance Actions
llama_index_callbacks_uptrain-0.7.0.tar.gz 17.4 kB Without provenance Details for llama_index_callbacks_uptrain-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-callbacks-uptrain 0.7.0
File Interpreter ABI Platform Actions
llama_index_callbacks_uptrain-0.7.0-py3-none-any.whl Python 3 none any Details for llama_index_callbacks_uptrain-0.7.0-py3-none-any.whl

Total release size: 35.0 kB

Release files / llama_index_callbacks_uptrain-0.7.0.tar.gz

Download URL llama_index_callbacks_uptrain-0.7.0.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3663f37be036c38a08a5580dcb188a1a09eee57f1d4d4b5c5314765dba46caec
BLAKE2b-256 checksum
How to use checksums
25f86721c2c75663701d3b385ce2ae0b6d9d6380c7691cf5729bcfb770bb9d75
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_callbacks_uptrain-0.7.0-py3-none-any.whl

Download URL llama_index_callbacks_uptrain-0.7.0-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06b742b7b2dadd7b473b41e3d12fbf97d53b749875e3f1f449883ff514d3da2d
BLAKE2b-256 checksum
How to use checksums
56f40f644b5489f492ac81029fa95740777c09caea105e847a4e4625ac81ecf4
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-callbacks-uptrain 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