aboutsummaryrefslogtreecommitdiff
path: root/gn3/llms
diff options
context:
space:
mode:
authorAlexander_Kabui2024-05-16 13:17:18 +0300
committerAlexander_Kabui2024-05-16 13:17:18 +0300
commit167706bb417627b1d9fcacb7cdcebeafe886c1ba (patch)
tree57d55ce63d1c4d7909b403beec55ff50a83278c9 /gn3/llms
parent852f5c65cdf78c92012afcf9790d272b4e3f4419 (diff)
downloadgenenetwork3-167706bb417627b1d9fcacb7cdcebeafe886c1ba.tar.gz
Remove unused imports for llm.response file
Diffstat (limited to 'gn3/llms')
-rw-r--r--gn3/llms/response.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/gn3/llms/response.py b/gn3/llms/response.py
index 93320e9..7fce75b 100644
--- a/gn3/llms/response.py
+++ b/gn3/llms/response.py
@@ -45,29 +45,3 @@ class DocIDs():
return self.doc_ids[doc_id]
else:
return doc_id
-
-
-class RespContext():
- def __init__(self, context):
- self.cntxt = context
- self.theObj = {}
-
- def parseIntoObject(self, info):
- # check for obj, arr, or val
- for key, val in info.items():
- if isinstance(val, list):
- self.parseIntoObject(val)
- elif isinstance(val, str) or isinstance(val, int):
- self.theObj[key] = val
- self.theObj[key] = self.val
-
-
-def createAccordionFromJson(theContext):
- result = ''
- # loop thru json array
- for docID, summaryLst in theContext.items():
- # item is a key with a list
- comboTxt = ''
- for entry in summaryLst:
- comboTxt += '\t' + entry['text']
- return result