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.1.tar.gz (178.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.1-cp310-abi3-manylinux_2_28_x86_64.whl (52.2 MB view details)

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

firn-0.2.1-cp310-abi3-manylinux_2_28_aarch64.whl (49.0 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

firn-0.2.1-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (96.0 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.1.tar.gz.

File metadata

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

File hashes

Hashes for firn-0.2.1.tar.gz
Algorithm Hash digest
SHA256 e3455a8c41688e4907a94fb27791df7d4e8f4ef9fd9659f7d11b49af923bdd1a
MD5 f0d1086dac4130f733e9f582c161ef6a
BLAKE2b-256 e892e7cc07001e511e526f4c137df3b202f8cd104cc8f4cf45f8e27df5b0ea6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for firn-0.2.1.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.1-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: firn-0.2.1-cp310-abi3-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 52.2 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.14

File hashes

Hashes for firn-0.2.1-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 57ddea42ed145b89b661477fa1d9e519ac7e135592792ff191d8728c881ac5a4
MD5 497edb3d046c1e0351d4ed6c8bbf6d45
BLAKE2b-256 723b7c247dd21c9460a58ff4f2f8c347482677fabb935b6e379d65723f56c0b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for firn-0.2.1-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.1-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for firn-0.2.1-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7447712bbf55e175d7ea4b606343c720491b29b3b80940b3e8a0a1a47b92fa13
MD5 25669d34b5cd827b33bfa782b0d53a9d
BLAKE2b-256 792042394e89ce43af56a96ab0a6daded3c6cd3bc33e8bdfe94022c1886afb13

See more details on using hashes here.

Provenance

The following attestation bundles were made for firn-0.2.1-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.1-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.1-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 77cf9dcca159ba6b1f9bbb9a45a1d58c88ed54f51a2116492570c9df8a1cf0e3
MD5 00d18f73a0a9459d9bb1445a7fb56f11
BLAKE2b-256 adb1b75a031163afb147bbb40859b6f23b02d403cf7d98cc5f9f7b6b5251c00e

See more details on using hashes here.

Provenance

The following attestation bundles were made for firn-0.2.1-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