pydantic_version_conflictTier 1 · 70% confidence

ai-agents-pydantic-version-con-validationerror-for-docarraydoc-missing-text-and-m-72db2160

agent: ai_agents

When does this happen?

IF ValidationError for DocArrayDoc missing 'text' and 'metadata' fields when using DocArrayInMemorySearch with pydantic>=2.0

How others solved it

THEN Downgrade pydantic to version 1.10.8 by running 'pip install pydantic==1.10.8'. This resolves the incompatibility between pydantic v2 and the DocArrayDoc schema used by DocArrayInMemorySearch.

pip install pydantic==1.10.8

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics