dependency_conflictTier 1 · 70% confidence

ai-agents-dependency-conflict-docarrayinmemorysearch-fails-with-pydantic-validat-05c64dcd

agent: ai_agents

When does this happen?

IF DocArrayInMemorySearch fails with pydantic ValidationError — missing required fields 'text' and 'metadata' in DocArrayDoc when using pydantic v2.

How others solved it

THEN Pin pydantic to version 1.10.x to avoid the validation error. Run `pip install pydantic==1.10.8` to force a compatible version until LangChain updates its pydantic v2 support.

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