Replies: 2 comments
-
🤖 Hello, The From the traceback you've provided, it seems like the error occurred during the execution of the The Try replacing the URL with a local file path to the directory where you want to persist the data. For example: storage_context = StorageContext.from_defaults(persist_dir="C:/Users/c/Documents/GitHub/gtp/stor") If you're still encountering issues after making this change, please provide more information about your environment and the steps leading up to the error. This will help me better understand the issue and provide a more accurate solution. Best, SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
-
Sorry @axz91 you'll need to give more context here. As the bot said, it looks like you just hit ctrl-c? |
Beta Was this translation helpful? Give feedback.
-
Question Validation
Question
`
KeyboardInterrupt Traceback (most recent call last)
Cell In[8], line 18
15 path_for_index = "ready_indexed/"
17 #Assuming index is defined somewhere, for example:
---> 18 storage_context = StorageContext.from_defaults(persist_dir="./stor")
20 new_index = load_index_from_storage(storage_context = storage_context,
21 service_context = service_context,index_id="vector_index")
23 batch_size = 20
File c:\Users\c\Documents\GitHub.conda\lib\site-packages\llama_index\storage\storage_context.py:75, in StorageContext.from_defaults(cls, docstore, index_store, vector_store, graph_store, persist_dir, fs)
73 graph_store = graph_store or SimpleGraphStore()
74 else:
---> 75 docstore = docstore or SimpleDocumentStore.from_persist_dir(
76 persist_dir, fs=fs
77 )
78 index_store = index_store or SimpleIndexStore.from_persist_dir(
79 persist_dir, fs=fs
80 )
81 vector_store = vector_store or SimpleVectorStore.from_persist_dir(
82 persist_dir, fs=fs
83 )
File c:\Users\c\Documents\GitHub.conda\lib\site-packages\llama_index\storage\docstore\simple_docstore.py:57, in SimpleDocumentStore.from_persist_dir(cls, persist_dir, namespace, fs)
55 else:
...
--> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
338 end = _w(s, end).end()
339 if end != len(s):
KeyboardInterrupt:
`
Beta Was this translation helpful? Give feedback.
All reactions