pinecone-io / canopy

Retrieval Augmented Generation (RAG) framework and context engine powered by Pinecone
https://www.pinecone.io/
Apache License 2.0
955 stars 118 forks source link

Please update tiktoken > 0.4 for canopy-sdk #318

Open ForkedInTime opened 7 months ago

ForkedInTime commented 7 months ago

tiktoken is a requirement for canopy-sdk. During canopy use via jupyter: llama index is outdated:

warnings.filterwarnings('ignore') from trulens_eval.tru_custom_app import instrument

from canopy.context_engine import ContextEngine instrument.method(ContextEngine, "query")

from canopy.chat_engine import ChatEngine instrument.method(ChatEngine, "chat")

Using legacy llama_index version None. Consider upgrading to 0.10.0 or later.
(ok but how? what is the package name?)

Installing collected packages: tiktoken Attempting uninstall: tiktoken Found existing installation: tiktoken 0.6.0 Uninstalling tiktoken-0.6.0: Successfully uninstalled tiktoken-0.6.0 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. langchain-openai 0.0.7 requires tiktoken<1,>=0.5.2, but you have tiktoken 0.3.3 which is incompatible. (I should not have to create a new environment just for canopy) Successfully installed tiktoken-0.3.3

Downloading tiktoken-0.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 18.9 MB/s eta 0:00:00 Installing collected packages: tiktoken Attempting uninstall: tiktoken Found existing installation: tiktoken 0.3.3 Uninstalling tiktoken-0.3.3: Successfully uninstalled tiktoken-0.3.3 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. canopy-sdk 0.8.1 requires tiktoken<0.4.0,>=0.3.3, but you have tiktoken 0.6.0 which is incompatible.