Sections
Get matching sections
Retrieves a list of sections that match a prompt.
The /sections
endpoint is available as part of the Enterprise plan.
Request body
Key | Type | Description |
---|---|---|
prompt | string | The input prompt. |
sectionsMatchCount | number | The number of sections to retrieve. Default: |
sectionsMatchThreshold | number | The similarity threshold between the input prompt and selected sections. The higher the threshold, the more relevant the sections. If it's too high, it can potentially miss some sections. Default: |
maxContextTokens | number | The maximum number of tokens that the returned sections fill. Default: |
ragType | "basic" | "smallToBig" | The RAG strategy. If set to |
Example request
Response
The response is of the form: