Skip to content

Commit 2506711

Browse files
gr8nishandristysrivastavadristy.cd
authored
added fix for entity classification happening in prompt api for prompt (#482)
* Adding confidence score to entities and topic responses (#460) * Adding confidence score to entities and topic responses * Adding labels and fixing UTS * Adding utils * Fixing UT * Remove unused imports * Updating topic classifier --------- Co-authored-by: dristy.cd <[email protected]> * Added changes for prompt group * resolved linting issue * conflic check fixes * added changes for adding ip address in entity classifier * added test case for ip address * added fix for entity classification happening in prompt api for prompt --------- Co-authored-by: Dristy Srivastava <[email protected]> Co-authored-by: dristy.cd <[email protected]>
1 parent dff1c6c commit 2506711

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pebblo/app/service/prompt_service.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,7 @@ def process_request(self):
143143
logger.debug("AI App prompt request processing started")
144144

145145
# getting prompt data
146-
prompt_data = self._fetch_classified_data(
147-
self.data.get("prompt", {}).get("data"), input_type="prompt"
148-
)
146+
prompt_data = self.data.get("prompt", {})
149147

150148
is_prompt_gov_enabled = self.data.get("prompt", {}).get(
151149
"prompt_gov_enabled", False

0 commit comments

Comments
 (0)