Skip to content

Commit 7ed66ff

Browse files
authored
docs: fix typos in testing-evals and RAG example (#694)
1 parent ec9417c commit 7ed66ff

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/testing-evals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def weather_forecast(
6262
return ctx.deps.get_forecast(location, forecast_date)
6363

6464

65-
async def run_weather_forecast( # (3)!
65+
async def run_weather_forecast( # (4)!
6666
user_prompts: list[tuple[str, int]], conn: DatabaseConn
6767
):
6868
"""Run weather forecast for a list of user prompts and save."""

examples/pydantic_ai_examples/rag.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ async def insert_doc_section(
142142
exists = await pool.fetchval('SELECT 1 FROM doc_sections WHERE url = $1', url)
143143
if exists:
144144
logfire.info('Skipping {url=}', url=url)
145+
return
145146

146147
with logfire.span('create embedding for {url=}', url=url):
147148
embedding = await openai.embeddings.create(

0 commit comments

Comments
 (0)