graphiti/graphiti_core
Daniel Chalef d430ab82b4 Add group_id parameter to get_extraction_language_instruction
Enable consumers to provide group-specific language extraction
instructions by passing group_id through the call chain.

Changes:
- Add optional group_id parameter to get_extraction_language_instruction()
- Add group_id parameter to all LLMClient.generate_response() methods
- Pass group_id through to language instruction function
- Maintain backward compatibility with default None value

Users can now customize extraction per group:
```python
def custom_instruction(group_id: str | None = None) -> str:
    if group_id == 'spanish-users':
        return '\n\nExtract in Spanish.'
    return '\n\nExtract in original language.'

client.get_extraction_language_instruction = custom_instruction
```

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-02 15:38:50 -07:00
..
cross_encoder fix typo and model selector (#843) 2025-08-18 11:15:45 -04:00
driver Graph quality updates (#922) 2025-09-23 17:53:39 -04:00
embedder OpenSearch Integration for Neo4j (#896) 2025-09-09 10:51:46 -04:00
llm_client Add group_id parameter to get_extraction_language_instruction 2025-10-02 15:38:50 -07:00
migrations cleanup (#894) 2025-09-05 11:30:46 -04:00
models OpenSearch Integration for Neo4j (#896) 2025-09-09 10:51:46 -04:00
prompts Remove ensure_ascii configuration parameter (#969) 2025-10-02 15:10:57 -07:00
search Remove ensure_ascii configuration parameter (#969) 2025-10-02 15:10:57 -07:00
telemetry feat: add telemetry with PostHog and update Docker configurations (#633) 2025-06-27 12:23:30 -07:00
utils Remove ensure_ascii configuration parameter (#969) 2025-10-02 15:10:57 -07:00
__init__.py chore: Fix packaging (#38) 2024-08-25 10:07:50 -07:00
edges.py filter out falsey values before creating embeddings (#966) 2025-10-02 15:26:51 -04:00
errors.py Add group ID validation and error handling (#618) 2025-06-24 09:33:54 -07:00
graph_queries.py Graph quality updates (#922) 2025-09-23 17:53:39 -04:00
graphiti.py Remove ensure_ascii configuration parameter (#969) 2025-10-02 15:10:57 -07:00
graphiti_types.py Remove ensure_ascii configuration parameter (#969) 2025-10-02 15:10:57 -07:00
helpers.py fix-fulltext-syntax-error (#914) 2025-09-23 10:52:44 -04:00
nodes.py filter out falsey values before creating embeddings (#966) 2025-10-02 15:26:51 -04:00
py.typed Add py.typed file (#105) 2024-09-11 08:44:06 -04:00