fix: improve add data section (#740)

This commit is contained in:
Taranjeet Singh
2023-09-30 11:13:44 -07:00
committed by GitHub
parent 7a1866d280
commit 28d41e9397
16 changed files with 224 additions and 162 deletions

11
docs/data-sources/qna.mdx Normal file
View File

@@ -0,0 +1,11 @@
---
title: 'QnA Pair'
---
### QnA pair
QnA pair is a local data type. To supply your own QnA pair, use the data_type as `qna_pair` and enter a tuple. Eg:
```python
app.add(("Question", "Answer"), data_type="qna_pair")
```