Repository navigation
Hint Session 13 EN
riido-hints --session --limit 20 computes a query's ranking once. Send the existing catalog request as one JSON line to receive the first page. Subsequent input lines contain only cursor (copied from the response's next_cursor) and limit. Responses are compact JSON lines. The existing single-request mode remains available.
go build -o riido-hints ./cmd/riido-hints
./riido-hints --session --limit 20 --identifier-hintsExample first input:
{"snapshot_id":"public-demo","query":"read config","documents":[{"id":"a","text":"read"},{"id":"b","text":"config"},{"id":"c","text":"func ReadConfig() {}"}]}This small example finishes in one page. For larger catalogs, send another line, replacing the placeholder with the returned cursor:
{"cursor":"COPIED_NEXT_CURSOR","limit":20}Close input to terminate the process. Agents should use stdin/stdout pipes and flush after each input line. If the final page has arrived, close input. A static file containing only the initial request also exits normally at EOF.
Each process owns one immutable query/snapshot result. After initialization it retains candidate IDs, ranks, scores and response metadata. The application writes no source or results to files. Temporary source/index objects become eligible for Go garbage collection after initialization; immediate erasure is not guaranteed. There is no shared cache or new shared lock. Results remain in memory while the process stays open; callers control its lifetime.
Start a new process for changed queries, permissions or catalogs. Callers must supply authorized candidates only. Permission changes are not automatically reflected; terminate the session when permissions change. A cursor checks consistency, not authentication. Invalid cursors, unknown fields, invalid page limits and oversized messages terminate with an error. Previously delivered valid responses remain valid; no partial response is emitted for a malformed request.
Initial input is at most 16 MiB including newline; continuation lines are at most 1,024 bytes. Existing limits on 4,096 candidates, source bytes and query size remain. Page limits are 1..4,096; session startup rejects --cursor. There is no automatic expiry or network server.
Tests compare first and subsequent pages with stateless output. A separate local test reconstructs all 3,009 public-source candidates over 151 pages under both policies and checks exact IDs, ranks and scores. Raw source stays outside Git.
RIIDO_PUBLIC_SESSION_FIXTURE=/path/to/public-catalog.json go test -race ./cmd/riido-hintsresults-13.json records a one-query complete traversal transport measurement. It is not 2,948 independent questions or evidence of LLM billing savings. Reading only the first page yields much less benefit from ranking reuse. Initialization includes a one-time internal full-response JSON conversion.
| One query, all 151 pages | Repeated stateless requests | Session |
|---|---|---|
| Raw BM25 total time | 11.045 s | 0.072 s |
| Helper total time | 20.412 s | 0.138 s |
| Input bytes | 360,069,617 | 2,405,664 |
Session first pages took 0.068/0.132 s, with peak RSS including initialization of 33,505,280/40,992,768 bytes respectively. One run per condition on Apple M4 Pro, CPU only. Total time includes driver JSON handling, process startup and IPC. Stateless RSS was not measured here, so no memory reduction is claimed. Compact session JSON also removes indentation, contributing to output-byte differences. The helper's first page remains slower than raw search.
riidolaya is experimental. No demonstrated Codex cost savings; repository selection is preview-only.
riidolaya는 실험 단계입니다. Codex 절감은 미입증이며 저장소 선택은 preview입니다.
English README · 한국어 README · Versioned Wiki sources / Wiki 원본
이전 연구 안내 펼치기 / Earlier research
- 실제 이어 학습 V3 · 한국어 · Actual V3 training · English
- 진행·완료 보고·질문100건 결과 KO · 100-case results EN
- 라벨·이모지·상태 힌트 KO · Content/state hints EN
- 개발 진행·완료 보고·질문 pilot KO · Development pilot EN
- 작은 검증 기록 KO · Compact evidence EN
- 현재 개발 자료 35개·다음 학습 조건 · 35-row data and next training gates
- 개발용 학습 자료 2개 · Two qualified training requests
- 첫 두 과제 실제 관측 · First two actual observations
- 전체 사용법 KO · Full usage EN
- 작은 동작 힌트 KO · Small hints EN
- 설명 보강 비교76 · Caption diagnostic76
- Go 압축 가중치78 · Packed Go weights78
- 공개 함수 동작 검증 · Public function verification
- 다음 학습 자료 준비 · Training data preparation
- 동작에서 학습 정답·실제 학습79 · Grounded labels and actual fit79
- 소스 동작 관찰 · Source observations
- 저장 크기와 RAM · Storage and RAM
- 라이선스 · Licensing
- 시점별 기록 원문 / Chronological history
- 전체 연구 링크 / Full research index
- 문서 목록 / Documentation