Skip to content

Instantly share code, notes, and snippets.

@fsndzomga
Created September 4, 2023 13:14
Show Gist options
  • Save fsndzomga/e0fb13bc77687c36138964e62162b0a3 to your computer and use it in GitHub Desktop.
Save fsndzomga/e0fb13bc77687c36138964e62162b0a3 to your computer and use it in GitHub Desktop.
Config file for the Spacy LLM pipeline
[nlp]
lang = "en"
pipeline = ["llm"]
[components]
[components.llm]
factory = "llm"
[components.llm.task]
@llm_tasks = "spacy.TextCat.v2"
labels = ["COMPLIMENT", "INSULT"]
[components.llm.model]
@llm_models = "spacy.GPT-3-5.v1"
config = {"temperature": 0.3}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment