> For the complete documentation index, see [llms.txt](https://docs.suggestic.com/graphql/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.suggestic.com/graphql/start-here/core-concepts/adherence-score.md).

# Adherence Score

Suggestic's Adherence Score (0 o 100) represents how good of a match (higher is better) is a particular food recommendation with the user's [program ](https://docs.suggestic.com/graphql/start-here/core-concepts/programs-diets-and-rulesets)and [profile](https://docs.suggestic.com/graphql/start-here/core-concepts/user-profile), and it is used as a proxy for the "healthiness" of a food.

The score is calculated by comparing each ingredient of an item with all the user's program rules and their action type. Generally speaking, ingredients that match an increase-type rule will add to the score, ingredients that should be decreases will lower the score, and ingredients that should be avoided will move the score to 0.

The Adherence Score's objective is to provide a simple way to determine the general compliance of food with a diet, as a whole, and not only if it's allowed or not. For example, a salad made of only lettuce will not score very high on a vegan diet because although it is permitted, it lacks many of the recommended foods and nutrients required by the diet.&#x20;

![Example of use of the adherence score on the Suggestic App](/files/-M9yRqPH3LRofO2pXj3r)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.suggestic.com/graphql/start-here/core-concepts/adherence-score.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
