Skip to content

Commit

Permalink
fix: disable refine with kg by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Mini256 committed Jan 10, 2025
1 parent 39319ed commit 9f3859b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/app/api/admin_routes/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ class ChatEngineBasedRetrieveRequest(BaseModel):
top_k: Optional[int] = 5
similarity_top_k: Optional[int] = None
oversampling_factor: Optional[int] = 5
enable_kg_enchance_query_refine: Optional[bool] = True
enable_kg_enchance_query_refine: Optional[bool] = False
2 changes: 1 addition & 1 deletion backend/app/api/admin_routes/retrieve.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def embedding_retrieve(
top_k: Optional[int] = 5,
similarity_top_k: Optional[int] = None,
oversampling_factor: Optional[int] = 5,
enable_kg_enchance_query_refine: Optional[bool] = True,
enable_kg_enchance_query_refine: Optional[bool] = False,
) -> List[NodeWithScore]:
try:
return retrieve_service.chat_engine_retrieve_chunks(
Expand Down

0 comments on commit 9f3859b

Please sign in to comment.