Skip to content

Commit

Permalink
[no ci] minor edit
Browse files Browse the repository at this point in the history
  • Loading branch information
amaiya committed May 10, 2023
1 parent f840efb commit d53e855
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@

### News and Announcements
- **2023-05-10**
- **ktrain 0.37.x** is released and supports a generative question-answering using OpenAI models like GPT-3.5-turbo. Ask a large text corpus questions and receive answers with citations into your corpus.See the [example notebook](https://nbviewer.jupyter.org/github/amaiya/ktrain/blob/develop/examples/text/question_answering_with_openai.ipynb) for more information.
- **ktrain 0.37.x** is released and supports a generative question-answering using OpenAI models like GPT-3.5-turbo via the LangChain and Paper-QA packages. Ask a large text corpus questions and receive answers with citations into your corpus.See the [example notebook](https://nbviewer.jupyter.org/github/amaiya/ktrain/blob/develop/examples/text/question_answering_with_openai.ipynb) for more information.
```python
import os
os.environ['OPENAI_API_KEY'] = 'ENTER YOUR OPENAI API KEY HERE'
from ktrain .text.qa import GenerativeQA
genqa = GenerativeQA()
genqa.add_doc(text=your_text_document)
genqa.add_doc(text=a_string_containing_text_of_your_document)
print(genqa.query('What is ktrain?'))
```

Expand Down

0 comments on commit d53e855

Please sign in to comment.