Skip to main content

tags: [gradio-custom-component, ] title: gradio_rag_sources short_description: A Gradio custom component to display RAG sources colorFrom: blue colorTo: yellow sdk: gradio pinned: false app_file: space.py

gradio_rag_sources

PyPI - Version Static Badge

A Gradio custom component to display RAG sources

Installation

pip install gradio_rag_sources

Usage

import gradio as gr

from gradio_rag_sources import RagSourcesTable
from gradio_rag_sources import _RagSource as RagSource


with gr.Blocks() as demo:
    sources = [
        RagSource(
            url="https://www.idris.fr",
            retrievalScore=0.45,
            rerankScore=0.9,
        ),
        RagSource(
            url="https://www.google.fr",
            retrievalScore=0.45,
            rerankScore=0.95,
        ),
        RagSource(
            url="https://www.pytorch.org",
            retrievalScore=0.55,
            rerankScore=0.8,
        ),
    ]
    RagSourcesTable(value=sources)


if __name__ == "__main__":
    demo.launch()

RagSourcesTable

Initialization

name type default description
value
Any
None None
label
str | None
None None
info
str | None
None None
show_label
bool | None
None None
container
bool
True None
scale
int | None
None None
min_width
int | None
None None
interactive
bool | None
None None
visible
bool
True None
elem_id
str | None
None None
elem_classes
list[str] | str | None
None None
render
bool
True None
key
int | str | None
None None
load_fn
Callable | None
None None
every
Timer | float | None
None None
inputs
Component | Sequence[Component] | set[Component] | None
None None

Metadata

Release files for gradio-rag-sources 0.1.3

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

Source distribution (sdist)

Source distribution for gradio-rag-sources 0.1.3
File Size Uploaded Provenance
gradio_rag_sources-0.1.3.tar.gz 44.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for gradio-rag-sources 0.1.3
File Interpreter ABI Platform
gradio_rag_sources-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 47.4 kB

Release files / gradio_rag_sources-0.1.3.tar.gz

Download URL gradio_rag_sources-0.1.3.tar.gz
Size 44.5 kB
Tags Source
SHA-256 checksum
How to use checksums
13602d7d2d7c8a4227f02e82a4b05516efc6a5ec976c0a6471a952c1021bc278
BLAKE2b-256 checksum
How to use checksums
ae546eb8c1a68ce06ea2e5430d4b45fc7d21603838bad0130543957609518a02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 11, 2025.

Transparency log

Release files / gradio_rag_sources-0.1.3-py3-none-any.whl

Download URL gradio_rag_sources-0.1.3-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80123fa783643550ac01a95ab9cf905fcf8e3bd502e267a005454523f941f117
BLAKE2b-256 checksum
How to use checksums
0cb89bdff3a8faf0cedf0573e7e69a32c0e9b08e787fd36e55796650b2433a6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 11, 2025.

Transparency log

Security for gradio-rag-sources 0.1.3

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gradio_rag_sources-0.1.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 11, 2025.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files Full provenance

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