Find answers from the community

Updated 3 months ago

Hi, is it possible to use gemini/open ai

Hi, is it possible to use gemini/open ai for entity metadata extraction here instead of default tomaarsen/span-marker-mbert-base-multinerd?
entity_extractor = EntityExtractor(prediction_threshold=0.5, label_entities=False, # include the entity label in the document (can be erroneous)
device="cpu", # set to "cuda" if you have a GPU
)
L
1 comment
yes, but it would be super slow (and cost a of tokens)

You can define some pydantic class
https://docs.llamaindex.ai/en/stable/examples/metadata_extraction/PydanticExtractor/?h=pydantic

I've been meaning to add a gliner integration as well, gliner is great
Add a reply
Sign up and join the conversation on Discord