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 example.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.

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.2.6.tar.gz (31.6 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.2.6-py3-none-any.whl (34.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gesserit-0.2.6.tar.gz
  • Upload date:
  • Size: 31.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.2

File hashes

Hashes for gesserit-0.2.6.tar.gz
Algorithm Hash digest
SHA256 5144a6267de08ce5c7aa1b7aab0ae9f18a9c57800d5101608a5b8438c99d0bb3
MD5 45e1c15e23b334e1656634ea9364b56b
BLAKE2b-256 ce9f34a5b04f846a685e8cd2ce2e95cbb474d84df5a2c3971de4f61b0ebd7b38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gesserit-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 34.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.2

File hashes

Hashes for gesserit-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 316aa6d99d1ac42df68084b7f3410bc619c8c0b02415c5c1b87ecaa0dad625cf
MD5 97017a2b42dae040919fba3b4f2d378e
BLAKE2b-256 4a890987286845c31d727c7b04cf3501647946337cc908ab6ba8269a011f5d65

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