wizit-context-ingestor 0.2.4__tar.gz → 0.2.5b1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of wizit-context-ingestor might be problematic. Click here for more details.
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/PKG-INFO +1 -1
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/pyproject.toml +1 -1
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/infra/aws_model.py +0 -1
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/infra/persistence/local_storage.py +2 -1
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/infra/persistence/s3_storage.py +2 -2
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/main.py +5 -2
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/README.md +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/.DS_Store +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/__init__.py +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/application/__init__.py +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/application/context_chunk_service.py +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/application/interfaces.py +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/application/transcription_service.py +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/data/__init__.py +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/data/prompts.py +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/domain/__init__.py +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/domain/models.py +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/domain/services.py +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/infra/__init__.py +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/infra/persistence/__init__.py +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/infra/rag/pg_embeddings.py +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/infra/rag/redis_embeddings.py +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/infra/rag/semantic_chunks.py +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/infra/secrets/__init__.py +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/infra/secrets/aws_secrets_manager.py +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/infra/vertex_model.py +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/services/.DS_Store +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/services/__init__.py +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/services/chunks.py +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/services/parse_doc.py +0 -0
- {wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/services/pg_embeddings_manager.py +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from ...application.interfaces import PersistenceService
|
|
2
2
|
from ...domain.models import ParsedDoc
|
|
3
|
+
from typing import Optional
|
|
3
4
|
import logging
|
|
4
5
|
import os
|
|
5
6
|
logger = logging.getLogger(__name__)
|
|
@@ -40,7 +41,7 @@ class LocalStorageService(PersistenceService):
|
|
|
40
41
|
raise
|
|
41
42
|
|
|
42
43
|
|
|
43
|
-
def save_parsed_document(self, file_key: str, parsed_document: ParsedDoc):
|
|
44
|
+
def save_parsed_document(self, file_key: str, parsed_document: ParsedDoc, file_tags: Optional[dict] = {}):
|
|
44
45
|
"""Save a parsed document."""
|
|
45
46
|
with open(f"{self.tmp_folder}/{file_key}", "w", encoding="utf-8") as f:
|
|
46
47
|
f.write(parsed_document.document_text)
|
|
@@ -4,6 +4,7 @@ from boto3 import client as boto3_client
|
|
|
4
4
|
import logging
|
|
5
5
|
import os
|
|
6
6
|
from botocore.exceptions import ClientError
|
|
7
|
+
from typing import Optional
|
|
7
8
|
|
|
8
9
|
logger = logging.getLogger(__name__)
|
|
9
10
|
|
|
@@ -77,8 +78,7 @@ class S3StorageService(PersistenceService):
|
|
|
77
78
|
raise
|
|
78
79
|
|
|
79
80
|
|
|
80
|
-
|
|
81
|
-
def save_parsed_document(self, file_key: str, parsed_document: ParsedDoc, file_tags: dict = {}):
|
|
81
|
+
def save_parsed_document(self, file_key: str, parsed_document: ParsedDoc, file_tags: Optional[dict] = {}):
|
|
82
82
|
"""Save a parsed document to S3.
|
|
83
83
|
|
|
84
84
|
Args:
|
{wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/main.py
RENAMED
|
@@ -113,8 +113,11 @@ class DeelabRedisChunksManager:
|
|
|
113
113
|
try:
|
|
114
114
|
rag_chunker = SemanticChunks(self.embeddings_model)
|
|
115
115
|
redis_embeddings_manager = RedisEmbeddingsManager(
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
self.embeddings_model,
|
|
117
|
+
self.redis_connection_string,
|
|
118
|
+
{
|
|
119
|
+
"file_key": file_key
|
|
120
|
+
}
|
|
118
121
|
)
|
|
119
122
|
local_persistence_service = LocalStorageService()
|
|
120
123
|
context_chunks_in_document_service = ContextChunksInDocumentService(
|
|
File without changes
|
{wizit_context_ingestor-0.2.4 → wizit_context_ingestor-0.2.5b1}/src/wizit_context_ingestor/.DS_Store
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|