Package com.oracle.coherence.rag.model.deepseek


package com.oracle.coherence.rag.model.deepseek
DeepSeek AI model integration for the Oracle Coherence RAG framework.

This package provides integration with DeepSeek AI models for chat and completion functionality. DeepSeek offers high-performance AI models optimized for reasoning and code generation tasks.

Components include:

The DeepSeek integration provides:

  • Integration with DeepSeek AI API services
  • Support for DeepSeek chat and completion models
  • OpenAI-compatible API interface
  • Configurable model parameters and settings
  • Error handling and retry logic

Supported DeepSeek models include:

  • DeepSeek-V2 (latest reasoning model)
  • DeepSeek-Coder (specialized for code generation)
  • DeepSeek-Math (optimized for mathematical reasoning)

Authentication and configuration:

  • API key authentication via environment variables or configuration
  • Configurable base URL for API endpoints
  • Support for custom model parameters
  • Rate limiting and quota management

Example usage:

ModelProvider provider = new DeepSeekModelProvider();
ChatModel chatModel = provider.getChatModel("deepseek-v2");

ChatResponse response = chatModel.generate("Explain quantum computing");

Configuration can be provided through:

  • Environment variable: DEEPSEEK_API_KEY
  • System property: deepseek.api.key
  • CDI configuration beans

The provider automatically handles API versioning, request formatting, and response parsing to integrate seamlessly with the RAG framework's model abstraction layer.

Since:
25.09
Author:
Aleks Seovic 2025.07.04