Challenges in Directing GPT 4o to Use Specific NLP Methods

Hey everyone,

I’m building a GPT bot that uses NLP methods to analyze texts. To ensure it performs the specific analyses I need (e.g., using embeddings instead of word count), I’ve guided it toward the relevant methods. However, to utilize the YAP tokenizer and the HeBERT embedding model, the bot needs access to specific Python libraries.

Even when it has internet access and knows which libraries to use, it still cannot access them.

How can I solve this issue? Is there a way to make this work?

Thanks in advance!

1 Like

Hi @ophir.zavitan and welcome to the community!

I don’t believe there is any way to enforce ChatGPT to use specific libraries, certainly not install anything on the internet. The Python interpreter that is invoked is a sandboxed VM that runs a very specific environment. You can state things like “Use OCR when analyzing this document…” and it will import pytesseract module since it’s part of this pre-installed environment.

2 Likes

Got it! Your comment was super useful—really appreciate it!

2 Likes