Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
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
2 changes: 1 addition & 1 deletion packages/lu/src/parser/qna/qnamaker/qnaConverter.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const qnaToLuContent = function(qnaJSON){
}

root.forEach(function(qnaItem) {
fileContent += qnaItem.id.toString() !== "0" ? `<a id = "${qnaItem.id}"></a>` + NEWLINE + NEWLINE : '';
fileContent += '> !# @qna.pair.source = ' + qnaItem.source + NEWLINE + NEWLINE;
fileContent += qnaItem.id.toString() !== "0" ? `<a id = "${qnaItem.id}"></a>` + NEWLINE + NEWLINE : '';
fileContent += '## ? ' + qnaItem.questions[0] + NEWLINE;
qnaItem.questions.splice(0,1);
qnaItem.questions.forEach(function(question) {
Expand Down
2 changes: 1 addition & 1 deletion packages/lu/test/fixtures/testcases/qnaref.qna
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
> !# @qna.source=hand added
> !# @qna.pair.source=hand added
# ?hello
- [another](./collate/1.lu#Greeting)
**Filters:**
Expand Down
2 changes: 2 additions & 0 deletions packages/lu/test/fixtures/verified/allGenQnA.lu
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

> !# @qna.pair.source = custom editorial

<a id = "181"></a>

## ? How do I change the default message

```markdown
Expand Down
2 changes: 1 addition & 1 deletion packages/luis/test/fixtures/testcases/qnaref.qna
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
> !# @qna.source=hand added
> !# @qna.pair.source=hand added
# ?hello
- [another](./collate/1.lu#Greeting)
**Filters:**
Expand Down
2 changes: 1 addition & 1 deletion packages/qnamaker/test/fixtures/testcases/qnaref.qna
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
> !# @qna.source=hand added
> !# @qna.pair.source=hand added
# ?hello
- [another](./collate/1.lu#Greeting)
**Filters:**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
> # QnA pairs

<a id = "1"></a>

> !# @qna.pair.source = Editorial

<a id = "1"></a>

## ? ques1

```markdown
Expand All @@ -15,40 +15,40 @@ ans1
- [p2](#3) `context-only`
- [p3](#4)

<a id = "2"></a>

> !# @qna.pair.source = Editorial

<a id = "2"></a>

## ? p1

```markdown
ap1
```

<a id = "3"></a>

> !# @qna.pair.source = Editorial

<a id = "3"></a>

## ? p2

```markdown
ap2
```

<a id = "4"></a>

> !# @qna.pair.source = Editorial

<a id = "4"></a>

## ? p3

```markdown
ap3
```

<a id = "5"></a>

> !# @qna.pair.source = Editorial

<a id = "5"></a>

## ? qew

```markdown
Expand Down
24 changes: 12 additions & 12 deletions packages/qnamaker/test/fixtures/verified/multiturn.json.qna
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
> # QnA pairs

<a id = "1"></a>

> !# @qna.pair.source = xyz

<a id = "1"></a>

## ? hello

**Filters:**
Expand All @@ -18,51 +18,51 @@ hi there
- [flight booking](#32) `context-only`
- [weather](#2) `context-only`

<a id = "2"></a>

> !# @qna.pair.source = custom editorial

<a id = "2"></a>

## ? weather

```markdown
sure will get weather
```

<a id = "3"></a>

> !# @qna.pair.source = custom editorial

<a id = "3"></a>

## ? q2
- tell me a joke

```markdown
ha ha ha
```

<a id = "32"></a>

> !# @qna.pair.source = custom editorial

<a id = "32"></a>

## ? book flight

```markdown
sure. happy to help with that.
```

<a id = "4"></a>

> !# @qna.pair.source = custom editorial

<a id = "4"></a>

## ? batata

```markdown
tomato
```

<a id = "5"></a>

> !# @qna.pair.source = custom editorial

<a id = "5"></a>

## ? testquestion

```markdown
Expand Down
2 changes: 1 addition & 1 deletion packages/qnamaker/test/fixtures/verified/qna5.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"id": 0,
"answer": "hi there",
"source": "custom editorial",
"source": "hand added",
"questions": [
"hello",
"Hi",
Expand Down