Inspect retrieval results
Project description
Gesserit
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:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gesserit-0.2.9.tar.gz.
File metadata
- Download URL: gesserit-0.2.9.tar.gz
- Upload date:
- Size: 31.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcd5387ec300372befa20f3227758445f2cc5541b8c90420ab7df54870d1f9dc
|
|
| MD5 |
5e291348556b4989e892ce8036372dd4
|
|
| BLAKE2b-256 |
ebaa5dedcdce51b90c268a07f705f24c34982e401ca8af70ffd8c9e75ba45313
|
File details
Details for the file gesserit-0.2.9-py3-none-any.whl.
File metadata
- Download URL: gesserit-0.2.9-py3-none-any.whl
- Upload date:
- Size: 32.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1feca0dddc7541245caa892298a9cb9c7b18cba096c7c2eb722ede2ca1330d27
|
|
| MD5 |
0e4879788ca6154afab1a8a878257286
|
|
| BLAKE2b-256 |
842c2151ec4f172053890f9353263f5dadcab40a051317baca0f208973e93086
|