TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/StarTrail-org/PixelRAG/llms.txt
Use this file to discover all available pages before exploring further.
/search endpoint accepts a batch of queries and returns the top-ranked document tile chunks for each one. Queries can be plain text, base64-encoded images, or pre-computed L2-normalized embeddings. A single request can contain multiple queries (batch search), but all queries in one request must use the same query type — you cannot mix pre-computed embeddings with text or image fields in the same request.
Method: POSTPath:
/searchContent-Type:
application/json
Request Body
List of query objects. Each object must have exactly one of
text, image, or embedding populated. All queries in a single request must use the same type.Number of results to return per query.
FAISS
nprobe override for this request. Higher values increase recall at the cost of latency. Omit to use the index default (visible in /status).Filter out chunks shorter than this many pixels. Useful for excluding near-blank footer strips. When set, the server over-fetches internally to guarantee
n_docs results.Override the default query embedding instruction. The default is
"Retrieve images or text relevant to the user's query.".When
true, each hit includes image_base64 — a base64-encoded PNG of the chunk image. Increases response size substantially; use only when needed.When
true, Wikipedia meta and aggregator pages (Portal, Category, List of, disambiguation, etc.) are excluded from results. The server over-fetches internally so you still receive n_docs results from real articles.Restrict search to a single department. Departments correspond to top-level subdirectories in the source document tree and are set at index-build time. Use
/departments to list available values. Returns 400 if the index was built without department metadata, or 404 if the department name is unknown.Response
The response is aSearchResponse object.
One
QueryResult per query, in the same order as the input queries array.Examples
Mixing Query Types
Each request must use exactly one query type across all queries. Pre-computed embeddings cannot be mixed with text or image fields in the same request body. If any query has a non-nullembedding field, all queries must supply embedding and must not supply text or image.