Skip to content

Commit

Permalink
Merge pull request openai#295 from liuliuOD/fix/text_explanation_exam…
Browse files Browse the repository at this point in the history
…ples

fix: adjust spelling and highlight in text_explanation_examples.md
  • Loading branch information
ted-at-openai authored Apr 5, 2023
2 parents 5126855 + 66762a7 commit 6df6cef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions text_explanation_examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Large language models are useful for distilling information from long texts. Applications include:

* Answering questions about a piece of text, e.g.:
* Querying an knowledge base to help people look up things they don't know
* Querying a knowledge base to help people look up things they don't know
* Querying an unfamiliar document to understand what it contains
* Querying a document with structured questions in order to extract tags, classes, entities, etc.
* Summarizing text, e.g.:
Expand Down Expand Up @@ -78,9 +78,9 @@ The triple quotation marks `"""` used in these example prompts aren't special; G

If you want to classify the text, the best approach depends on whether the classes are known in advance.

If your classes _are_ known in advance, classification is often best done with a fine-tuned model, as demonstrated in [Fine-tuned_classification.ipynb](examples/Fine-tuned_classification.ipynb).
If your classes _`are`_ known in advance, classification is often best done with a fine-tuned model, as demonstrated in [Fine-tuned_classification.ipynb](examples/Fine-tuned_classification.ipynb).

If your classes are not known in advance (e.g., they are set by a user or generated on the fly), you can try zero-shot classification by either giving an instruction containing the classes or even by using embeddings to see which class label (or other classified texts) are most similar to the text (as demonstrated in [Zero-shot_classification.ipynb](examples/Zero-shot_classification_with_embeddings.ipynb)).
If your classes _`are not`_ known in advance (e.g., they are set by a user or generated on the fly), you can try zero-shot classification by either giving an instruction containing the classes or even by using embeddings to see which class label (or other classified texts) is most similar to the text (as demonstrated in [Zero-shot_classification.ipynb](examples/Zero-shot_classification_with_embeddings.ipynb)).

## Entity extraction

Expand Down

0 comments on commit 6df6cef

Please sign in to comment.