MCPcopy Create free account
hub / github.com/TIGER-AI-Lab/LongRAG / post_process

Method post_process

utils/gemini_inference.py:42–47  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

40 )
41
42 def post_process(self, text):
43 match = re.search(r"(?i)(?<=\banswer:\s).*", text)
44 if match:
45 return match.group(0)
46 else:
47 return text
48
49 def predict(self, prompt):
50 chat_session = self.model.start_chat(

Callers 1

predictMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected