ltr-bert-sir-client
Python client for the ltr-bert-sir ELSIE API (sir-elsie Space).
Install
pip install ltr-bert-sir-client
Usage
from ltr_bert_sir_client import SirClient
with SirClient() as sir:
print(sir.health())
hits = sir.search({"query": "alice rabbit hole", "mode": "blend", "k": 10})
print(hits["hits"])
UI demo files:
from ltr_bert_sir_client.ui import write_demo
write_demo("./demo", "http://127.0.0.1:8000")
Local API:
SirClient("http://127.0.0.1:8000")
Development
python3 -m venv .venv
.venv/bin/pip install -e ".[dev]"
.venv/bin/pytest -q
.venv/bin/python -m build
Notebooks
See notebooks/quickstart.py and notebooks/quickstart.ipynb.
Repository layout
ltr-bert-sir-client-py/
├── .github/workflows/ci.yml
├── src/ltr_bert_sir_client/
│ ├── client.py
│ ├── types.py
│ ├── format.py
│ ├── hints.py
│ ├── collections.py
│ └── ui/
├── tests/test_client.py
├── notebooks/
├── pyproject.toml
└── LICENSE
Publish
python -m build
twine upload dist/*
License: Apache-2.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ltr_bert_sir_client-0.2.0.tar.gz
(12.2 kB
view details)
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 ltr_bert_sir_client-0.2.0.tar.gz.
File metadata
- Download URL: ltr_bert_sir_client-0.2.0.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6913f21610fd534cd34ddf9724bda0586e7c86a43e3bbfa6a9a31988b1d7ee19
|
|
| MD5 |
9037ce2d322beacf723a3ef232bc49b1
|
|
| BLAKE2b-256 |
df4be7b956c1a2f5aa0c5c55f72380e8503fbbce5f1db7f57c1b1b7e85785821
|
File details
Details for the file ltr_bert_sir_client-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ltr_bert_sir_client-0.2.0-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec02f0413af7fce0852c628d311d42e785efbf98b844e39cb3ffa2219317370b
|
|
| MD5 |
89beb6f86bb68a4c8a5cab432b13ded9
|
|
| BLAKE2b-256 |
215955dc8780852d6fa4297682d1dc10058f62401648d5aef3716f5e5aa5a56b
|