Extract multiple entities #929
Closed
kormilitzin
started this conversation in
General
Replies: 1 comment 1 reply
-
I found how to edit my code to rerun a list of cities. Thank you. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, I am using local LLMs to extract certain information from text, however the provided examples can only pull our only the first mention of the required information.
For example, you have a text: "I like travelling and visited Berlin, Paris and London." If I run the model, I get only "Berlin" identified and all other cities are ignored.
Below is my code snippet to reproduce the error. I am using a local instance of LLMs via Ollama.
and the output is:
city='Berlin'
How should I edit my code to get the output as a list of identified cities?
Beta Was this translation helpful? Give feedback.
All reactions