Skip to content

Commit

Permalink
Fix the rag::copy_file
Browse files Browse the repository at this point in the history
  • Loading branch information
yorevs committed Nov 14, 2024
1 parent 01627f8 commit 1d56825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/askai/core/component/rag_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def copy_rag(cls, path_name: AnyPath, dest_name: AnyPath | None = None, rag_dir:
"""
src_path: PathObject = PathObject.of(path_name)
if src_path.exists and src_path.is_file:
file: str = f"{rag_dir}/{src_path.filename}"
file: str = f"{rag_dir}/{dest_name or src_path.filename}"
copyfile(str(src_path), file)
elif src_path.exists and src_path.is_dir:
shutil.copytree(
Expand Down

0 comments on commit 1d56825

Please sign in to comment.