bicardinal
Multimodal retrieval engine. Drop in PDFs, Word docs, spreadsheets, images, audio, or plain text, bicardinal extracts, summarizes, embeds, and indexes them so you can search across everything with one call.
Install
pip install bicardinal
Set your provider keys (used for OCR, vision, transcription, and summaries):
export OPENAI_API_KEY=sk-...
export MISTRAL_API_KEY=...
Deadly simple
from pathlib import Path
from bicardinal import Bicardinal
store = Bicardinal("./data") # a home for your collections
col = store.create("docs") # make a collection
col.init("build") # open it for ingestion
# Throw any file at it, pdf, docx, xlsx, csv, png, mp3, txt...
for path in Path("./my_files").glob("*"):
col.ingest(path.name, path.read_bytes())
col.finalize() # build the index
# Search across everything
for hit in col.search("quarterly revenue growth", k=5):
print(f"{hit.score:.3f} {hit.filename}#{hit.chunk_index} {hit.raw_text[:80]}")
col.close()
That's it. No pipelines to wire, no embedding code to write.
A little more
# Rank whole files by relevance
for f in col.most_similar_files("budget forecast", k=3):
print(f.score, f.filename)
# Search within a single document
col.search_in_file("conclusion", "report.pdf", k=5)
# Reopen later, it's all on disk
col = store.open("docs")
See examples/quickstart.py for a fuller tour.
License
Apache-2.0
Metadata
Release files for bicardinal 0.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bicardinal-0.0.11.tar.gz | 1.2 MB | Without provenance | Details for bicardinal-0.0.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bicardinal-0.0.11-py3-none-any.whl | Python 3 | none | any | Details for bicardinal-0.0.11-py3-none-any.whl |
Total release size: 2.0 MB
Release files / bicardinal-0.0.11.tar.gz
| Download URL | bicardinal-0.0.11.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e15ccc4667969b13c02b76c10342fd42fc36bdc341a13527c7b2bbf4b373369
|
|
BLAKE2b-256 checksum How to use checksums |
9985a622325d72c542f817ce6d57254b745f7435e9a04a164aabdd620cf071fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / bicardinal-0.0.11-py3-none-any.whl
| Download URL | bicardinal-0.0.11-py3-none-any.whl |
|---|---|
| Size | 785.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
43bd7cc889dde4bb6dffd76495debbd909144725e63efc9ec3be51c4fcc27894
|
|
BLAKE2b-256 checksum How to use checksums |
0bd8d36c59fa0d027155fd65a2e1475f3f8b4ecdb2c9bb8ab11cdc14becdaffe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for bicardinal 0.0.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.