Skip to content

Commit

Permalink
Merge pull request #9 from crisis-communication-ai-community/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
sukantaworkspace committed Apr 26, 2020
2 parents 89b7953 + f360351 commit 9fcd225
Show file tree
Hide file tree
Showing 2 changed files with 4,304 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cloudant-designs.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"_id": "_design/convlogs",
"views": {
"all": {
"map": "function (doc) {\n if (doc.type == \"conv_log\") {\n var value = {\n session_id: doc.context.conversation_id,\n input: doc.input.text,\n output: doc.output.text[0],\n timestamp: doc.timestamp\n }\n if (doc.intents.length) {\n var intent = doc.intents[0];\n value[\"intent\"] = intent.intent;\n value[\"confidence\"] = intent.confidence;\n }\n if (doc.entities.length) {\n var entity = doc.entities[0];\n value[\"entity\"] = entity.entity;\n value[\"entity_value\"] = entity.value;\n }\n emit( doc._id, value);\n }\n}"
"map": "function (doc) {\n if (doc.type == \"output.generic[0].text.startsWith(\"I don't know the\") {\n var value = {\n _id: doc.id,\n session_id: doc.input.sessionId,\n timestamp: doc.timestamp,\n assistant_id: doc.input.assistantId,\n input: doc.input.input,\n output: doc.output.generic[],\n }\n if (doc.intents.length) {\n var intent = doc.intents[0];\n value[\"intent\"] = intent.intent;\n value[\"confidence\"] = intent.confidence;\n }\n if (doc.entities.length) {\n var entity = doc.entities[0];\n value[\"entity\"] = entity.entity;\n value[\"entity_value\"] = entity.value;\n }\n emit( doc._id, value);\n }\n}"
}
}
}
Expand Down
Loading

1 comment on commit 9fcd225

@sukantaworkspace
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IBM Cloud toolchain: Delivery Pipeline deployed crisis-communication-chat-bot to prod, including this commit

Please sign in to comment.