You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: update granite library examples to use Granite 4.1 3B adapters. (#981)
* Bumps docs/examples/intrinsics to 4.1.
The commented-out code in intrinsics.py still needs to be changed.
Signed-off-by: Nathan Fulton <gitcommit@nfulton.org>
* change query intrinsic examples to use 4.1
Signed-off-by: Nathan Fulton <gitcommit@nfulton.org>
* Change back to SWITCH to make later search/replace easier.
Signed-off-by: Nathan Fulton <gitcommit@nfulton.org>
* Updates examples for 3 intrinsics
* context_relevance: use 4.0 and leave comment explaining why.
* requirement check: switch to 4.1
* uncertainty: switch to 4.1
Signed-off-by: Nathan Fulton <gitcommit@nfulton.org>
* update AGENDA.md to granite 4.1
Signed-off-by: Nathan Fulton <gitcommit@nfulton.org>
* mention context-relevance model availability in AGENTS.md
long-term it probably makes sense to add another column to the
intrinsics list.
Signed-off-by: Nathan Fulton <gitcommit@nfulton.org>
* Adds 3b/8b/30b models to BASE_MODEL_TO_CANONICAL_NAME
Signed-off-by: Nathan Fulton <gitcommit@nfulton.org>
* Adds 4.1-3b to _LOCAL_BASE_MODELS for intrinsics formatter tests.
Signed-off-by: Nathan Fulton <gitcommit@nfulton.org>
* Changes tests and examples from 4.0 to 4.1
Signed-off-by: Nathan Fulton <gitcommit@nfulton.org>
* requirement_check -> requirement-check
Signed-off-by: Nathan Fulton <gitcommit@nfulton.org>
* A little bit of style cleanup.
Signed-off-by: Nathan Fulton <gitcommit@nfulton.org>
---------
Signed-off-by: Nathan Fulton <gitcommit@nfulton.org>
Signed-off-by: Jake LoRocco <jake.lorocco@ibm.com>
Co-authored-by: Jake LoRocco <jake.lorocco@ibm.com>
Copy file name to clipboardExpand all lines: AGENTS.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -178,7 +178,7 @@ Intrinsics are specialized LoRA adapters that add task-specific capabilities (RA
178
178
|`rag`|`rewrite_question(question, context, backend)`| Rewrite question into a retrieval query |
179
179
|`rag`|`clarify_query(question, documents, context, backend)`| Generate clarification or return "CLEAR" |
180
180
|`rag`|`find_citations(response, documents, context, backend)`| Document sentences supporting the response |
181
-
|`rag`|`check_context_relevance(question, document, context, backend)`| Whether a document is relevant (0–1) |
181
+
|`rag`|`check_context_relevance(question, document, context, backend)`| Whether a document is relevant (0–1); only supported for granite-4.0, not granite-4.1|
182
182
|`rag`|`flag_hallucinated_content(response, documents, context, backend)`| Flag potentially hallucinated sentences |
183
183
184
184
```python
@@ -187,7 +187,7 @@ from mellea.stdlib.components import Message
187
187
from mellea.stdlib.components.intrinsic import core
0 commit comments