Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Add GLiNER example to docs

davidmezzetti6e55f7a862e8
diff --git a/docs/pipeline/text/entity.md b/docs/pipeline/text/entity.md
index 33e7a08a..5ff6fbd6 100644
--- a/docs/pipeline/text/entity.md
+++ b/docs/pipeline/text/entity.md
@@ -16,6 +16,11 @@ from txtai.pipeline import Entity
entity = Entity()
entity("Canada's last fully intact ice shelf has suddenly collapsed, " \
"forming a Manhattan-sized iceberg")
+
+# Extract entities using a GLiNER model which supports dynamic labels
+entity = Entity("gliner-community/gliner_medium-v2.5")
+entity("Canada's last fully intact ice shelf has suddenly collapsed, " \
+ "forming a Manhattan-sized iceberg", labels=["country", "city"])
```
See the link below for a more detailed example.