Documentation
¶
Overview ¶
Package ingestor implements the Semantic Ingestor — Feature 1 of synapses-intelligence.
On a file-save event, the ingestor receives a code snippet, sends a short prompt to the local LLM, and persists a 1-sentence "intent summary" in brain.sqlite. These summaries are later served by the Enricher during get_context calls, replacing raw source code with compact semantic descriptions for the main LLM.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ingestor ¶
type Ingestor struct {
// contains filtered or unexported fields
}
Ingestor summarizes code snippets via the LLM and persists them.
func (*Ingestor) Summarize ¶
Summarize generates and stores a 1-sentence summary for the given code entity. Uses a deterministic fast path for trivial nodes (test helpers, generated code, getters/setters) that skips the LLM entirely. For non-trivial nodes, calls the LLM to generate a prose summary. If the LLM is unavailable or returns an unparseable response, an error is returned but the call is non-fatal — callers should log and continue.