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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

firn-0.2.0.tar.gz (171.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

firn-0.2.0-cp310-abi3-manylinux_2_28_x86_64.whl (52.1 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64

firn-0.2.0-cp310-abi3-manylinux_2_28_aarch64.whl (48.9 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

firn-0.2.0-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (95.9 MB view details)

Uploaded CPython 3.10+macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

Details for the file firn-0.2.0.tar.gz.

File metadata

  • Download URL: firn-0.2.0.tar.gz
  • Upload date:
  • Size: 171.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for firn-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0a1c798b1d4245429c6d37483247b6c471a3f0ec93e6a594ba330a419be34ec8
MD5 96f889c68b4ae1c73e289b4ec8a22776
BLAKE2b-256 572d0bcede700cef549a582fd3ab1e931553620531454e42445976719970222f

See more details on using hashes here.

Provenance

The following attestation bundles were made for firn-0.2.0.tar.gz:

Publisher: pypi-publish.yml on gordonmurray/firnflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file firn-0.2.0-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: firn-0.2.0-cp310-abi3-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 52.1 MB
  • Tags: CPython 3.10+, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for firn-0.2.0-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c1cb0ea7c194aba1e9130149133e5fa9a98709f65a37d5253a9896af60119005
MD5 a4015f70ee45ee101e81ead7bc423ef5
BLAKE2b-256 410964618b712c975e0c7f3f0e1d0da9bd7c9701f2565a7c4721fe7776bf0c65

See more details on using hashes here.

Provenance

The following attestation bundles were made for firn-0.2.0-cp310-abi3-manylinux_2_28_x86_64.whl:

Publisher: pypi-publish.yml on gordonmurray/firnflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file firn-0.2.0-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for firn-0.2.0-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 87272f3fd1337de8f1cec42888a5edb979040526aac7cee021ba647345506a6d
MD5 79f8e4a6b00fa16da74289ccea364543
BLAKE2b-256 81c4c8ac2dd4306689a6a3c86229babfc45087804ccdf5d45ce3b9c5a7272ab6

See more details on using hashes here.

Provenance

The following attestation bundles were made for firn-0.2.0-cp310-abi3-manylinux_2_28_aarch64.whl:

Publisher: pypi-publish.yml on gordonmurray/firnflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file firn-0.2.0-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for firn-0.2.0-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 05a1827a972e943610278447d5ef5dbd968d85ada6208ca967ed013947ae30d5
MD5 8faadf951b160303930f3d7c99a1fb44
BLAKE2b-256 30bff094d0479819d2852d9b931c859e4df4d5611d7fc88d9cc42f5674dcf370

See more details on using hashes here.

Provenance

The following attestation bundles were made for firn-0.2.0-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl:

Publisher: pypi-publish.yml on gordonmurray/firnflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page