Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ctext): Feature/47523 ctext metadata support cognigy #101

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ knowledgeAIStore
.history
coverage/
.nyc_output
config.json
.env
playbooks.json
playbookRunResults.json
playbookRunResults.json
config.**.json
config.json
4 changes: 2 additions & 2 deletions KNOWLEDGE-AI-README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ In the backend we use the term `knowledgeAI store` to refer to an entity `Knowle

The term `KnowledgeAI source` references the actual file which contains one or more `chunks`. Each chunk within a document will be ingested as a separate object into the database, but the document's URL will be used as a reference in a knowledge store.

Currently we only support ingesting plain text `.txt` files, where the paragraphs are separated by a blank line as in the following example:
Currently we only support ingesting cognigy ctext `.ctxt` files, where the paragraphs are separated by a blank line as in the following example:

```
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Expand Down Expand Up @@ -46,7 +46,7 @@ To ingest documents into your project, you have to follow these steps for each p
cognigy knowledge-ai ingest --projectId <projectId> --language <languageCode> --knowledgeStoreId 64467681d8170fe52ead079d --input <pathToFileOrDirectory>
```

where you have to replace the value of `--knowledgeStoreId` with the `_id` field returned by the previous command. As `--input` you can give a path pointing to a single `.txt` file or to a directory. In the latter case, the CLI tool ingests each and every `.txt` file from that directory. Currently, it does not read files located within nested sub-directories.
where you have to replace the value of `--knowledgeStoreId` with the `_id` field returned by the previous command. As `--input` you can give a path pointing to a single `.ctxt` file or to a directory. In the latter case, the CLI tool ingests each and every `.ctxt` file from that directory. Currently, it does not read files located within nested sub-directories.

Alternatively you can use the written `./knowledgeStore_<nameOfYourKnowledgeStore>.json` file by specifying it in the command. You then no longer have to provide the projectId, language and knowledgeStoreId parameters.

Expand Down
File renamed without changes.
Loading
Loading