- Visual Studio Code — Access the Change Language Mode section and select Markdown.
- Notepad++ — Select Markdown as a language using a User Defined Language file.
Limitations
- Header limitations:
- You can add up to 20 Source metadata pairs per Knowledge Source.
- Source metadata can have up to 1000 characters.
- Body limitations:
- You can add up to 1000 Knowledge Chunks per CTXT file.
- You can add up to 20 Chunk metadata pairs per CTXT file.
- Knowledge Chunk text can have up to 2000 characters.
- Chunk metadata can have up to 1000 characters.
Restrictions
-
Formatting restrictions:
- The file extension must be
.ctxt. - You must use the CTXT structure.
- You must use Markdown syntax.
- The file extension must be
-
Naming restrictions:
- The file name can have up to 200 characters.
- The file name can’t start or end with a space.
- The file name can’t contain
/,\,:,*,?,",<,>,|, or¥.
-
Knowledge Chunk text CTXT containing unclosed HTML tags for block-level elements in the CTXT body, such as
<div>,<table>, and<p>, causes the Markdown parser to include the metadata of the following Knowledge Chunk in the previous Knowledge Chunk. To avoid unintended inclusion, of metadata in the Knowledge Chunk text, ensure you close HTML tags for block-level elements or remove them from the Knowledge Chunk text.
Content Segmentation Basic Rules
To segment the content of a CTXT file into Knowledge Chunks, you need to meet the following rules:- The first Knowledge Chunk starts immediately after the first double line break in the CTXT file.
- Double line breaks separate text into Knowledge Chunks.
- CTXT files must comply with Knowledge Chunks limitations.
CTXT Structure
A CTXT file must include a header and a body.CTXT file sample
CTXT file sample
Header
The header of a CTXT file contains the Source metadata at the top of the CTXT file. In CTXT files, you must format Source metadata as key-value pairs wrapped by backticks. The keys refer to the information the Source metadata holds, and the value is the information. For example, intitle: Cognigy xApps FAQs, title is the key and Cognigy xApps FAQs is the value.