RAG

Search Collection

Semantic search over a collection.

post/api/rag/collections/{collection_id}/search

Request

  • Base URL: https://api.agentstack.tech (the document declares no server; this is the origin it was published from)
  • URL: https://api.agentstack.tech/api/rag/collections/{collection_id}/search
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Path parameters

collection_idstring required

Collection UUID

Query parameters

home_project_idinteger nullable

Override session project scope when permitted (read access).

Headers

Idempotency-Keystring

Client-generated key to make mutating requests idempotent.

Request body

querystring required

Natural language query

top_kinteger

Number of results

hybridboolean

Use hybrid BM25+dense search

mmrboolean

Use MMR for diverse results

filtersobject nullable

Metadata filters

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.