Save & Contribute Insights

Insights are a durable knowledge artifacts that was captured from a conversation.

Insight are durable knowledge artifacts captured from conversations and related sources. Each insight (also referred to as a note) contains summarized understanding, provenance, and links to underlying messages and document references.

Create an Insight from a Message

Often, outputs of Interact with Bot are highly valuable as input for further conversations. Saving these pieces of knowledge as insights in your system makes them easily reusable.

Here we need to provide a specific messageId of the response of the LLM that we want so store. This messageId is being sent in the Interact with Bot step.

Generate Chat Note

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
convo_idstringRequired
latest_message_idstringRequired
insightsGraphTypeany ofOptional
string ยท enumOptionalPossible values:
or
nullOptional
is_pinany ofOptional
booleanOptional
or
nullOptional
parent_pathstringOptionalDefault: root
is_include_chat_historyany ofOptionalDefault: true
booleanOptional
or
nullOptional
Responses
200

Successful Response

application/json
post
/cortex/notes/generate

Create a new Insight

Creating fully new Insights from knowledge retrieved programmatically is another use case that can be handled by API. In this case, a new insight is added based on a title and summary in a given path, where root, again, is the base folder.

Add Chat Note Manual

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
titleany ofOptional
stringOptional
or
nullOptional
summaryany ofOptional
stringOptional
or
nullOptional
parent_pathany ofOptionalDefault: root
stringOptional
or
nullOptional
Responses
200

Successful Response

application/json
post
/cortex/notes/add-note

Contribute Insights to a Knowledgebase

Going one step further, insights can also be contributed and therefore stored in Knowledgebases. The large difference here is that, upon using as part of a Create a Dataroom, Insights are pulled into the context in full, while Knowledgebases are used for RAG and only relevant chunks of data are being added to the context.

Save Insights To Knowledge Base

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
time_zoneany ofOptionalDefault: 2
numberOptional
or
nullOptional
Responses
200

Successful Response

application/json
Responseany
post
/cortex/notes/save-insights-to-knowledge-base

No content

Last updated

Was this helpful?