Skip to content

Commit

Permalink
optimize logs
Browse files Browse the repository at this point in the history
  • Loading branch information
cmgzn committed Oct 14, 2024
1 parent 12dccd8 commit 548a355
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/agentscope/rag/langchain_knowledge.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def _get_retriever(
**search_kwargs,
}
logger.info(
f"search_type: {search_type}\tsearch_kwargs: {search_kwargs}",
f"search_type: {search_type}; search_kwargs: {search_kwargs}",
)
retriever = VectorStoreRetriever(
vectorstore=self.vectorstore,
Expand Down Expand Up @@ -354,7 +354,7 @@ def retrieve(
return results
return retrieved

def refresh_index(self) -> list:
def refresh_index(self) -> None:
"""
Refresh the index when needed.
"""
Expand All @@ -380,4 +380,5 @@ def refresh_index(self) -> list:
source_id_key="source",
)
clean_results.append(clean_result)
return clean_results

logger.info(f"Refresh result: {clean_results}")

0 comments on commit 548a355

Please sign in to comment.