Liking cljdoc? Tell your friends :D

bosquet.eval.qna-generator


answering-promptclj

(answering-prompt question-count)
source

context-prompt-blockclj

source

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`
sourceraw docstring

format-constraintsclj

source

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
sourceraw 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`)
sourceraw docstring

max-chunksclj

source

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
sourceraw docstring

query-countclj

source

question-building-promptsclj

(question-building-prompts question-count)
source

question-setclj

source

response-setclj

source

save-datasetclj

(save-dataset ds-file ds)
source

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

× close