RAG

RAG search with AI-generated answer

Search for relevant chunks and generate an answer using LLM

post/api/rag/{project_id}/ai-search

Request

  • Base URL
    https://core.blink.new
  • URL
    https://core.blink.new/api/rag/{project_id}/ai-search
  • Auth
    HTTP bearer

Path parameters

project_idstring required

Request body

collection_idstring
collection_namestring
querystring required
max_resultsinteger
modelstring
system_promptstring
streamboolean

Response

AI-generated answer with sources. With stream: true the body is the answer as plain text and sources arrive in the X-RAG-Sources header. A model failure before the first chunk returns the JSON error instead of an empty 200.

Changes

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