graphiti/graphiti_core/cross_encoder
alan blount 432ff7577d
feat(gemini): simplify config for Gemini clients (#679)
The cross_encoder for Gemini already supported passing in a custom client.

I replicated the same input pattern to embedder and llm_client.

The value is, you can support custom API endpoints and other options like below:

        cross_encoder=GeminiRerankerClient(
            client=genai.Client(
                api_key=os.environ.get('GOOGLE_GENAI_API_KEY'),
                http_options=types.HttpOptions(api_version='v1alpha')),
            config=LLMConfig(
                model="gemini-2.5-flash-lite-preview-06-17"
            )
        ))
2025-07-05 21:14:55 -07:00
..
__init__.py Refactor imports (#675) 2025-07-05 08:57:07 -07:00
bge_reranker_client.py Refactor imports (#675) 2025-07-05 08:57:07 -07:00
client.py Implement OpenAI Structured Output (#225) 2024-12-05 07:03:18 -08:00
gemini_reranker_client.py feat(gemini): simplify config for Gemini clients (#679) 2025-07-05 21:14:55 -07:00
openai_reranker_client.py feat: support OpenAIClient in OpenAIRerankerClient (#676) 2025-07-04 17:37:41 -07:00