Alphakdeps.io is experimental and evolving — the registry and packages may change or reset.
Toolkdeps asset

kdeps-tools-retrieve_context

v1.1.0

Retrieve semantically relevant text chunks from the configured RAG index. Use for finding code, documentation, or notes related to a query before implementing or answering. Requires KDEPS_RAG_BASE_URL pointing to a compatible RAG service.

Install

A kdeps asset: kdeps installs it on first run and updates it without a new release.

kdeps update tools/retrieve_context

Pin a version with kdeps update tools/retrieve_context@<version>.

Contents

Retrieve semantically relevant text chunks from the configured RAG index. Use for finding code, documentation, or notes related to a query before implementing or answering. Requires KDEPS_RAG_BASE_URL pointing to a compatible RAG service.

ParameterTypeDescription
query *stringThe search query to find relevant context for
top_knumberNumber of results to return (default: 5, max: 32)default: 5

HTTP call (declared in YAML, no Go code)

POST{{trimSuffix .env.BASE_URL "/"}}/v1/query

Offered when set: KDEPS_RAG_BASE_URL

Content-Type:
application/json

Body

{"query": {{json .args.query}}, "top_k": {{min .args.top_k 32}}}

Result

{{range $i, $r := .response.results}}{{if $i}}---
{{end}}[{{add $i 1}}] score={{printf "%.3f" $r.score}} source={{$r.source}}
{{$r.text}}
{{end}}

Versions

VersionPublishedStatus
1.1.010/13/2026active
1.0.010/11/2026active

Details

Author
kdeps
License
Apache-2.0
Latest Version
1.1.0
Published
10/11/2026

Tags

kdepstool