Open alejandrocrosa opened 1 year ago
Unless tiktoken is installed you would get this error:
tiktoken
➜ notion-qa git:(master) ✗ python3 qa.py "who accepted an offer" Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/langchain/llms/openai.py", line 233, in get_num_tokens import tiktoken ModuleNotFoundError: No module named 'tiktoken'
Had the same problem. This fixes it.
Unless
tiktoken
is installed you would get this error: