diff --git a/src/agentscope/rag/langchain_knowledge.py b/src/agentscope/rag/langchain_knowledge.py index 6ed54b082..d416a8b44 100644 --- a/src/agentscope/rag/langchain_knowledge.py +++ b/src/agentscope/rag/langchain_knowledge.py @@ -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, @@ -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. """ @@ -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}")