Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confidence score changes for DB #523

Merged

Conversation

dristysrivastava
Copy link
Collaborator

@dristysrivastava dristysrivastava commented Aug 30, 2024

Added confidence score functionality for apps with storage as DB

self._get_snippet_details(
topic_data["snippetIds"], app_data["owner"]
)
for entity, entity_data in app_data.get("docEntities").items():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if app_data.get("docEntities") is None this line will throw an error

if not findings_exists:
logger.debug("finding not exist")
findings = {
"appName": app_data["name"],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name , count , and snippetId, documents, owner will always have all these values present. any scenario when they will be missing

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These values will always be there

total_snippet_count += findings["snippetCount"]
shallow_copy = findings.copy()
self.loader_findings_list.append(shallow_copy)
del findings["snippets"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will snippet be always there any scenario where it will not be present

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be always there, as we are creating findings in line no 103

@dristysrivastava dristysrivastava merged commit 75d6238 into daxa-ai:main Sep 2, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants