Skip to content

Commit 0b3ef89

Browse files
authored
Fixed mutably defaulted NumpyVectorStore.texts (#711)
1 parent d5c4688 commit 0b3ef89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paperqa/llms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ async def max_marginal_relevance_search(
850850

851851

852852
class NumpyVectorStore(VectorStore):
853-
texts: list[Embeddable] = []
853+
texts: list[Embeddable] = Field(default_factory=list)
854854
_embeddings_matrix: np.ndarray | None = None
855855

856856
def __eq__(self, other) -> bool:

0 commit comments

Comments
 (0)