Adds new content to the RAG system. Supports URLs, plain text, and various file types. Content can be assigned to specific spaces and include metadata or prefetched information.
prefetched
Objectprefetched
object in the request body allows you to send information about the content that your client application might have already processed. This can speed up ingestion by preventing the API from re-fetching or re-parsing data.
prefetched.contentToVectorize
(string): The specific text to be used for generating vector embeddings. This might be a cleaned-up or key excerpt of the full content.prefetched.contentToSave
(string): The full content to be stored. Can differ from contentToVectorize
(e.g., full HTML vs. main article text).prefetched.title
(string): The title of the content.prefetched.type
(enum: “page”, “tweet”, “note”, “document”): Specifies the nature of the content.prefetched.description
(string): A short summary or description of the content.prefetched.ogImage
(string): URL of a representative image for the content.prefetched
data is particularly useful for efficiency if your client has already performed tasks like URL fetching, text extraction, or summarization.Enter your API key as a Bearer token. Example: 'Bearer YOUR_API_KEY'
Content added successfully
The response is of type object
.