Skip to content

Commit

Permalink
Polishing (#946)
Browse files Browse the repository at this point in the history
  • Loading branch information
davorrunje authored and AgentGenie committed Feb 14, 2025
1 parent e555bc0 commit 5cae6cd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ def add_docs(
new_doc_paths: A list of file paths specifying additional documents to load.
Each file should be a Docling-parsed Markdown file.
"""
new_doc_dir = new_doc_dir or ""
new_doc_paths = new_doc_paths or []
new_docs = self._load_doc(input_dir=new_doc_dir, input_docs=new_doc_paths)
for doc in new_docs:
self.index.insert(doc)
Expand Down

0 comments on commit 5cae6cd

Please sign in to comment.