Add commments for deprecated functions

This commit is contained in:
yangdx
2025-05-08 09:36:57 +08:00
parent 4a03218450
commit 3025094c62

View File

@@ -1479,6 +1479,7 @@ class LightRAG:
await self._query_done() await self._query_done()
return response return response
# TODO: Deprecated, use user_prompt in QueryParam instead
def query_with_separate_keyword_extraction( def query_with_separate_keyword_extraction(
self, query: str, prompt: str, param: QueryParam = QueryParam() self, query: str, prompt: str, param: QueryParam = QueryParam()
): ):
@@ -1500,6 +1501,7 @@ class LightRAG:
self.aquery_with_separate_keyword_extraction(query, prompt, param) self.aquery_with_separate_keyword_extraction(query, prompt, param)
) )
# TODO: Deprecated, use user_prompt in QueryParam instead
async def aquery_with_separate_keyword_extraction( async def aquery_with_separate_keyword_extraction(
self, query: str, prompt: str, param: QueryParam = QueryParam() self, query: str, prompt: str, param: QueryParam = QueryParam()
) -> str | AsyncIterator[str]: ) -> str | AsyncIterator[str]: