Skip to content

Commit

Permalink
Fixed mutably defaulted NumpyVectorStore.texts (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbraza authored Nov 20, 2024
1 parent d5c4688 commit 0b3ef89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paperqa/llms.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ async def max_marginal_relevance_search(


class NumpyVectorStore(VectorStore):
texts: list[Embeddable] = []
texts: list[Embeddable] = Field(default_factory=list)
_embeddings_matrix: np.ndarray | None = None

def __eq__(self, other) -> bool:
Expand Down

0 comments on commit 0b3ef89

Please sign in to comment.