post
https://api.superwise.ai/v1/knowledge
Create a new knowledge object.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Creates a knowledge object, which indexes and stores a website or a set of files so agents can query that information. For a website, give a url and a max_depth from 1 to 5. For files, give the file_ids returned by Upload files.
When to use it
Use it to give an agent a knowledge base to answer from.
Required parameters
name(body): the name of the knowledge object, 1 to 50 characters.knowledge_metadata(body): what to index: a website (typeurl, withurlandmax_depth) or files (typefile, withfile_ids).embedding_model(body): the embedding model to index with: aprovider_idand an optionalversion.
Response
A successful call returns 201 Created with the Knowledge object: id, name, knowledge_metadata, embedding_model, created_by, and timestamps including indexed_at.
Related: Upload files for knowledge, Get a knowledge object, Reindex a knowledge object, List knowledge objects
422Unprocessable Entity
500Internal Server Error