Update qa agent search limit to 5
This commit is contained in:
parent
b5892699a0
commit
03c1f356b2
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ class QuestionAnswerAgent:
|
||||||
async def search_documents(
|
async def search_documents(
|
||||||
ctx: RunContext[Dependencies],
|
ctx: RunContext[Dependencies],
|
||||||
query: str,
|
query: str,
|
||||||
limit: int = 3,
|
limit: int = 5,
|
||||||
) -> list[SearchResult]:
|
) -> list[SearchResult]:
|
||||||
"""Search the knowledge base for relevant documents."""
|
"""Search the knowledge base for relevant documents."""
|
||||||
search_results = await ctx.deps.client.search(query, limit=limit)
|
search_results = await ctx.deps.client.search(query, limit=limit)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue