Spaces:
Runtime error
Runtime error
third commit
Browse files- Untitled-1 +60 -0
- app.py +1 -1
- requirements.txt +8 -8
Untitled-1
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[nltk_data] Unzipping tokenizers/punkt.zip.
|
| 2 |
+
wandb: Logged trace tree to W&B.
|
| 3 |
+
2023-12-20 22:15:20 - Your app is available at http://localhost:7860
|
| 4 |
+
wandb: \ 1 of 5 files downloaded...
|
| 5 |
+
wandb: 5 of 5 files downloaded.
|
| 6 |
+
2023-12-20 22:15:24 - No existing llama_index.vector_stores.simple found at /home/user/app/artifacts/earnings-index:v3/vector_store.json, skipping load.
|
| 7 |
+
Traceback (most recent call last):
|
| 8 |
+
File "/home/user/.local/lib/python3.9/site-packages/chainlit/utils.py", line 36, in wrapper
|
| 9 |
+
return await user_function(**params_values)
|
| 10 |
+
File "app.py", line 21, in start
|
| 11 |
+
chain = await extract_information()
|
| 12 |
+
File "/home/user/app/earnings_app.py", line 111, in extract_information
|
| 13 |
+
storage_context = wandb_callback.load_storage_context(
|
| 14 |
+
File "/home/user/.local/lib/python3.9/site-packages/llama_index/callbacks/wandb_callback.py", line 318, in load_storage_context
|
| 15 |
+
storage_context = StorageContext.from_defaults(persist_dir=artifact_dir)
|
| 16 |
+
File "/home/user/.local/lib/python3.9/site-packages/llama_index/storage/storage_context.py", line 81, in from_defaults
|
| 17 |
+
vector_store = vector_store or SimpleVectorStore.from_persist_dir(
|
| 18 |
+
File "/home/user/.local/lib/python3.9/site-packages/llama_index/vector_stores/simple.py", line 117, in from_persist_dir
|
| 19 |
+
return cls.from_persist_path(persist_path, fs=fs)
|
| 20 |
+
File "/home/user/.local/lib/python3.9/site-packages/llama_index/vector_stores/simple.py", line 253, in from_persist_path
|
| 21 |
+
raise ValueError(
|
| 22 |
+
ValueError: No existing llama_index.vector_stores.simple found at /home/user/app/artifacts/earnings-index:v3/vector_store.json, skipping load.
|
| 23 |
+
wandb: \ 1 of 5 files downloaded...
|
| 24 |
+
wandb: 5 of 5 files downloaded.
|
| 25 |
+
2023-12-20 22:15:25 - No existing llama_index.vector_stores.simple found at /home/user/app/artifacts/earnings-index:v3/vector_store.json, skipping load.
|
| 26 |
+
Traceback (most recent call last):
|
| 27 |
+
File "/home/user/.local/lib/python3.9/site-packages/chainlit/utils.py", line 36, in wrapper
|
| 28 |
+
return await user_function(**params_values)
|
| 29 |
+
File "app.py", line 21, in start
|
| 30 |
+
chain = await extract_information()
|
| 31 |
+
File "/home/user/app/earnings_app.py", line 111, in extract_information
|
| 32 |
+
storage_context = wandb_callback.load_storage_context(
|
| 33 |
+
File "/home/user/.local/lib/python3.9/site-packages/llama_index/callbacks/wandb_callback.py", line 318, in load_storage_context
|
| 34 |
+
storage_context = StorageContext.from_defaults(persist_dir=artifact_dir)
|
| 35 |
+
File "/home/user/.local/lib/python3.9/site-packages/llama_index/storage/storage_context.py", line 81, in from_defaults
|
| 36 |
+
vector_store = vector_store or SimpleVectorStore.from_persist_dir(
|
| 37 |
+
File "/home/user/.local/lib/python3.9/site-packages/llama_index/vector_stores/simple.py", line 117, in from_persist_dir
|
| 38 |
+
return cls.from_persist_path(persist_path, fs=fs)
|
| 39 |
+
File "/home/user/.local/lib/python3.9/site-packages/llama_index/vector_stores/simple.py", line 253, in from_persist_path
|
| 40 |
+
raise ValueError(
|
| 41 |
+
ValueError: No existing llama_index.vector_stores.simple found at /home/user/app/artifacts/earnings-index:v3/vector_store.json, skipping load.
|
| 42 |
+
wandb: \ 1 of 5 files downloaded...
|
| 43 |
+
wandb: 5 of 5 files downloaded.
|
| 44 |
+
2023-12-20 22:15:26 - No existing llama_index.vector_stores.simple found at /home/user/app/artifacts/earnings-index:v3/vector_store.json, skipping load.
|
| 45 |
+
Traceback (most recent call last):
|
| 46 |
+
File "/home/user/.local/lib/python3.9/site-packages/chainlit/utils.py", line 36, in wrapper
|
| 47 |
+
return await user_function(**params_values)
|
| 48 |
+
File "app.py", line 21, in start
|
| 49 |
+
chain = await extract_information()
|
| 50 |
+
File "/home/user/app/earnings_app.py", line 111, in extract_information
|
| 51 |
+
storage_context = wandb_callback.load_storage_context(
|
| 52 |
+
File "/home/user/.local/lib/python3.9/site-packages/llama_index/callbacks/wandb_callback.py", line 318, in load_storage_context
|
| 53 |
+
storage_context = StorageContext.from_defaults(persist_dir=artifact_dir)
|
| 54 |
+
File "/home/user/.local/lib/python3.9/site-packages/llama_index/storage/storage_context.py", line 81, in from_defaults
|
| 55 |
+
vector_store = vector_store or SimpleVectorStore.from_persist_dir(
|
| 56 |
+
File "/home/user/.local/lib/python3.9/site-packages/llama_index/vector_stores/simple.py", line 117, in from_persist_dir
|
| 57 |
+
return cls.from_persist_path(persist_path, fs=fs)
|
| 58 |
+
File "/home/user/.local/lib/python3.9/site-packages/llama_index/vector_stores/simple.py", line 253, in from_persist_path
|
| 59 |
+
raise ValueError(
|
| 60 |
+
ValueError: No existing llama_index.vector_stores.simple found at /home/user/app/artifacts/earnings-index:v3/vector_store.json, skipping load.
|
app.py
CHANGED
|
@@ -28,7 +28,7 @@ async def main(message: cl.Message):
|
|
| 28 |
This is called when a message is received!
|
| 29 |
"""
|
| 30 |
chain = cl.user_session.get("chain")
|
| 31 |
-
res = await chain.achat(message)
|
| 32 |
# res = await chain.aiinvoke({"input": message})
|
| 33 |
# res = res["text"]
|
| 34 |
out = str(res)
|
|
|
|
| 28 |
This is called when a message is received!
|
| 29 |
"""
|
| 30 |
chain = cl.user_session.get("chain")
|
| 31 |
+
res = await chain.achat(message.content)
|
| 32 |
# res = await chain.aiinvoke({"input": message})
|
| 33 |
# res = res["text"]
|
| 34 |
out = str(res)
|
requirements.txt
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
-
chainlit
|
| 2 |
-
langchain
|
| 3 |
-
tiktoken
|
| 4 |
-
openai
|
| 5 |
-
faiss-cpu
|
| 6 |
-
llama-index
|
| 7 |
llama-hub
|
| 8 |
-
unstructured
|
| 9 |
lxml
|
| 10 |
cohere
|
| 11 |
wandb
|
| 12 |
-
pydantic
|
|
|
|
| 1 |
+
chainlit
|
| 2 |
+
langchain
|
| 3 |
+
tiktoken
|
| 4 |
+
openai
|
| 5 |
+
faiss-cpu
|
| 6 |
+
llama-index==0.9.19
|
| 7 |
llama-hub
|
| 8 |
+
unstructured
|
| 9 |
lxml
|
| 10 |
cohere
|
| 11 |
wandb
|
| 12 |
+
pydantic
|