Coherence 벡터 스토어 - 네이티브 클라이언트 접근

Coherence 벡터 스토어 - 네이티브 클라이언트 접근

Coherence Vector Store 구현은 getNativeClient() 메서드를 통해 내부 네이티브 Coherence 클라이언트(Session)에 접근할 수 있게 해 줘요. VectorStore 인터페이스로 드러나지 않는 Coherence 고유 기능이 필요할 때 유용한 방법이에요.

출처: 문서

본문

네이티브 클라이언트 접근하기 (Accessing the Native Client)

Coherence Vector Store 구현은 getNativeClient() 메서드를 통해 내부 네이티브 Coherence 클라이언트(Session)에 접근할 수 있게 해요:

CoherenceVectorStore vectorStore = context.getBean(CoherenceVectorStore.class);
Optional<Session> nativeClient = vectorStore.getNativeClient();

if (nativeClient.isPresent()) {
    Session session = nativeClient.get();
    // Use the native client for Coherence-specific operations
}

네이티브 클라이언트를 사용하면 VectorStore 인터페이스로는 노출되지 않는 Coherence 고유의 기능과 작업을 활용할 수 있어요.

더 알아보기 (Learn more)