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 d660d66 commit 673aaf2Copy full SHA for 673aaf2
nemoguardrails/kb/kb.py
@@ -167,6 +167,8 @@ async def build(self):
167
# We also save the file for future use
168
os.makedirs(CACHE_FOLDER, exist_ok=True)
169
basic_index = cast(BasicEmbeddingsIndex, self.index)
170
+ if not basic_index.embeddings_index:
171
+ raise Exception("Couldn't create basic embeddings index")
172
basic_index.embeddings_index.save(cache_file)
173
174
# And, explicitly save the size as we need it when we reload
0 commit comments