pgvector-template 0.1.2__tar.gz → 0.1.3__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.
Files changed (23) hide show
  1. {pgvector_template-0.1.2 → pgvector_template-0.1.3}/PKG-INFO +1 -1
  2. {pgvector_template-0.1.2 → pgvector_template-0.1.3}/pgvector_template/core/document.py +6 -6
  3. {pgvector_template-0.1.2 → pgvector_template-0.1.3}/pgvector_template/core/manager.py +2 -2
  4. {pgvector_template-0.1.2 → pgvector_template-0.1.3}/pgvector_template.egg-info/PKG-INFO +1 -1
  5. {pgvector_template-0.1.2 → pgvector_template-0.1.3}/pyproject.toml +1 -1
  6. {pgvector_template-0.1.2 → pgvector_template-0.1.3}/LICENSE +0 -0
  7. {pgvector_template-0.1.2 → pgvector_template-0.1.3}/README.md +0 -0
  8. {pgvector_template-0.1.2 → pgvector_template-0.1.3}/pgvector_template/__init__.py +0 -0
  9. {pgvector_template-0.1.2 → pgvector_template-0.1.3}/pgvector_template/core/__init__.py +0 -0
  10. {pgvector_template-0.1.2 → pgvector_template-0.1.3}/pgvector_template/core/embedder.py +0 -0
  11. {pgvector_template-0.1.2 → pgvector_template-0.1.3}/pgvector_template/core/retriever.py +0 -0
  12. {pgvector_template-0.1.2 → pgvector_template-0.1.3}/pgvector_template/core/search.py +0 -0
  13. {pgvector_template-0.1.2 → pgvector_template-0.1.3}/pgvector_template/db/__init__.py +0 -0
  14. {pgvector_template-0.1.2 → pgvector_template-0.1.3}/pgvector_template/db/connection.py +0 -0
  15. {pgvector_template-0.1.2 → pgvector_template-0.1.3}/pgvector_template/db/document_db.py +0 -0
  16. {pgvector_template-0.1.2 → pgvector_template-0.1.3}/pgvector_template/search/__init__.py +0 -0
  17. {pgvector_template-0.1.2 → pgvector_template-0.1.3}/pgvector_template/types.py +0 -0
  18. {pgvector_template-0.1.2 → pgvector_template-0.1.3}/pgvector_template/utils/__init__.py +0 -0
  19. {pgvector_template-0.1.2 → pgvector_template-0.1.3}/pgvector_template.egg-info/SOURCES.txt +0 -0
  20. {pgvector_template-0.1.2 → pgvector_template-0.1.3}/pgvector_template.egg-info/dependency_links.txt +0 -0
  21. {pgvector_template-0.1.2 → pgvector_template-0.1.3}/pgvector_template.egg-info/requires.txt +0 -0
  22. {pgvector_template-0.1.2 → pgvector_template-0.1.3}/pgvector_template.egg-info/top_level.txt +0 -0
  23. {pgvector_template-0.1.2 → pgvector_template-0.1.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pgvector-template
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Template library for flexible PGVector RAG implementations
5
5
  Author-email: DL <v49t9zpqd@mozmail.com>
6
6
  License: MIT
@@ -25,13 +25,13 @@ class BaseDocumentOptionalProps(BaseModel):
25
25
 
26
26
  title: str | None = None
27
27
  """Optional title or summary for the document"""
28
- collection: str | None = Field(None, max_length=64)
28
+ collection: str | None = Field(default=None, max_length=64)
29
29
  """Collection name for grouping documents of the same type"""
30
- original_url: str | None = Field(None, max_length=2048)
30
+ original_url: str | None = Field(default=None, max_length=2048)
31
31
  """Optional source URL for the document"""
32
- language: str | None = Field("en", pattern=r"^[a-z]{2}(-[A-Z]{2})?$")
32
+ language: str | None = Field(default="en", pattern=r"^[a-z]{2}(-[A-Z]{2})?$")
33
33
  """Language of the content (ISO 639-1 code), e.g., 'en', 'es', 'zh'"""
34
- score: float | None = Field(None, ge=0.0, le=1.0)
34
+ score: float | None = Field(default=None, ge=0.0, le=1.0)
35
35
  """Optional score assigned during ingestion (e.g., relevance, confidence)"""
36
36
  tags: list[str] | None = None
37
37
  """List of tags or keywords for filtering, categorization, or faceted search"""
@@ -125,7 +125,7 @@ class BaseDocument(Base):
125
125
  A new BaseDocument instance of the calling class type
126
126
  """
127
127
  if optional_props is None:
128
- optional_props = BaseDocumentOptionalProps() # type: ignore
128
+ optional_props = BaseDocumentOptionalProps()
129
129
 
130
130
  # SQLAlchemy handles string-to-UUID conversion automatically with as_uuid=True
131
131
  return cls(
@@ -155,7 +155,7 @@ class BaseDocumentMetadata(BaseModel):
155
155
  """
156
156
 
157
157
  document_type: str = Field(..., description="Description for type of document, e.g. markdown, pdf, etc")
158
- schema_version: str = Field("1.0", description="Schema version for the metadata")
158
+ schema_version: str = Field(default="1.0", description="Schema version for the metadata")
159
159
 
160
160
  def to_dict(self) -> dict[str, Any]:
161
161
  return self.model_dump()
@@ -19,10 +19,10 @@ class BaseCorpusManagerConfig(BaseModel):
19
19
 
20
20
  document_cls: Type[BaseDocument] = Field(..., description="Document class, must be subclass of BaseDocument")
21
21
  embedding_provider: BaseEmbeddingProvider | None = Field(
22
- None, description="Embedding provider for insert operations"
22
+ default=None, description="Embedding provider for insert operations"
23
23
  )
24
24
  document_metadata_cls: Type[BaseDocumentMetadata] | None = Field(
25
- None, description="Document metadata class, must be subclass of BaseDocumentMetadata"
25
+ default=None, description="Document metadata class, must be subclass of BaseDocumentMetadata"
26
26
  )
27
27
 
28
28
  model_config = {"arbitrary_types_allowed": True}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pgvector-template
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Template library for flexible PGVector RAG implementations
5
5
  Author-email: DL <v49t9zpqd@mozmail.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pgvector-template"
7
- version = "0.1.2"
7
+ version = "0.1.3"
8
8
  description = "Template library for flexible PGVector RAG implementations"
9
9
  authors = [{ name="DL", email="v49t9zpqd@mozmail.com" }]
10
10
  license = { text = "MIT" }