Package com.oracle.coherence.rag.internal.pof
This package provides Coherence POF serialization support for RAG framework objects to enable efficient binary serialization and network transport within Coherence clusters. POF serialization is critical for performance when working with large document objects and vector embeddings.
POF serialization components include:
DocumentSerializer- Custom serializer for Document objectsPofConfigProvider- POF configuration provider service
The POF serialization support provides:
- Efficient binary serialization of document and chunk objects
- Optimized serialization for vector embeddings (float arrays)
- Preservation of document metadata and structure
- Integration with Coherence cluster serialization
- Backward compatibility for schema evolution
POF serialization is automatically configured when the RAG framework is used within a Coherence cluster. The serializers handle complex object graphs including nested metadata maps and large text content efficiently.
The POF configuration is registered via the service provider mechanism and integrates seamlessly with Coherence's serialization infrastructure. Custom serializers ensure optimal performance for frequently serialized objects like document chunks and embeddings.
Example POF configuration:
<pof-config>
<user-type-list>
<user-type>
<type-id>1001</type-id>
<class-name>com.oracle.coherence.ai.DocumentChunk</class-name>
<serializer>
<class-name>com.oracle.coherence.rag.pof.DocumentSerializer</class-name>
</serializer>
</user-type>
</user-type-list>
</pof-config>
- Since:
- 25.09
- Author:
- Aleks Seovic 2025.07.04
-
ClassesClassDescriptionPOF serializer for LangChain4J Document objects.An implementation of a
PofConfigProviderto make the Coherence RAG's POF configuration discoverable.