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.7.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.7-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gesserit-0.2.7.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.7.tar.gz
Algorithm Hash digest
SHA256 f21b7bb1417746badf6bcd50afa2a13736603a7d4c870cb53559998e1d23d24e
MD5 b9c1588483b74ff8aff153ae65a68f83
BLAKE2b-256 aa1088d36fe62cf2a7652b8ae63a4aa57ac8e0557d7a1a792dbcfe8edda835d4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for gesserit-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3fff1403cfd79b5ce82fb23e212a784758aa9186587a8d8187cc0b167565e353
MD5 1be6719c78357050f9cd395e723e9558
BLAKE2b-256 ac810e86bc67e4432a6ddccf51c1cc0bdb458e6a02e9f1be395e3544b7e044cf

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