Skip to content

Commit

Permalink
another change
Browse files Browse the repository at this point in the history
  • Loading branch information
AmoghTantradi committed Jan 25, 2025
1 parent 38ff87d commit c885dbc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lotus/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ def configure(self, **kwargs):
for key, value in kwargs.items():
if not hasattr(self, key):
raise ValueError(f"Invalid setting: {key}")
if (key == 'vs' and (getattr(self, 'rm') is not None)) or (key == 'rm' and (getattr(self, 'vs') is not None)):
raise ValueError('Invalid settings: you can only set a retriever module or a vector store, but not both')

setattr(self, key, value)

def __str__(self):
Expand Down

0 comments on commit c885dbc

Please sign in to comment.