Skip to content

Commit

Permalink
Modified the Index Document Method to Always Perform Hard Reindex (#303)
Browse files Browse the repository at this point in the history
Modified the index_document mwthod to always perform hard reindex

Co-authored-by: Neha <[email protected]>
  • Loading branch information
tahierhussain and nehabagdia authored May 2, 2024
1 parent 0012d7e commit 62dedc6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ def index_document(
org_id=org_id,
document_id=document_id,
is_summary=is_summary,
reindex=True,
)

logger.info(f"[{tool_id}] Indexing successful for doc: {file_name}")
Expand Down Expand Up @@ -627,6 +628,7 @@ def dynamic_indexer(
org_id: str,
document_id: str,
is_summary: bool = False,
reindex: bool = False,
) -> str:
"""Used to index a file based on the passed arguments.
Expand Down Expand Up @@ -681,7 +683,7 @@ def dynamic_indexer(
file_hash=file_hash,
chunk_size=profile_manager.chunk_size,
chunk_overlap=profile_manager.chunk_overlap,
reindex=profile_manager.reindex,
reindex=reindex,
output_file_path=extract_file_path,
)

Expand Down

0 comments on commit 62dedc6

Please sign in to comment.