Add an API to fetch multiple memory units by ID

Aperta
#6,863 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
api

Direzione di ricerca

Start from the existing single-memory detail endpoint and the list endpoint, since the request is to reuse their access rules and response fields for a bounded set of IDs within one bank. Read how those handlers resolve a bank, apply read permissions, and shape each record, then decide the request parameter and the response keyed by ID, including the rule that a missing ID does not fail the whole call. Done looks like one endpoint returning readable records for the requested IDs plus tests covering mixed readable and unreadable IDs; the payload names no files, so locate the routes first.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

core
Use Case

We save the memory IDs cited in generated briefs. When someone reopens a brief, we need to fetch those exact memory units to show the evidence behind each recommendation.

Problem Statement

The memory detail API accepts one ID per request, and the list API has no filter for a set of memory IDs. Loading evidence for a brief that cites 16 memory units therefore takes 16 detail requests.

How This Feature Would Help

A single request would reduce network round trips and per-request overhead while returning the exact records already cited in the brief.

Proposed Solution

Accept a bounded list of memory IDs within one bank and return the matching records keyed by ID. Reuse the access rules and response fields of the single-memory endpoint. A missing ID should not prevent the other readable records from being returned.

Alternatives Considered

Parallel single-record requests can reduce wait time, but still send one request per ID. Recall can include source facts at search time, but it cannot look up a previously saved set of IDs.

Priority

Important - affects my workflow

Additional Context

No response

Checklist
  • I would be willing to contribute this feature
Lingua principale
Python
Stelle
45.2k
Fork
5.9k
Merge medio
6h 18m
PR unite (30g)
354

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di vectorize-io/hindsight

Tutte le issue di vectorize-io/hindsight

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.