Skip to content

Commit

Permalink
Fixing bogus elif in add_texts (#134)
Browse files Browse the repository at this point in the history
* Fixing bogus elif

* Update version.py
  • Loading branch information
whitead authored Jun 7, 2023
1 parent 90cad63 commit 736de35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion paperqa/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def add_texts(
self._faiss_index.add_embeddings(
list(zip(texts, text_embeddings)), metadatas=metadatas
)
elif self._doc_index is not None:
if self._doc_index is not None:
self._doc_index.add_texts([citation], metadatas=[{"key": key}])
self.docs.append(
dict(
Expand Down
2 changes: 1 addition & 1 deletion paperqa/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.1.0"
__version__ = "2.1.1"

0 comments on commit 736de35

Please sign in to comment.