-
Notifications
You must be signed in to change notification settings - Fork 54
/
DESCRIPTION.txt
46 lines (33 loc) · 1.39 KB
/
DESCRIPTION.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
SelfCheckGPT
=====================================================
- Code for our paper "SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Models", https://arxiv.org/abs/2303.08896
- More information can be found on our project page: https://github.com/potsawee/selfcheckgpt
Installation
-----------------------------------------------------
::
pip install selfcheckgpt
SelfCheckGPT Usage
-----------------------------------------------------
See more details in Jupyter Notebook: https://github.com/potsawee/selfcheckgpt/blob/main/demo/SelfCheck_demo1.ipynb
.. code:: python
from selfcheckgpt.modeling_selfcheck import SelfCheckMQAG, SelfCheckBERTScore
selfcheck_mqag = SelfCheckMQAG()
selfcheck_bertscore = SelfCheckBERTScore()
sent_scores_mqag = selfcheck_mqag.predict(
sentences,
passage,
[sample1, sample2, sample3],
num_questions_per_sent = 5,
scoring_method = 'bayes_with_alpha',
beta1 = 0.8, beta2 = 0.8,
)
sent_scores_bertscore = selfcheck_bertscore.predict(
sentences,
[sample1, sample2, sample3],
)
MQAG Usage
-----------------------------------------------------
See more details in Jupyter Notebook: https://github.com/potsawee/selfcheckgpt/blob/main/demo/MQAG_demo1.ipynb
.. code:: python
from selfcheckgpt.modeling_mqag import MQAG
mqag_model = MQAG()