ianarawjo / ChainForge

An open-source visual programming environment for battle-testing prompts to LLMs.

Home Page:https://chainforge.ai/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Global Python Scripts" node confusion

AreChen opened this issue · comments

Can I reference by importing external python modules?
For example, import tiktoken for token counting.
How should I use it if possible?
image

If you want to import, just use an import statement like normal at the top of your Python in the Eval node! You have to turn off sandboxing, though.