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]

Metadata

Release files for kensakun 0.2.0

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

Source distribution (sdist)

Source distribution for kensakun 0.2.0
File Size Uploaded
kensakun-0.2.0.tar.gz 62.3 kB Details

Built distribution (wheel)

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

Total release size: 65.0 kB

Release files / kensakun-0.2.0.tar.gz

Download URL kensakun-0.2.0.tar.gz
Size 62.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4008bdf68f12ff6fdb4368dd1a6bbeb60261444530c692677e4dfb423f8a8ed5
BLAKE2b-256 checksum
How to use checksums
940634bb8b5567dfd979d717ced01c11415db09d52d1ada5c4280ae1495483c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.18

Release files / kensakun-0.2.0-py3-none-any.whl

Download URL kensakun-0.2.0-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50e9331f83189ea448cf664f2e6d71d1e751e7c950a824782a7b77f02de2d0a9
BLAKE2b-256 checksum
How to use checksums
6a51d6762bc8b83503a0dd87dcfc1ab77f58825040bb11e3bed7e071c6af9c55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.18

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 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