Skip to main content

firn

Vector + full-text search on object storage, embeddable in-process. No server, no infrastructure to stand up.

import firn

db = firn.connect()                 # local ./firn_data
# ...or object storage:
# db = firn.connect(storage_url="s3://bucket",
#                   access_key=..., secret_key=...)

db.add([
    {"id": 1, "vector": [0.1, 0.2, 0.3], "text": "the quick brown fox"},
    {"id": 2, "vector": [0.4, 0.5, 0.6], "text": "a lazy dog sleeps"},
])

hits = db.search("fox")                            # full-text (BM25)
hits = db.search(vector=[0.1, 0.2, 0.3])           # nearest-neighbour
hits = db.search("fox", vector=[0.1, 0.2, 0.3])    # hybrid (fused)
hits = db.search(vector=[0.1, 0.2, 0.3], filter="id > 1")  # with a prefilter
for hit in hits:
    print(hit.id, hit.score, hit.text)

Each row carries a vector (your embedding) and optional text. Search by vector, by text, or both at once (reciprocal-rank fused). Storage is a local directory or any S3-compatible object store (AWS, Tigris, R2, MinIO, …) or GCS.

Apache-2.0. Part of Firn.

Release files for firn 0.2.2

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

Source distribution (sdist)

Source distribution for firn 0.2.2
File Size Uploaded
firn-0.2.2.tar.gz 202.6 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for firn 0.2.2
File Interpreter ABI Platform
firn-0.2.2-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details
firn-0.2.2-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details
firn-0.2.2-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl CPython 3.10 abi3 macOS 10.12+ x86-64, macOS 10.12+ universal2 (ARM64, x86-64), macOS 11.0+ ARM64 Details

Total release size: 197.5 MB

Release files / firn-0.2.2.tar.gz

Download URL firn-0.2.2.tar.gz
Size 202.6 kB
Tags Source
SHA-256 checksum
How to use checksums
50abf815cdd07987dcf5df49029c7ac4b0d6f243d34a0ab8d44a03b1ab80d6aa
BLAKE2b-256 checksum
How to use checksums
e06dd66cab686db85a8d61ca0b06ae8e37d269213e138066d0c52bef3ef84933
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.

Transparency log

Release files / firn-0.2.2-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL firn-0.2.2-cp310-abi3-manylinux_2_28_x86_64.whl
Size 52.2 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
2ea645c420855cc34a9e299dd67ee1ee43b35899fa5732cf464ae09fd43de392
BLAKE2b-256 checksum
How to use checksums
17a05151477b7511b6d26875bcd32502f0ea6473f90b7983dcc55446f9ac4c74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.

Transparency log

Release files / firn-0.2.2-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL firn-0.2.2-cp310-abi3-manylinux_2_28_aarch64.whl
Size 49.0 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
77d150fe1d6658db97501db443469df3964137a0464dd81f061f3e360a06f5f4
BLAKE2b-256 checksum
How to use checksums
db32fec21dadd2fc191ad4bc324f6a007c95547eb99445f2d77a6edd2f9e0332
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.

Transparency log

Release files / firn-0.2.2-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl

Download URL firn-0.2.2-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Size 96.1 MB
Tags CPython 3.10 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d9e291dff3f91c3f5e759cb7a87c6e92116073ad1e0fa3a453ab13275a8f4cb3
BLAKE2b-256 checksum
How to use checksums
a85e188b2b540b31bb1d9a9784cf68c8a68c43b875c5b69d244901e7a1789813
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.3

4 release files

This release

0.2.2 This release

4 release files

0.2.1

4 release files

0.2.0

4 release files

0.1.0

4 release files

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