documentation update
This commit is contained in:
@@ -205,6 +205,9 @@ Returns `503` if llama-server is unreachable.
|
||||
| `scoreThreshold` | float | 0–1 | Minimum similarity score for Qdrant results |
|
||||
| `semanticWeight` | float | 0–5 | RRF weight for Qdrant semantic results |
|
||||
| `keywordWeight` | float | 0–5 | RRF weight for FTS5 keyword results (`0` = disabled) |
|
||||
| `contextBudget` | integer | — | Token budget for context assembly (char/4 estimation) |
|
||||
| `entityWeight` | float | — | Scoring bonus for entity-linked episodes in the context pool |
|
||||
| `minRecentEpisodes` | integer | — | Guaranteed floor of recent episodes always included in context |
|
||||
| `modelsFolderPath` | string | — | Path to folder containing .gguf files |
|
||||
| `temperature` | float | 0–2 | Inference randomness |
|
||||
| `repeatPenalty` | float | 1–2 | Repeat token penalty |
|
||||
@@ -253,6 +256,7 @@ orchestration.
|
||||
| GET | /sessions/by-external/:externalId | Get session by external ID |
|
||||
| PATCH | /sessions/by-external/:externalId | Update session fields |
|
||||
| DELETE | /sessions/by-external/:externalId | Delete session (cascades to episodes) |
|
||||
| GET | /sessions/:id/entity-ids | Entity IDs linked to this session's episodes (non-project memory isolation scoping) |
|
||||
|
||||
> Route ordering: `by-external/:externalId` must be defined before `/:id`
|
||||
> to prevent `by-external` being captured as an ID param.
|
||||
@@ -279,6 +283,8 @@ Both fields are optional. Only provided fields are updated.
|
||||
| GET | /sessions/:id/episodes?limit=&offset= | Paginated episodes for a session |
|
||||
| GET | /sessions/:id/episode-stats | Aggregate: count, total tokens, max id (summarization threshold check) |
|
||||
| GET | /sessions/:id/episodes/since/:afterId | Episodes newer than :afterId, chronological (un-summarized tail) |
|
||||
| POST | /episodes/touch | Batch access-tracking bump — increments `access_count`, sets `last_accessed_at` |
|
||||
| GET | /sessions/:id/consolidation-candidates | Dry-run consolidation scoring (aging score, floors applied) |
|
||||
| DELETE | /episodes/:id | Delete episode (SQLite + Qdrant cleanup) |
|
||||
|
||||
> Route ordering: `/episodes/search` must be defined before `/episodes/:id`.
|
||||
@@ -293,6 +299,21 @@ Both fields are optional. Only provided fields are updated.
|
||||
}
|
||||
```
|
||||
|
||||
**POST /episodes/touch — body:**
|
||||
```json
|
||||
{ "ids": [54, 55, 56] }
|
||||
```
|
||||
Returns `{ "touched": 3 }`. Called fire-and-forget by orchestration after
|
||||
budget selection. Nonexistent IDs are silently skipped; `touched` echoes the
|
||||
request count, not rows matched.
|
||||
|
||||
**GET /sessions/:id/consolidation-candidates** — returns
|
||||
`{ eligible, reason?, candidates: [...] }` where each candidate is
|
||||
`{ id, access_count, created_at, last_accessed_at, preview, aging_score }`,
|
||||
sorted by `aging_score` ascending (most eligible first). Sessions under
|
||||
`CONSOLIDATION.MIN_SESSION_EPISODES` return `eligible: false` with a `reason`.
|
||||
Observe-only — nothing is modified.
|
||||
|
||||
### Projects
|
||||
|
||||
| Method | Path | Description |
|
||||
|
||||
Reference in New Issue
Block a user