Traceback (most recent call last):
File "z:\Documents\GitHub\qdrant test.py", line 16, in <module>
service_context = ServiceContext.from_defaults(chunk_size=512)
File "C:\Users\thecr\AppData\Local\Programs\Python\Python310\lib\site-packages\llama_index\service_context.py", line 178, in from_defaults
llm_predictor = llm_predictor or LLMPredictor(
File "C:\Users\thecr\AppData\Local\Programs\Python\Python310\lib\site-packages\llama_index\llm_predictor\base.py", line 109, in __init__
self._llm = resolve_llm(llm)
File "C:\Users\thecr\AppData\Local\Programs\Python\Python310\lib\site-packages\llama_index\llms\utils.py", line 19, in resolve_llm
from langchain.base_language import BaseLanguageModel
File "C:\Users\thecr\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\__init__.py", line 6, in <module>
from langchain.agents import MRKLChain, ReActChain, SelfAskWithSearchChain
File "C:\Users\thecr\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\agents\__init__.py", line 2, in <module>
from langchain.agents.agent import (
File "C:\Users\thecr\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\agents\agent.py", line 15, in <module>
from langchain.agents.tools import InvalidTool
File "C:\Users\thecr\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\agents\tools.py", line 7, in <module>
from langchain.tools.base import BaseTool
File "C:\Users\thecr\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\tools\__init__.py", line 3, in <module>
from langchain.tools.base import BaseTool
File "C:\Users\thecr\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\tools\base.py", line 9, in <module>
from langchain.callbacks import get_callback_manager
File "C:\Users\thecr\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\callbacks\__init__.py", line 6, in <module>
from langchain.callbacks.aim_callback import AimCallbackHandler
File "C:\Users\thecr\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\callbacks\aim_callback.py", line 4, in <module>
from langchain.callbacks.base import BaseCallbackHandler
File "C:\Users\thecr\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\callbacks\base.py", line 7, in <module>
from langchain.schema import AgentAction, AgentFinish, LLMResult
File "C:\Users\thecr\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\schema.py", line 143, in <module>
class ChatGeneration(Generation):
File "C:\Users\thecr\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\schema.py", line 150, in ChatGeneration
def set_text(cls, values: Dict[str, Any]) -> Dict[str, Any]:
File "C:\Users\thecr\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic\deprecated\class_validators.py", line 231, in root_validator
return root_validator()(*__args) # type: ignore
File "C:\Users\thecr\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic\deprecated\class_validators.py", line 237, in root_validator
raise PydanticUserError(
pydantic.errors.PydanticUserError: If you use `@root_validator` with pre=False (the default) you MUST specify `skip_on_failure=True`. Note that `@root_validator` is deprecated and should be replaced with `@model_validator`.
For further information visit https://errors.pydantic.dev/2.6/u/root-validator-pre-skip
Getting this error when trying to use Qdrant db, via api and local. Moving on to trying chromadb...