TypeError afer running
i got the TypeError after running my code:
` import os os.environ["OPENAI_API_KEY"] = "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" from embedchain import App
naval_chat_bot = App()
naval_chat_bot.add("youtube_video", "https://www.youtube.com/watch?v=3qHkcs3kG44") naval_chat_bot.add("pdf_file", "https://navalmanack.s3.amazonaws.com/Eric-Jorgenson_The-Almanack-of-Naval-Ravikant_Final.pdf") naval_chat_bot.add("web_page", "https://nav.al/feedback") naval_chat_bot.add("web_page", "https://nav.al/agi")
naval_chat_bot.add_local("qna_pair", ("Who is Naval Ravikant?", "Naval Ravikant is an Indian-American entrepreneur and investor."))
naval_chat_bot.query("What unique capacity does Naval argue humans possess when it comes to understanding explanations or concepts?") ` exact the same as demo
the error:
` TypeError Traceback (most recent call last) Input In [15], in <cell line: 3>() 1 import os 2 os.environ["OPENAI_API_KEY"] = "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" ----> 3 from embedchain import App 5 naval_chat_bot = App() 7 # Embed Online Resources
File ~/anaconda3/lib/python3.9/site-packages/embedchain/init.py:1, in
File ~/anaconda3/lib/python3.9/site-packages/embedchain/embedchain.py:16, in
File ~/anaconda3/lib/python3.9/site-packages/embedchain/vectordb/chroma_db.py:1, in
File ~/anaconda3/lib/python3.9/site-packages/chromadb/init.py:6, in
File ~/anaconda3/lib/python3.9/site-packages/chromadb/api/init.py:5, in
File ~/anaconda3/lib/python3.9/site-packages/chromadb/api/models/Collection.py:4, in
File ~/anaconda3/lib/python3.9/site-packages/chromadb/utils/embedding_functions.py:8, in
File ~/anaconda3/lib/python3.9/site-packages/numpy/typing/init.py:158, in numpy.typing)
(...)
153
154 """
155 # NOTE: The API section will be appended with additional entries
156 # further down in this file
--> 158 from numpy._typing import (
159 ArrayLike,
160 DTypeLike,
161 NBitBase,
162 NDArray,
163 )
165 all = ["ArrayLike", "DTypeLike", "NBitBase", "NDArray"]
167 if doc is not None:
File ~/anaconda3/lib/python3.9/site-packages/numpy/_typing/init.py:148, in
File ~/anaconda3/lib/python3.9/site-packages/numpy/_typing/_scalars.py:13, in <X>Like_co type-aliases below represent all scalars that can be
11 # coerced into <X> (with the casting rule same_kind)
12 BoolLike_co = Union[bool, np.bool]
---> 13 _UIntLike_co = Union[_BoolLike_co, np.unsignedinteger[Any]]
14 _IntLike_co = Union[_BoolLike_co, int, np.integer[Any]]
15 _FloatLike_co = Union[_IntLike_co, float, np.floating[Any]]
TypeError: 'type' object is not subscriptable ` mybe it's because the numpy version?