We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a0e205 commit 237541fCopy full SHA for 237541f
veadk/knowledgebase/knowledgebase.py
@@ -131,9 +131,9 @@ def add(
131
# Case6: Unsupported data type
132
raise TypeError(f"Unsupported data type: {type(data)}")
133
134
- if isinstance(data, list):
+ if not isinstance(data, list):
135
raise TypeError(
136
- f"Unsupported data type: {type(data)}, Only viking support file_path and file bytes"
+ f"Unsupported data type: {type(data)}. Only viking support file_path and file bytes"
137
)
138
# not viking
139
return self._adapter.add(data=data, index=index, **kwargs)
0 commit comments