-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1
More file actions
68 lines (64 loc) · 4.44 KB
/
1
File metadata and controls
68 lines (64 loc) · 4.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Error building Component MOB2all:
Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/home/koni/.local/lib/python3.12/site-packages/requests/models.py", line 974, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/koni/.local/lib/python3.12/site-packages/langflow/graph/vertex/base.py", line 729, in _build_results
result = await initialize.loading.get_instance_results(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/koni/.local/lib/python3.12/site-packages/langflow/interface/initialize/loading.py", line 68, in get_instance_results
return await build_component(params=custom_params, custom_component=custom_component)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/koni/.local/lib/python3.12/site-packages/langflow/interface/initialize/loading.py", line 145, in build_component
build_results, artifacts = await custom_component.build_results()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/koni/.local/lib/python3.12/site-packages/langflow/custom/custom_component/component.py", line 891, in build_results
return await self._build_with_tracing()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/koni/.local/lib/python3.12/site-packages/langflow/custom/custom_component/component.py", line 873, in _build_with_tracing
results, artifacts = await self._build_results()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/koni/.local/lib/python3.12/site-packages/langflow/custom/custom_component/component.py", line 918, in _build_results
result = await self._get_output_result(output)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/koni/.local/lib/python3.12/site-packages/langflow/custom/custom_component/component.py", line 952, in _get_output_result
result = await method() if inspect.iscoroutinefunction(method) else await asyncio.to_thread(method)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/threads.py", line 25, in to_thread
return await loop.run_in_executor(None, func_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/koni/.local/lib/python3.12/site-packages/langflow/base/vectorstores/model.py", line 129, in search_documents
vector_store = self.build_vector_store()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/koni/.local/lib/python3.12/site-packages/langflow/base/vectorstores/model.py", line 29, in check_cached
result = f(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 166, in build_vector_store
File "<string>", line 196, in _add_documents_to_vector_store
File "/home/koni/.local/lib/python3.12/site-packages/langchain_core/vectorstores/base.py", line 287, in add_documents
return self.add_texts(texts, metadatas, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/koni/.local/lib/python3.12/site-packages/langchain_chroma/vectorstores.py", line 508, in add_texts
embeddings = self._embedding_function.embed_documents(texts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/koni/.local/lib/python3.12/site-packages/langchain_community/embeddings/huggingface.py", line 453, in embed_documents
return response.json()
^^^^^^^^^^^^^^^
File "/home/koni/.local/lib/python3.12/site-packages/requests/models.py", line 978, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)