Skip to main content

Inspect retrieval results

Project description

Gesserit

drawing

A tiny utility to inspect retrieval results.

Installation

Install gesserit from PyPI using your favorite package manager:

pip install gesserit
# or
uv add gesserit

Usage

Create a search function that returns a list of SearchItem objects, then launch the web UI. Any typed parameters in your search function will be displayed as inputs in the UI:

from gesserit import Gesserit, SearchItem

def search_function(param_1: str, param_2: int = 10, param_3: bool = False):
    # Your search implementation here
    return [
        SearchItem(text="chunk text 1", metadata={"id": "1"}), 
        SearchItem(text="chunk text 2", metadata={"id": "2"})
    ]

app = Gesserit(search_function=search_function)
app.run()  # Accepts any uvicorn parameters

BEIR example

Run uv run examples/beir_nfcorpus.py to see a simple example using gesserit to inspect retrieval results. This example demonstrates text search on the NFCorpus dataset using LanceDB full-text search.
UI looks like this:

BEIR example

Image Search Example

Run uv run examples/clip.py to see a simple example using gesserit to inspect image search results. This example demonstrates image search on the Mini-ImageNet dataset using CLIP. UI looks like this:

Image Search Example

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

gesserit-0.3.1.tar.gz (31.9 kB view details)

Uploaded Source

Built Distribution

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

gesserit-0.3.1-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

Details for the file gesserit-0.3.1.tar.gz.

File metadata

  • Download URL: gesserit-0.3.1.tar.gz
  • Upload date:
  • Size: 31.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.20

File hashes

Hashes for gesserit-0.3.1.tar.gz
Algorithm Hash digest
SHA256 a2f28f7610e5130b533c20ebec2c2bb13e9b011b08eac7824652b1697fb18a1a
MD5 2745dcb06c09bf010e337690379ab14f
BLAKE2b-256 feeaf8037112a5ee3bc6ef0c6ad349c2d08f71ed65bbd4ab0374fe2637a6fe4f

See more details on using hashes here.

File details

Details for the file gesserit-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: gesserit-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 32.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.20

File hashes

Hashes for gesserit-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d772ee621d7babf72db26bab226c97a4549020aa1dcd9a281382b3caa467e525
MD5 1c728bcb539433996c6ea414620b7d48
BLAKE2b-256 f8caa1139dbcbe839f08dd079a506946be34dcaa9e36fe67fbf7ab4f49858f29

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