graphiti/graphiti_core
Daniel Chalef b2ff050e57
Make natural language extraction configurable (#943)
Replace MULTILINGUAL_EXTRACTION_RESPONSES constant with configurable
get_extraction_language_instruction() function to improve determinism
and allow customization.

Changes:
- Replace constant with function in client.py
- Update all LLM client implementations to use new function
- Maintain backward compatibility with same default behavior
- Enable users to override function for custom language requirements

Users can now customize extraction behavior by monkey-patching:
```python
import graphiti_core.llm_client.client as client
client.get_extraction_language_instruction = lambda: "Custom instruction"
```

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

Co-authored-by: Claude <noreply@anthropic.com>
2025-09-30 11:09:03 -04: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 Make natural language extraction configurable (#943) 2025-09-30 11:09:03 -04: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 Improve JSON entity extraction prompt (#949) 2025-09-30 11:00:14 -04:00
search fix-fulltext-syntax-error (#914) 2025-09-23 10:52:44 -04:00
telemetry feat: add telemetry with PostHog and update Docker configurations (#633) 2025-06-27 12:23:30 -07:00
utils Allow Edge extraction to keep discovered edge labels (#950) 2025-09-29 21:32:47 -07:00
__init__.py chore: Fix packaging (#38) 2024-08-25 10:07:50 -07:00
edges.py OpenSearch updates (#906) 2025-09-14 01:43:37 -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 Allow Edge extraction to keep discovered edge labels (#950) 2025-09-29 21:32:47 -07:00
graphiti_types.py ensure ascii default to false (#817) 2025-08-08 11:20:02 -04:00
helpers.py fix-fulltext-syntax-error (#914) 2025-09-23 10:52:44 -04:00
nodes.py OpenSearch updates (#906) 2025-09-14 01:43:37 -04:00
py.typed Add py.typed file (#105) 2024-09-11 08:44:06 -04:00