String-sg / ai-starter-kit

Starter kit for educators to test, adopt and iterate on genAI tools in the classroom
https://aistarterkit.streamlit.app/
3 stars 8 forks source link

To investigate: error when adding/ creating vector store #36

Open ghostleek opened 1 year ago

ghostleek commented 1 year ago
image

TypeError: 'NoneType' object is not subscriptable Traceback: File "/Users/kahhowlee/code/chergpt-starter-kit/main.py", line 388, in main create_vectorstore() File "/Users/kahhowlee/code/chergpt-starter-kit/kb_module.py", line 366, in create_vectorstore save_to_vectorstores(db, vs_name, subject, topic, st.session_state.user["username"], share_resource) # Passing the share_resource to the function File "/Users/kahhowlee/code/chergpt-starter-kit/kb_module.py", line 283, in save_to_vectorstores subject_id = cursor.fetchone()[0]

twahidin commented 1 year ago

image

I use a brand new database and it works from a clean DB. Not sure if you could replicate it from a new database.