diff --git a/examples/pydantic_ai_examples/rag.py b/examples/pydantic_ai_examples/rag.py index a71b835cfb..234659a054 100644 --- a/examples/pydantic_ai_examples/rag.py +++ b/examples/pydantic_ai_examples/rag.py @@ -115,7 +115,7 @@ async def build_search_db(): async with httpx.AsyncClient() as client: response = await client.get(DOCS_JSON) response.raise_for_status() - sections = sessions_ta.validate_json(response.content) + sections = sections_ta.validate_json(response.content) openai = AsyncOpenAI() logfire.instrument_openai(openai) @@ -183,7 +183,7 @@ def embedding_content(self) -> str: return '\n\n'.join((f'path: {self.path}', f'title: {self.title}', self.content)) -sessions_ta = TypeAdapter(list[DocsSection]) +sections_ta = TypeAdapter(list[DocsSection]) # pyright: reportUnknownMemberType=false