File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
edubotics_core/vectorstore Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 7
7
import os
8
8
import time
9
9
import asyncio
10
+ import yaml
11
+ import argparse
10
12
11
13
12
14
class VectorStoreManager :
@@ -162,10 +164,7 @@ def __len__(self):
162
164
return len (self .vector_db )
163
165
164
166
165
- if __name__ == "__main__" :
166
- import yaml
167
- import argparse
168
-
167
+ def main ():
169
168
# Add argument parsing for config files
170
169
parser = argparse .ArgumentParser (description = "Load configuration files." )
171
170
parser .add_argument (
@@ -216,3 +215,7 @@ def __len__(self):
216
215
print ("Loaded database" )
217
216
218
217
print (f"View the logs at { config ['log_dir' ]} /vector_db.log" )
218
+
219
+
220
+ if __name__ == "__main__" :
221
+ main ()
Original file line number Diff line number Diff line change 20
20
license = "MIT" ,
21
21
long_description = readme ,
22
22
long_description_content_type = "text/markdown" ,
23
+ entry_points = {
24
+ "console_scripts" : [
25
+ "vectorstore_creator=edubotics_core.vectorstore.store_manager:main" ,
26
+ ],
27
+ },
23
28
)
You can’t perform that action at this time.
0 commit comments