Skip to main content

Add your description here

Project description

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."
out = engine.search(query)
# -> ['Mannheim is amazing.', 'Earth is flat.']

Project details


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.1.0.tar.gz (62.2 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.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for kensakun-0.1.0.tar.gz
Algorithm Hash digest
SHA256 656d575267f516c7bc0529eb8c5cb7b6a78de55f41890deb4ce44883f1510ad7
MD5 d00181e7fe70efb4a85aebea3395ccb2
BLAKE2b-256 9ad18ca2b868779c9641862bfe65e7e693e26eef9088a62e347e935fe7741fb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kensakun-0.1.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7fc02af59c50aee083f84fcf2d34289867a1d4232d6a1bef77233abc2b1d2595
MD5 79511e8bb8dbaa2656f4e32d75cbe2d1
BLAKE2b-256 21f90eac8e6e42cf9521b81f40348cae7dc1d23d2934629f5d6330c276736f2e

See more details on using hashes here.

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