embedder_required tells CLI and MCP users to pass embedder= to SelfGraph

Aperta Adatta ai principianti
#350 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
75/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python, typescript
Ambito
api, cli

Direzione di ricerca

Leggi i punti in cui viene generato embedder_required in src/selfgraph/client.py e typescript/src/access.ts, poi esamina _SURFACE_HINTS in src/selfgraph/errors.py e typescript/src/errors.ts. Rendi il messaggio identico in entrambi gli SDK e conferma che CLI e MCP lo riscrivono con indicazioni pratiche; l’issue fornisce i comandi CLI per riprodurre il problema e la formulazione attesa.

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

Descrizione

approved-for-pr area: cli-mcp area: errors bug effort: S P3

What happens

seeds="embeddings" without an embedder raises embedder_required with a library-style message. The CLI and MCP server pass it through unchanged, so they tell the user to do something those surfaces do not support:

$ selfgraph retrieve --seeds embeddings Ada
error[embedder_required]: seeds 'embeddings' needs an embedder: pass embedder= to SelfGraph

The MCP retrieve tool with seeds: "embeddings" returns the same text. The CLI and MCP server cannot take an embedder at all, so the right fix for those users is a different seeds tier or the SDK. Other library hints (llm=, auth=, store=, uri=) are rewritten for the CLI and MCP by surface_hint. This one is not.

The two SDKs also word it differently: Python says pass embedder= to SelfGraph, TypeScript says pass embedder in the SelfGraph options. AGENTS.md asks for identical text. Unlike LLM_HINT, it is not a shared constant that surface_hint rewrites.

Reproduce

On 5a277c9: selfgraph --store kuzu --uri g.kuzu retrieve --seeds embeddings Ada in both CLIs.

Expected

The message is a shared constant in both SDKs, and the CLI and MCP surfaces reword it, for example seeds 'embeddings' needs an embedder, which only the SDK can take; use --seeds bm25 or synonyms here.

Where

  • src/selfgraph/client.py, the embedder_required raise
  • typescript/src/access.ts, the same raise
  • src/selfgraph/errors.py / typescript/src/errors.ts, _SURFACE_HINTS
Lingua principale
TypeScript
Stelle
173
Fork
58
Merge medio
6h
PR unite (30g)
120

Preparare l'ambiente

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 hydra-db/selfgraph

Tutte le issue di hydra-db/selfgraph

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.