diff options
author | Alexander_Kabui | 2024-05-21 16:38:53 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-05-21 16:38:53 +0300 |
commit | 2a99da9f46233a28e9ea0b6a297d8a6b93f61923 (patch) | |
tree | c9f9ec1d8a34f877fce09ed3f2b41844c061ce9b /gn3/llms | |
parent | 8201936afc4a8330a3dfa25a26b3786f44e8e378 (diff) | |
download | genenetwork3-2a99da9f46233a28e9ea0b6a297d8a6b93f61923.tar.gz |
Remove obsolete functions.
Diffstat (limited to 'gn3/llms')
-rw-r--r-- | gn3/llms/process.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/gn3/llms/process.py b/gn3/llms/process.py index 4725bcb..eba7e4b 100644 --- a/gn3/llms/process.py +++ b/gn3/llms/process.py @@ -135,23 +135,3 @@ def get_gnqa(query, auth_token, data_dir=""): return task_id, answer, references else: return task_id, "We couldn't provide a response,Please try to rephrase your question to receive feedback", [] - - -def fetch_query_results(query, user_id, redis_conn): - """this method fetches prev user query searches""" - result = redis_conn.get(f"LLM:{user_id}-{query}") - if result: - return json.loads(result) - return { - "query": query, - "answer": "Sorry No answer for you", - "references": [], - "task_id": None - } - - -def get_user_queries(user_id, redis_conn): - """methos to fetch all queries for a specific user""" - results = redis_conn.keys(f"LLM:{user_id}*") - return [query for query in - [result.partition("-")[2] for result in results] if query != ""] |