Skip to content

Commit

Permalink
Seed Spacing (#3474)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhongsun96 authored Dec 15, 2024
1 parent cff2346 commit 6711e91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/onyx/seeding/load_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from onyx.configs.constants import DEFAULT_BOOST
from onyx.configs.constants import DocumentSource
from onyx.configs.constants import KV_DOCUMENTS_SEEDED_KEY
from onyx.configs.constants import RETURN_SEPARATOR
from onyx.configs.model_configs import DEFAULT_DOCUMENT_ENCODER_MODEL
from onyx.connectors.models import Document
from onyx.connectors.models import IndexAttemptMetadata
Expand Down Expand Up @@ -71,7 +72,7 @@ def _create_indexable_chunks(
source_links={0: preprocessed_doc["url"]},
section_continuation=False,
source_document=document,
title_prefix=preprocessed_doc["title"],
title_prefix=preprocessed_doc["title"] + RETURN_SEPARATOR,
metadata_suffix_semantic="",
metadata_suffix_keyword="",
mini_chunk_texts=None,
Expand Down

0 comments on commit 6711e91

Please sign in to comment.