Skip to content
Discussion options

You must be logged in to vote

Hi @rshahrabani,

Sorry that this has been confusing. Basically there are two ways to instantiate an llm component for a spaCy nlp pipeline:

  1. Specifying a config file. If you want to run various experiments and test different things, I'd highly recommend you get familiar with the config file, as it gives you a lot of flexibility and power. You can find more information here and various examples can be found in our examples folder.

Example:

[components.llm]
factory = "llm"

[components.llm.model]
@llm_models = "spacy.Dolly.v1"
name = "dolly-v2-3b"

[components.llm.task]
@llm_tasks = "spacy.NER.v3"
labels = PERSON,ORGANISATION,LOCATION
examples = null
  1. Using the built-in factories like "ll…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by svlandeg
Comment options

You must be logged in to vote
1 reply
@svlandeg
Comment options

Comment options

You must be logged in to vote
1 reply
@svlandeg
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usage General spaCy usage feat/llm Feature: LLMs (incl. spacy-llm)
2 participants
Converted from issue

This discussion was converted from issue #13076 on October 23, 2023 09:31.