File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,8 @@ async def build(self):
167167 # We also save the file for future use
168168 os .makedirs (CACHE_FOLDER , exist_ok = True )
169169 basic_index = cast (BasicEmbeddingsIndex , self .index )
170+ if not basic_index .embeddings_index :
171+ raise Exception ("Couldn't create basic embeddings index" )
170172 basic_index .embeddings_index .save (cache_file )
171173
172174 # And, explicitly save the size as we need it when we reload
Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ pyright = "^1.1.405"
157157include = [
158158 " nemoguardrails/rails/**" ,
159159 " nemoguardrails/actions/**" ,
160+ " nemoguardrails/kb/**" ,
160161 " nemoguardrails/logging/**" ,
161162 " nemoguardrails/tracing/**" ,
162163 " tests/test_callbacks.py" ,
You can’t perform that action at this time.
0 commit comments