We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e89c22 commit cf7ce9fCopy full SHA for cf7ce9f
examples/pydantic_ai_examples/rag.py
@@ -115,7 +115,7 @@ async def build_search_db():
115
async with httpx.AsyncClient() as client:
116
response = await client.get(DOCS_JSON)
117
response.raise_for_status()
118
- sections = sessions_ta.validate_json(response.content)
+ sections = sections_ta.validate_json(response.content)
119
120
openai = AsyncOpenAI()
121
logfire.instrument_openai(openai)
@@ -183,7 +183,7 @@ def embedding_content(self) -> str:
183
return '\n\n'.join((f'path: {self.path}', f'title: {self.title}', self.content))
184
185
186
-sessions_ta = TypeAdapter(list[DocsSection])
+sections_ta = TypeAdapter(list[DocsSection])
187
188
189
# pyright: reportUnknownMemberType=false
0 commit comments