Skip to main content
The SIP (Session Initialisation Package) is a short, labelled block of the memory most relevant to the user’s current message. Before each model call, your app asks EDN for a SIP and places it in the model’s prompt. Your model gets only the memory it needs, not your whole history.

Build a SIP

Call POST /api/v1/sip/build with the user’s message:

What you get back

The response contains the SIP itself, plus details about how it was built.

The SIP text

sip is a plain text string. This is exactly what your model sees when you place it in the prompt: one line per memory, each labelled with its source.

The full response

How memory is chosen

  • Only relevant memory. EDN compares the query with your stored records and keeps only those that are relevant enough.
  • Only trusted sources. Records that are AI-written and unconfirmed are never included. See Provenance.
  • Only current versions. Replaced and deleted records are left out.
  • No model involved. No language model chooses the records, so the same question over the same memory always gives the same SIP.
  • Follow-up questions. If you save messages to the session, short follow-ups like “and who approves it?” can still find the right memory.

Citations

In a project build, each citable source is numbered in the SIP:
Ask your model to cite these numbers in its answer, for example “Sara leads the project [1].” Then use citations to show where each number came from: Each document gets one number, even if several of its sections are used. Saved conversations (ROUND) can appear in the SIP as background, but are never numbered or cited.

When nothing matches

  • General build: sip is an empty string. Call your model without memory context.
  • Project build: abstain is true, and sip contains an instruction telling your model to answer only from the project’s sources and to say plainly that they don’t cover the question. Your model declines instead of guessing.

Next steps

Quickstart

Use a SIP with your model, step by step.

Provenance

What each source label means.

Grounding answers in documents

Projects, documents and citations end to end.