Skip to content

Assistance with custom endpoint for NER #481

Discussion options

You must be logged in to vote

Figured out the solution - for anybody wondering, I had an ollama endpoint set up, and was able to query the LLM with a config like

[nlp]
lang = "en"
pipeline = ["llm"]
[components]
[components.llm]
factory = "llm"
[components.llm.task]
@llm_tasks = "spacy.NER.v3"
labels = ["label 1", "label 2", "label 3"]
[components.llm.model]
@llm_models = "langchain.Ollama.v1"
name =  "qwen2:7b"
config = {
    "base_url": "https://samplePlace.com",
    "temperature": 1.0
    }

Replies: 1 comment 1 reply

Comment options

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

Answer selected by bholmessyapse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants