Current collected state Current
Observed since 20 Oct, 17:40 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Abstract base class for domain-specific database services
Abstract base class for domain-specific database services. This package provides the foundation for building database services tailored to specific domains (Legal, Finance, etc.).
# From git
pip install git+https://github.com/NlpFisTeam/AbstractDBService.git
# From local
pip install -e ./modules/AbstractDBService
from AbstractDBService import AbstractDBService, ProcessingResult
class LegalDocumentService(AbstractDBService):
"""Legal document database service."""
def _init_connections(self, **kwargs):
# Initialize legal-specific connections
self.arango_connector = kwargs.get("arango_connector")
def process_document(self, file_path, doc_id, metadata, **kwargs):
# Legal-specific document processing
pass
# ... implement other abstract methods
All inheriting classes must implement:
_init_connections(**kwargs) - Initialize domain-specific connectionsprocess_document(file_path, doc_id, metadata, **kwargs) - Process a documentextract_metadata(document, raw_metadata) - Extract domain-specific metadatacreate_chunks(document, doc_id, metadata) - Create chunks with domain-specific logicembed_text(texts) - Create embeddingscreate(file_path, metadata, **kwargs) - Create/ingest a new documentupdate(doc_id, updates, **kwargs) - Update an existing documentdelete(doc_id, **kwargs) - Delete a documentinit_databases(tenant_id) - Initialize databases for a new tenantcleanup_databases(tenant_id) - Cleanup databases for a tenantDownload counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.0 | 2 Feb 2026 | 4 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 17:40 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:fbadf4b0651a9d395a3497a62d428c7609d1b7748ee451879393e02238b144f8