aef8791151
- Added Appshell component with responsive navbar and main content area - Integrated ColorSchemeToggle for light/dark mode switching - Created Welcome component with styled title and introductory text - Developed ChatPage for LLM interaction with WebSocket support - Implemented Biblioteca for managing notes with rich text editor - Added LoginPage for user authentication with error handling - Introduced MessageList and MessageBubble components for chat messages - Styled components with CSS modules for consistent design
13 lines
357 B
Python
13 lines
357 B
Python
from abc import ABC, abstractmethod
|
|
from typing import List
|
|
|
|
class EmbedderABC(ABC):
|
|
@abstractmethod
|
|
def encoder(self, text: str) -> List[float]:
|
|
"""Genera los embeddings para un texto dado."""
|
|
pass
|
|
|
|
@abstractmethod
|
|
def dimension_number(self) -> int:
|
|
"""Devuelve la dimensión del modelo de embedding."""
|
|
pass |