hwchase17 / notion-qa

MIT License
2.13k stars 376 forks source link

Update dependency requirement to run qa.py #10

Open alejandrocrosa opened 1 year ago

alejandrocrosa commented 1 year ago

Unless tiktoken is installed you would get this error:

➜  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'
samlaf commented 1 year ago

Had the same problem. This fixes it.