Skip to main content

kensakun

Install

uv add kensakun

Use

from kensakun import Engine, Encoder

encoder = Encoder.from_model_name(
  "Snowflake/snowflake-arctic-embed-m-v1.5",
  truncation_ratio=0.5,
)
engine = Engine.init(encoder, top_n=10)

docs = ["Mannheim is amazing.", "Earth is flat."]

engine.add_documents(docs)

query = "Tell me about Mannheim."
retrieved_docs, retrieved_indexes = engine.search(query)
# -> ['Mannheim is amazing.', 'Earth is flat.'], [0, 1]

Download files

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

Source Distribution

kensakun-0.2.0.tar.gz (62.3 kB view details)

Uploaded Source

Built Distribution

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

kensakun-0.2.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kensakun-0.2.0.tar.gz
  • Upload date:
  • Size: 62.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.18

File hashes

Hashes for kensakun-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4008bdf68f12ff6fdb4368dd1a6bbeb60261444530c692677e4dfb423f8a8ed5
MD5 49d874d9c81c88def1a683e26bba2b94
BLAKE2b-256 940634bb8b5567dfd979d717ced01c11415db09d52d1ada5c4280ae1495483c8

See more details on using hashes here.

File details

Details for the file kensakun-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: kensakun-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.18

File hashes

Hashes for kensakun-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50e9331f83189ea448cf664f2e6d71d1e751e7c950a824782a7b77f02de2d0a9
MD5 4c64d61a7c2208a3fe3c8f81af66f608
BLAKE2b-256 6a51d6762bc8b83503a0dd87dcfc1ab77f58825040bb11e3bed7e071c6af9c55

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 files

Supported by

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