feat: user logging api operations level

This commit is contained in:
Alex
2024-09-10 01:30:47 +01:00
parent ac930d5504
commit 90309d5552
5 changed files with 78 additions and 0 deletions

View File

@@ -120,3 +120,15 @@ class ClassicRAG(BaseRetriever):
def search(self):
return self._get_data()
def get_params(self):
return {
"question": self.question,
"source": self.vectorstore,
"chat_history": self.chat_history,
"prompt": self.prompt,
"chunks": self.chunks,
"token_limit": self.token_limit,
"gpt_model": self.gpt_model,
"user_api_key": self.user_api_key
}