Chat-RAG icon indicating copy to clipboard operation
Chat-RAG copied to clipboard

Pydantic Warnings

Open JakeFurtaw opened this issue 2 years ago • 1 comments

Issue

When you first load the program you get 3 UserWarnings from Pydantic. This isn't a serious problem but id like to resolve it.

Warning Messages

UserWarning: Field "model_id" has conflict with protected namespace "model_".

You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
  warnings.warn(
UserWarning: Field "model_name" has conflict with protected namespace "model_".

You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
  warnings.warn(
UserWarning: Field "model_kwargs" has conflict with protected namespace "model_".

You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
  warnings.warn(

JakeFurtaw avatar Aug 31 '24 11:08 JakeFurtaw

Likely occurred with early Pydantic v2 + pre-split LlamaIndex. Current versions no longer trigger it

saksham-jain177 avatar Dec 29 '25 09:12 saksham-jain177