Find answers from the community

Home
Members
riskytidepod
r
riskytidepod
Offline, last seen 4 weeks ago
Joined September 25, 2024
r
riskytidepod
·

Error

im trying to use the auto retriever which works fine for metadatafields that are of a single value e.g str

but when i have a list of tags or categories as a metadata field is fails to correctly apply the in filter. i cant find any data in the docs about supported auto retreiver fields.

heres an example:

vector_store_info = VectorStoreInfo( content_info="support articles for a software platform", metadata_info=[ MetadataInfo( name="categories", type="List", description=( "array of topics covered in the article, options ['Getting Started', 'Exporting Data from QuickBooks', 'Getting Started with Accounting', 'System Requirements']" ), ), ], ) nodes = retriever.retrieve('What are the system requirements') 2025-01-06 20:35:37,565 - INFO - Using query str: What are the system requirements 2025-01-06 20:35:37,565 - INFO - Using filters: [('categories', 'in', 'System Requirements')] 2025-01-06 20:35:37,565 - INFO - Using top_k: 2 TypeError: 'in <string>' requires string as left operand, not list
4 comments
r
L
does llama index support weaviate v4
1 comment
L
hey im building a chat engine over different data, e.g Sales data, Labor costs, techincal support docs is it best practice to index these datasets seperately and then use a router to decide which index to query? i ask because all of the router engine use the same nodes but over a summary index and vector index
6 comments
r
R
hi when using the download_loader or if i use a DataConnector from llama_hub that calls the download_loader in my python project i get this error has anyone experienced this am i missing something?

llama-hub==0.0.77
llama_index==0.9.40

running this code

from llama_index import download_loader download_loader("GithubRepositoryReader")

returns this error for any loader

Traceback (most recent call last): File "<console>", line 1, in <module> File "/usr/local/lib/python3.11/site-packages/llama_index/readers/download.py", line 49, in download_loader reader_cls = download_llama_module( ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/llama_index/download/module.py", line 217, in download_llama_module module_info = get_module_info( ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/llama_index/download/module.py", line 69, in get_module_info library = json.loads(library_raw_content) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^

json.decoder.JSONDecodeError: Unterminated string starting at: line 561 column 3 (char 10226)
5 comments
L
r