Skip to content

Commit

Permalink
added fix for entity classification happening in prompt api for prompt (
Browse files Browse the repository at this point in the history
#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]>
  • Loading branch information
3 people authored Aug 20, 2024
1 parent dff1c6c commit 2506711
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pebblo/app/service/prompt_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@ def process_request(self):
logger.debug("AI App prompt request processing started")

# getting prompt data
prompt_data = self._fetch_classified_data(
self.data.get("prompt", {}).get("data"), input_type="prompt"
)
prompt_data = self.data.get("prompt", {})

is_prompt_gov_enabled = self.data.get("prompt", {}).get(
"prompt_gov_enabled", False
Expand Down

0 comments on commit 2506711

Please sign in to comment.