(document->dataset opts document-file dataset-file)Given a document-file create a QnA dataset. Save it to
dataset-file
Given a `document-file` create a QnA dataset. Save it to `dataset-file`
(generate-qna-dataset {q-count query-count chunk-count max-chunks} document)Generate a QnA dataset. First a document will be loaded and split into sentence chunks.
The size of the chunk is a function of how many questions we are generating per chunk.
Passed in options control the scope of the QnA generation process:
query-count: how many queries per chunk to generatemax-chunks: how many chunks to take, nil will take them allGenerate a QnA dataset. First a `document` will be loaded and split into sentence chunks. The size of the chunk is a function of how many questions we are generating per chunk. Passed in options control the scope of the QnA generation process: - `query-count`: how many queries per chunk to generate - `max-chunks`: how many chunks to take, nil will take them all
(load-qna-dataset file-name)Load eval tuples from file (created via save-dataset)
Load eval tuples from file (created via `save-dataset`)
(qna->eval-dataset ds-id ds-data)Convert QnA data to a dataset format - a list of question to answer tuples
Convert QnA data to a dataset format - a list of question to answer tuples
(save-dataset ds-file ds)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |