Skip to content

Commit e7ebee8

Browse files
guguoyiMilo Gu
andauthored
fix(docs): keep same pattern when use vector db with setting embedder (#468)
## Description Demo code should keep same pattern, when use vector db with setting embedder. Should not one set, but other not. ## Type of Change - [ ] Bug fix (errors, broken links, outdated info) - [ ] New content - [X] Content improvement - [ ] Other: \_\_\_\_ ## Related Issues/PRs (if applicable) <!-- Link any related issues or PRs --> - Closes #\_\_\_\_ - Related SDK PR: agno-agi/agno#\_\_\_\_ ## Checklist - [x] Content is accurate and up-to-date - [x] All links tested and working - [x] Code examples verified (if applicable) - [x] Spelling and grammar checked - [x] Screenshots updated (if applicable) Co-authored-by: Milo Gu <milo.gu@maiscrm.com>
1 parent 4117975 commit e7ebee8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

knowledge/agents/overview.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ Let's build a **RAG Agent** that answers questions from a PDF.
242242
import asyncio
243243
from agno.agent import Agent
244244
from agno.models.openai import OpenAIResponses
245+
from agno.knowledge.embedder.openai import OpenAIEmbedder
245246
from agno.knowledge.knowledge import Knowledge
246247
from agno.vectordb.pgvector import PgVector
247248

@@ -257,6 +258,7 @@ Let's build a **RAG Agent** that answers questions from a PDF.
257258
vector_db=PgVector(
258259
table_name="recipes",
259260
db_url=db_url,
261+
embedder=OpenAIEmbedder(),
260262
)
261263
)
262264

0 commit comments

Comments
 (0)