Hello everyone,
I’ve been facing some challenges this past week while working on a Python script that identifies names displayed in a video. The script functions well, but I want to constrain GPT’s name-guessing to a predefined list. I have a CSV file containing over 1,000 names that I want to use as a knowledge base, so GPT only considers these names. One straightforward approach would be to include all the names in the prompt as a string, but this would result in a very lengthy prompt and consume a lot of tokens.
My idea was to create an assistant within the script (not on the platform) that could access the CSV file, but I’m struggling to figure out how to implement this.
Any help would be greatly appreciated.
Thanks in advance!