Documentation
¶
Overview ¶
Package enrich generates one-sentence purpose summaries for indexed code symbols using an OpenAI-compatible chat completion endpoint. Summaries are written to .contextmaxxer/synthetic-docs.json and merged into symbol docstrings at index time, closing the vocabulary gap between intent-style queries ("why") and code text ("how").
DECISION(2026-06): one client for both local and cloud backends — Ollama, LM Studio and DeepSeek all expose the OpenAI chat completions API, so the backend is just BaseURL+Model+APIKey. Local (Ollama, qwen2.5-coder:3b) is the default: ~2GB on disk, runs CPU-only on an average dev machine. REVISIT IF: a local runtime without an OpenAI-compatible endpoint must be supported.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StripEchoTail ¶
StripEchoTail removes an instruction-echo clause ("..., distinguishing it from similar symbols by ...") and everything after it. Exported so existing sidecar files can be sanitized without regeneration.