mem0
mem0 copied to clipboard
TypeError: unhashable type: 'list'
🐛 Describe the bug
I just wanna run the example of PDF file chatbot below.
from embedchain import App
app = App()
# Add Next.JS Website and docs
app.add("https://nextjs.org/sitemap.xml", data_type="sitemap")
# Add Next.JS Forum data
app.add("https://nextjs-forum.com/sitemap.xml", data_type="sitemap")
Error occured like this:
TypeError Traceback (most recent call last)
Cell In[1], [line 1](vscode-notebook-cell:?execution_count=1&line=1)
----> [1](vscode-notebook-cell:?execution_count=1&line=1) from embedchain import App
[2](vscode-notebook-cell:?execution_count=1&line=2) app = App()
[4](vscode-notebook-cell:?execution_count=1&line=4) # Add Next.JS Website and docs
File ~\AppData\Roaming\Python\Python39\site-packages\embedchain\__init__.py:5
[1](https://file+.vscode-resource.vscode-cdn.net/d%3A/Code/dive_into_llm/~/AppData/Roaming/Python/Python39/site-packages/embedchain/__init__.py:1) import importlib.metadata
[3](https://file+.vscode-resource.vscode-cdn.net/d%3A/Code/dive_into_llm/~/AppData/Roaming/Python/Python39/site-packages/embedchain/__init__.py:3) __version__ = importlib.metadata.version(__package__ or __name__)
----> [5](https://file+.vscode-resource.vscode-cdn.net/d%3A/Code/dive_into_llm/~/AppData/Roaming/Python/Python39/site-packages/embedchain/__init__.py:5) from embedchain.app import App # noqa: F401
[6](https://file+.vscode-resource.vscode-cdn.net/d%3A/Code/dive_into_llm/~/AppData/Roaming/Python/Python39/site-packages/embedchain/__init__.py:6) from embedchain.client import Client # noqa: F401
[7](https://file+.vscode-resource.vscode-cdn.net/d%3A/Code/dive_into_llm/~/AppData/Roaming/Python/Python39/site-packages/embedchain/__init__.py:7) from embedchain.pipeline import Pipeline # noqa: F401
File ~\AppData\Roaming\Python\Python39\site-packages\embedchain\app.py:16
[12](https://file+.vscode-resource.vscode-cdn.net/d%3A/Code/dive_into_llm/~/AppData/Roaming/Python/Python39/site-packages/embedchain/app.py:12) from embedchain.cache import (Config, ExactMatchEvaluation,
[13](https://file+.vscode-resource.vscode-cdn.net/d%3A/Code/dive_into_llm/~/AppData/Roaming/Python/Python39/site-packages/embedchain/app.py:13) SearchDistanceEvaluation, cache,
[14](https://file+.vscode-resource.vscode-cdn.net/d%3A/Code/dive_into_llm/~/AppData/Roaming/Python/Python39/site-packages/embedchain/app.py:14) gptcache_data_manager, gptcache_pre_function)
[15](https://file+.vscode-resource.vscode-cdn.net/d%3A/Code/dive_into_llm/~/AppData/Roaming/Python/Python39/site-packages/embedchain/app.py:15) from embedchain.client import Client
---> [16](https://file+.vscode-resource.vscode-cdn.net/d%3A/Code/dive_into_llm/~/AppData/Roaming/Python/Python39/site-packages/embedchain/app.py:16) from embedchain.config import AppConfig, CacheConfig, ChunkerConfig
[17](https://file+.vscode-resource.vscode-cdn.net/d%3A/Code/dive_into_llm/~/AppData/Roaming/Python/Python39/site-packages/embedchain/app.py:17) from embedchain.core.db.database import get_session, init_db, setup_engine
[18](https://file+.vscode-resource.vscode-cdn.net/d%3A/Code/dive_into_llm/~/AppData/Roaming/Python/Python39/site-packages/embedchain/app.py:18) from embedchain.core.db.models import DataSource
File ~\AppData\Roaming\Python\Python39\site-packages\embedchain\config\__init__.py:3
[1](https://file+.vscode-resource.vscode-cdn.net/d%3A/Code/dive_into_llm/~/AppData/Roaming/Python/Python39/site-packages/embedchain/config/__init__.py:1) # flake8: noqa: F401
...
--> [215](file:///D:/ProgramData/Anaconda3/envs/aigc/lib/typing.py:215) all_params = set(params)
[216](file:///D:/ProgramData/Anaconda3/envs/aigc/lib/typing.py:216) if len(all_params) < len(params):
[217](file:///D:/ProgramData/Anaconda3/envs/aigc/lib/typing.py:217) new_params = []
TypeError: unhashable type: 'list'
How can I fix this problem?
Hi @wbzhang233, I could not replicate this... could you please upgrade to the latest version of embedchain and re-try?
Please let me know you config if error persists.
Closing since stale issue.