Directories
¶
| Path | Synopsis |
|---|---|
|
Package ann is the dense (semantic) retriever.
|
Package ann is the dense (semantic) retriever. |
|
Package bm25 is the lexical (sparse) retriever — the bm25s-equivalent scorer plus the identifier-aware tokenizer that feeds it.
|
Package bm25 is the lexical (sparse) retriever — the bm25s-equivalent scorer plus the identifier-aware tokenizer that feeds it. |
|
Package chunk splits source files into retrieval units behind a runtime-selectable Chunker interface (see registry.go).
|
Package chunk splits source files into retrieval units behind a runtime-selectable Chunker interface (see registry.go). |
|
markdown
Package markdown is ken's documentation-aware chunker, registered as "markdown".
|
Package markdown is ken's documentation-aware chunker, registered as "markdown". |
|
regex
Package regex is the v1-default chunker (docs/DESIGN.md §2 Option C): one generic line-walking engine driven by per-language LanguageRules.
|
Package regex is the v1-default chunker (docs/DESIGN.md §2 Option C): one generic line-walking engine driven by per-language LanguageRules. |
|
treesitter
Package treesitter is ken's v0.2.0 chunker: a pure-Go tree-sitter runtime via github.com/odvcencio/gotreesitter, with chunk boundaries determined by the cAST split-then-merge algorithm (arXiv 2506.15655 — the same algorithm Chonkie uses).
|
Package treesitter is ken's v0.2.0 chunker: a pure-Go tree-sitter runtime via github.com/odvcencio/gotreesitter, with chunk boundaries determined by the cAST split-then-merge algorithm (arXiv 2506.15655 — the same algorithm Chonkie uses). |
|
Package constrain implements constrained / structured decoding: a logit mask that forces a language model's output to satisfy a grammar (e.g.
|
Package constrain implements constrained / structured decoding: a logit mask that forces a language model's output to satisfy a grammar (e.g. |
|
Package decoder runs autoregressive, decoder-only transformer language models as a pure-Go forward pass.
|
Package decoder runs autoregressive, decoder-only transformer language models as a pure-Go forward pass. |
|
demo
|
|
|
gemma
command
Command gemma is a demo CLI that runs a local decoder-only LLM through aikit's pure-Go decoder and streams the completion to stdout.
|
Command gemma is a demo CLI that runs a local decoder-only LLM through aikit's pure-Go decoder and streams the completion to stdout. |
|
gemma-web
command
Command gemma-web serves a local, single-page web chat GUI for a decoder LLM checkpoint running on aikit's pure-Go decoder.
|
Command gemma-web serves a local, single-page web chat GUI for a decoder LLM checkpoint running on aikit's pure-Go decoder. |
|
Package embed implements Model2Vec inference: hand-rolled WordPiece tokenization, safetensors weight loading, weighted-mean pooling, and L2 normalization.
|
Package embed implements Model2Vec inference: hand-rolled WordPiece tokenization, safetensors weight loading, weighted-mean pooling, and L2 normalization. |
|
Package encoder loads and (in subsequent commits) runs the nomic-ai/CodeRankEmbed neural reranker as a pure-Go forward pass.
|
Package encoder loads and (in subsequent commits) runs the nomic-ai/CodeRankEmbed neural reranker as a pure-Go forward pass. |
|
gpu
Package gpu is an OPTIONAL WebGPU (Metal / Vulkan / DX12) compute backend for the encoder's matmul, compiled only under the `gpu` build tag.
|
Package gpu is an OPTIONAL WebGPU (Metal / Vulkan / DX12) compute backend for the encoder's matmul, compiled only under the `gpu` build tag. |
|
Package fuse combines multiple ranked result lists into one — the reusable primitive behind hybrid search (e.g.
|
Package fuse combines multiple ranked result lists into one — the reusable primitive behind hybrid search (e.g. |
|
gpu
module
|
|
|
internal
|
|
|
linalg
Package linalg holds aikit's shared SIMD compute kernels: the dot-product kernels (AVX2+FMA on amd64, NEON on arm64, scalar elsewhere — selected by build tag and runtime CPU detection) and a row-parallel float32 matmul built on them.
|
Package linalg holds aikit's shared SIMD compute kernels: the dot-product kernels (AVX2+FMA on amd64, NEON on arm64, scalar elsewhere — selected by build tag and runtime CPU detection) and a row-parallel float32 matmul built on them. |
|
Package tokenizer implements the BPE tokenizers the decoder LLMs ship, loaded from the HF tokenizer.json.
|
Package tokenizer implements the BPE tokenizers the decoder LLMs ship, loaded from the HF tokenizer.json. |
|
Package topk is a min-heap-of-size-K selector for "keep the K highest-scoring items from a stream" without sorting the full input.
|
Package topk is a min-heap-of-size-K selector for "keep the K highest-scoring items from a stream" without sorting the full input. |
Click to show internal directories.
Click to hide internal directories.