Module: LlmMemory::Embedding
- Included in:
- LlmMemory::Embeddings::Openai
- Defined in:
- lib/llm_memory/embedding.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 |
# File 'lib/llm_memory/embedding.rb', line 4 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#embed_document(text) ⇒ Object
14 15 16 |
# File 'lib/llm_memory/embedding.rb', line 14 def (text) raise NotImplementedError, "Each Embedding must implement the 'embed_document' method." end |