Skip to content

Commit e62a8c4

Browse files
committed
1 parent 2c0542e commit e62a8c4

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

dashjoin-docs/docs/developer-reference.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,24 @@ register an instance of email service with specific parameters and call it email
708708

709709
The system supports the following functions. Each section lists the function configuration parameters that are constant any time this function is called as well as the parameters that are specific for each invocation.
710710

711+
#### AIApp
712+
713+
Allows configuring an AI application that can be called from the AIChat widget or any other JSONata expression:
714+
715+
Configuration
716+
717+
* systemPrompt: the AI system prompt to instruct AI behaviour
718+
* ai: URL of the KnowledgeBase database. Only required if there are multiple KnowledgeBases.
719+
* model: name of the AI model to use - those can be configured in settings.yml (see AI & ML integration for details)
720+
* tools: names of the tools the AI is allowed to use
721+
* tags: all documents with these tags are used as the RAG source
722+
* documents: individual documents to be used as the RAG source
723+
724+
Invocation parameter
725+
726+
* array: array of messages containing role and content. Note that if the last content contains #full, the entire RAG corpus will be added to the request. This is called Cache-Augmented Generation (CAG) and is suitable for smaller document sets that fit in the LLM context.
727+
If the content contains #query, the text behind the query marker is used as a RAG query. Consider the following example: can you explain the difference between RAG and CAG #query RAG CAG. In this case the documents would be search using the term "RAG CAG" rather than the entire question. This can be used to optimize RAG retrieval accuracy.
728+
711729
#### RestJson
712730

713731
Calls an external REST service. If you need more control over the how the call is performed, please use the JSONata function curl.

0 commit comments

Comments
 (0)