Skip to main content

bicardinal - multimodal retrieval engine

License PyPI version

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

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bicardinal 0.0.10
File Size Uploaded Provenance Actions
bicardinal-0.0.10.tar.gz 1.2 MB Without provenance Details for bicardinal-0.0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bicardinal 0.0.10
File Interpreter ABI Platform Actions
bicardinal-0.0.10-py3-none-any.whl Python 3 none any Details for bicardinal-0.0.10-py3-none-any.whl

Total release size: 2.0 MB

Release files / bicardinal-0.0.10.tar.gz

Download URL bicardinal-0.0.10.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
b5e1ea270604ca254fd1629836a6952d115ee240b277d331c9eee1349b93bae1
BLAKE2b-256 checksum
How to use checksums
dfd92f608de27130787915162a3a1735bbf54bfe7044b723a64f8a3f4d329a35
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.10-py3-none-any.whl

Download URL bicardinal-0.0.10-py3-none-any.whl
Size 784.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
869855de443f4209a97f7f46307eb255bca6e25c7ecc03a4c8fd1b0c67c619a1
BLAKE2b-256 checksum
How to use checksums
fe4aa9f9d256c64e9444871419f22bb2bfdeeeb42ce01e3746781e0b66ee0a01
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.10

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page