Serverless.Knowledge
Retrieve contexts from chosen knowledge base
Retrieve related documents from knowledge base by similarity.
post/serverless/v1/knowledge/retrieve
Request
- Base URLhttps://api.friendli.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-Friendli-Teamstring nullable
ID of team to run requests as (optional parameter).
Request body
Example request
{
"query": "Chicken dinner",
"k": 1,
"knowledgeIds": [
"knowledge-base-id-1"
]
}Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.