Chat-RAG
Chat-RAG copied to clipboard
Pydantic Warnings
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(
Likely occurred with early Pydantic v2 + pre-split LlamaIndex. Current versions no longer trigger it