This commit is contained in:
2026-02-14 21:20:14 -08:00
parent 642d0ba460
commit 7ef2825c16
5 changed files with 331 additions and 2 deletions

View File

@@ -20,6 +20,10 @@ Migrations are applied automatically on server startup (`prisma migrate deploy`)
Open docs: `http://localhost:8787/docs`
API contract docs for clients:
- `../docs/api/rest.md`
- `../docs/api/streaming-chat.md`
## Run Modes
- `npm run dev`: runs `src/index.ts` with `tsx` in watch mode (auto-restart on file changes). Use for local development.
@@ -54,6 +58,7 @@ If `ADMIN_TOKEN` is not set, the server runs in open mode (dev).
- `POST /v1/searches`
- `GET /v1/searches/:searchId`
- `POST /v1/searches/:searchId/run`
- `POST /v1/searches/:searchId/run/stream` (SSE)
Search runs now execute both Exa `searchAndContents` and Exa `answer`, storing:
- ranked search results (for result cards), and