Skip to content

Commit

Permalink
reduce settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Mini256 committed Feb 14, 2025
1 parent ffa1a2a commit 676b385
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
1 change: 1 addition & 0 deletions backend/app/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Empty init file to mark directory as Python package
9 changes: 0 additions & 9 deletions backend/app/models/knowledge_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from llama_index.core.node_parser.text.sentence import (
DEFAULT_PARAGRAPH_SEP,
SENTENCE_CHUNK_OVERLAP,
CHUNKING_REGEX,
)
from app.rag.node_parser.file.markdown import DEFAULT_CHUNK_HEADER_LEVEL
from app.api.admin_routes.models import KnowledgeBaseDescriptor
Expand Down Expand Up @@ -64,18 +63,10 @@ class SentenceSplitterConfig(BaseSplitterConfig):
default=SENTENCE_CHUNK_OVERLAP,
gt=0,
)
separator: str = Field(
description="The separator for splitting the text.",
default=" ",
)
paragraph_separator: str = Field(
description="The paragraph separator for splitting the text.",
default=DEFAULT_PARAGRAPH_SEP,
)
secondary_chunking_regex: str = Field(
description="The regex for secondary chunking.",
default=CHUNKING_REGEX,
)


class MarkdownSplitterConfig(BaseSplitterConfig):
Expand Down
2 changes: 1 addition & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ dev-dependencies = [
"ruff>=0.8.6",
"pytest-asyncio>=0.25.2",
]

[tool.ruff.lint]
ignore = ["E711", "E712", "F811", "F841"]

Empty file added backend/tests/__init__.py
Empty file.

0 comments on commit 676b385

Please sign in to comment.