v4

latestOpenAPI 3.1.02026-08-086635375.7 KB
Knowledge

search knowledge group

Search for similar content in a RAG group using vector similarity

post/v1/knowledge/groups/{id}/search

Path parameters

idstring required

Unique identifier of the knowledge group

Request body

querystring required
limitinteger

Response

Successfully retrieved search results

documentIdstring uuid

ID of the document the chunk was extracted from.

filenamestring

Filename of the source document.

contentstring

Text content of the matching chunk.

scorenumber

Similarity score for this chunk against the query, higher is more similar.

chunkIndexinteger

Zero-based index of the chunk within the source document.

metadataobject

Free-form metadata attached to the chunk at ingest time.