Skip to main content

UpTrain Callback for performing evaluations on the LlamaIndex pipeline

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_callbacks_uptrain-0.6.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_callbacks_uptrain-0.6.0-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_callbacks_uptrain-0.6.0.tar.gz.

File metadata

  • Download URL: llama_index_callbacks_uptrain-0.6.0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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}

File hashes

Hashes for llama_index_callbacks_uptrain-0.6.0.tar.gz
Algorithm Hash digest
SHA256 b449c83db13e64e969e7a034d9d279164fbeea13ef62e9d1723e9649d3309c0a
MD5 58925693dcb3985c728d414a137cca88
BLAKE2b-256 b1a7ce3449b0d6e52549ab39d4916b3d8a7cf4308325d86ac5b5ee407159afb7

See more details on using hashes here.

File details

Details for the file llama_index_callbacks_uptrain-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: llama_index_callbacks_uptrain-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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}

File hashes

Hashes for llama_index_callbacks_uptrain-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 387c061c2e8861e3ba540f9e98d8ab7cff973e877d8b2382c2b0f8174685bdd0
MD5 fd7401c2aceda46a6461ba20c0a1cdef
BLAKE2b-256 327d8df968779c97dceaa456c35b37aa511e3b7c786ac1091b6167ad3efaeebf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page