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."
retrieved_docs, retrieved_indexes = engine.search(query)
# -> ['Mannheim is amazing.', 'Earth is flat.'], [0, 1]
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4008bdf68f12ff6fdb4368dd1a6bbeb60261444530c692677e4dfb423f8a8ed5
|
|
| MD5 |
49d874d9c81c88def1a683e26bba2b94
|
|
| BLAKE2b-256 |
940634bb8b5567dfd979d717ced01c11415db09d52d1ada5c4280ae1495483c8
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50e9331f83189ea448cf664f2e6d71d1e751e7c950a824782a7b77f02de2d0a9
|
|
| MD5 |
4c64d61a7c2208a3fe3c8f81af66f608
|
|
| BLAKE2b-256 |
6a51d6762bc8b83503a0dd87dcfc1ab77f58825040bb11e3bed7e071c6af9c55
|