graphiti/graphiti_core/llm_client
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
..
__init__.py Add support for falkordb (#575) 2025-06-13 12:06:57 -04:00
anthropic_client.py Refactor imports (#675) 2025-07-05 08:57:07 -07:00
azure_openai_client.py Azure OpenAI improvements and fixes; Improve Graphiti Azure OpenAI config (#620) 2025-06-25 14:48:12 -04:00
client.py Make natural language extraction configurable (#943) 2025-09-30 11:09:03 -04:00
config.py Gpt 5 default (#849) 2025-08-21 12:10:57 -04:00
errors.py Anthropic client (#361) 2025-04-16 12:35:07 -07:00
gemini_client.py Make natural language extraction configurable (#943) 2025-09-30 11:09:03 -04:00
groq_client.py Refactor imports (#675) 2025-07-05 08:57:07 -07:00
openai_base_client.py Make natural language extraction configurable (#943) 2025-09-30 11:09:03 -04:00
openai_client.py Gpt 5 default (#849) 2025-08-21 12:10:57 -04:00
openai_generic_client.py Make natural language extraction configurable (#943) 2025-09-30 11:09:03 -04:00
utils.py update new names with input_data (#204) 2024-10-29 11:03:31 -04:00