mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-10 20:35:17 +02:00
fix: increase top_k from 5 to 10 to match knowledge base
This commit is contained in:
parent
abd3bace53
commit
2c3d625b35
1 changed files with 3 additions and 3 deletions
|
|
@ -82,7 +82,7 @@ def format_surfsense_docs_results(results: list[tuple]) -> str:
|
|||
async def search_surfsense_docs_async(
|
||||
query: str,
|
||||
db_session: AsyncSession,
|
||||
top_k: int = 5,
|
||||
top_k: int = 10,
|
||||
) -> str:
|
||||
"""
|
||||
Search Surfsense documentation using vector similarity.
|
||||
|
|
@ -127,7 +127,7 @@ def create_search_surfsense_docs_tool(db_session: AsyncSession):
|
|||
"""
|
||||
|
||||
@tool
|
||||
async def search_surfsense_docs(query: str, top_k: int = 5) -> str:
|
||||
async def search_surfsense_docs(query: str, top_k: int = 10) -> str:
|
||||
"""
|
||||
Search Surfsense documentation for help with using the application.
|
||||
|
||||
|
|
@ -145,7 +145,7 @@ def create_search_surfsense_docs_tool(db_session: AsyncSession):
|
|||
|
||||
Args:
|
||||
query: The search query about Surfsense usage or features
|
||||
top_k: Number of documentation chunks to retrieve (default: 5)
|
||||
top_k: Number of documentation chunks to retrieve (default: 10)
|
||||
|
||||
Returns:
|
||||
Relevant documentation content formatted with chunk IDs for citations
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue