aboutsummaryrefslogtreecommitdiff
path: root/gn3/llms/response.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/llms/response.py')
-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