sipeed/picoclaw · error
ingest seahorse
Error message
ingest seahorse: %w
What it means
Context wrapper in runIngest around IngestSeahorse: the seahorse store could not be built at dbPath — the cause (embedded via %w) is typically a database open/write failure, embedding/LLM call failure, or schema error. This layer only tags the ingest-seahorse phase; the real diagnosis lives in the wrapped error.
Solutions
- Inspect the wrapped error to identify whether DB creation, schema setup, or ingestion failed
- Verify the --out directory is writable and seahorse.db is not locked by another process
- If ingestion calls embeddings/LLMs, check endpoint availability and API keys
- Remove a stale/corrupt seahorse.db and re-run
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at cmd/membench/main.go:161 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sipeed/picoclaw@49183d7e8d (2026-08-15).
Data as JSON: /api/errors/0f95aaf237af7284.
Report an issue: GitHub.
Appendix: source
Thrown at cmd/membench/main.go:161
}
log.Printf("Loaded %d samples from %s", len(samples), flagData)
for _, mode := range modes {
switch mode {
case "legacy":
legacy := NewLegacyStore()
for i := range samples {
legacy.IngestSample(&samples[i])
}
log.Printf("legacy: ingested %d samples", len(samples))
case "seahorse":
dbPath := filepath.Join(flagOut, "seahorse.db")
if err := os.MkdirAll(flagOut, 0o755); err != nil {
return fmt.Errorf("create out dir: %w", err)
}
_, err := IngestSeahorse(ctx, samples, dbPath)
if err != nil {
return fmt.Errorf("ingest seahorse: %w", err)
}
}
}
return nil
}
func runEval(cmd *cobra.Command, args []string) error {
if flagData == "" {
return fmt.Errorf("--data is required")
}
modes := modesFromFlag()
if len(modes) == 0 {
return nil
}
ctx := context.Background()
samples, err := LoadDataset(flagData)
if err != nil {View on GitHub (pinned to 49183d7e8d)