Package com.oracle.coherence.rag.model.anthropic


package com.oracle.coherence.rag.model.anthropic
Anthropic model integration for the Oracle Coherence RAG framework.

This package provides integration with Anthropic for running open-source AI models.

Components include:

The Anthropic integration provides:

  • Support for popular open-source models (Claude 4 Sonnet, Claude 3.7 Sonnet, Claude 3.5 Haiku, etc.)
  • Configurable connection parameters
  • Error handling and model availability checking

Popular models supported by Anthropic:

  • Claude 4 Sonnet
  • Claude 3.7 Sonnet
  • Claude 3.5 Haiku

Example usage:

ModelProvider provider = new AnthropicModelProvider();
ChatModel chatModel = provider.getChatModel("claude-3-7-sonnet-20250219");

ChatResponse response = chatModel.generate("Explain machine learning");

Configuration can be provided through:

  • System property: anthropic.base.url (default: https://api.anthropic.com/v1/)
  • Environment variable: ANTHROPIC_BASE_URL
  • CDI configuration beans

Since:
25.09
Author:
Aleks Seovic 2025.07.04