Liking cljdoc? Tell your friends :D

bosquet.eval.qna-generator


answering-promptclj


context-prompt-blockclj


document->datasetclj

(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`
raw docstring

format-constraintsclj


generate-qna-datasetclj

(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 generate
  • max-chunks: how many chunks to take, nil will take them all
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 generate
- `max-chunks`: how many chunks to take, nil will take them all
raw docstring

load-qna-datasetclj

(load-qna-dataset file-name)

Load eval tuples from file (created via save-dataset)

Load eval tuples from file (created via `save-dataset`)
raw docstring

max-chunksclj


qna->eval-datasetclj

(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
raw docstring

query-countclj


question-building-promptsclj


question-setclj


response-setclj


save-datasetclj

(save-dataset ds-file ds)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close