-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hi,
Just following the steps ot the tutorial , the following error issued:
Any clue how to solve it ?
(redis-rag-workbench) c0274@50u24:~/redis-rag-workbench$ make dev
Resolved 177 packages in 1ms
Audited 171 packages in 0.03ms
FastAPI Starting development server 🚀
Searching for package file structure from directories with __init__.py files
INFO Initializing PDFManager with Redis URL: redis://localhost:6379
INFO Storage directory ready: /home/c0274/redis-rag-workbench/pdf_storage
INFO Search index created successfully
INFO Initializing rerankers
config.json: 100%|█████████████████████████████████████████████████████████████████████| 799/799 [00:00<00:00, 4.15MB/s]
model.safetensors: 100%|███████████████████████████████████████████████████████████| 1.11G/1.11G [01:42<00:00, 10.9MB/s]
tokenizer_config.json: 100%|███████████████████████████████████████████████████████████| 443/443 [00:00<00:00, 4.81MB/s]
sentencepiece.bpe.model: 100%|█████████████████████████████████████████████████████| 5.07M/5.07M [00:00<00:00, 9.33MB/s]
tokenizer.json: 100%|██████████████████████████████████████████████████████████████| 17.1M/17.1M [00:01<00:00, 9.02MB/s]
special_tokens_map.json: 100%|█████████████████████████████████████████████████████████| 279/279 [00:00<00:00, 2.15MB/s]
README.md: 100%|███████████████████████████████████████████████████████████████████| 34.1k/34.1k [00:00<00:00, 8.59MB/s]
INFO Rerankers initialized
INFO Initializing semantic router
modules.json: 100%|████████████████████████████████████████████████████████████████████| 349/349 [00:00<00:00, 3.07MB/s]
config_sentence_transformers.json: 100%|███████████████████████████████████████████████| 116/116 [00:00<00:00, 1.45MB/s]
README.md: 100%|███████████████████████████████████████████████████████████████████| 10.4k/10.4k [00:00<00:00, 55.6MB/s]
sentence_bert_config.json: 100%|██████████████████████████████████████████████████████| 53.0/53.0 [00:00<00:00, 609kB/s]
config.json: 100%|█████████████████████████████████████████████████████████████████████| 571/571 [00:00<00:00, 6.17MB/s]
Xet Storage is enabled for this repo, but the 'hf_xet' package is not installed. Falling back to regular HTTP download. For better performance, install the package with: pip install huggingface_hub[hf_xet]
or pip install hf_xet
model.safetensors: 100%|█████████████████████████████████████████████████████████████| 438M/438M [00:40<00:00, 10.8MB/s]
tokenizer_config.json: 100%|███████████████████████████████████████████████████████████| 363/363 [00:00<00:00, 4.44MB/s]
vocab.txt: 100%|█████████████████████████████████████████████████████████████████████| 232k/232k [00:00<00:00, 1.63MB/s]
tokenizer.json: 100%|████████████████████████████████████████████████████████████████| 466k/466k [00:00<00:00, 1.74MB/s]
special_tokens_map.json: 100%|█████████████████████████████████████████████████████████| 239/239 [00:00<00:00, 2.75MB/s]
config.json: 100%|█████████████████████████████████████████████████████████████████████| 190/190 [00:00<00:00, 1.12MB/s]
INFO Semantic router initialized
DEBUG Importing from /home/c0274/redis-rag-workbench
DEBUG Importing module main
Importing from /home/c0274/redis-rag-workbench
module 🐍 main.py
code Importing the FastAPI app object from the module with the following code:
from main import app
app Using import string: main:app
server Server started at http://127.0.0.1:8000
server Documentation at http://127.0.0.1:8000/docs
tip Running in development mode, for production use: fastapi run
Logs:
INFO Will watch for changes in these directories: ['/home/c0274/redis-rag-workbench']
INFO Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO Started reloader process [6682] using WatchFiles
11:04:16 redisvl.index.index INFO Index already exists, overwriting.
Process SpawnProcess-1:
Traceback (most recent call last):
File "/home/c0274/redis-rag-workbench/.venv/lib/python3.13/site-packages/redisvl/index/index.py", line 484, in delete
self._redis_client.ft(self.schema.index.name).dropindex( # type: ignore
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
delete_documents=drop
^^^^^^^^^^^^^^^^^^^^^
)
^
File "/home/c0274/redis-rag-workbench/.venv/lib/python3.13/site-packages/redis/commands/search/commands.py", line 258, in dropindex
return self.execute_command(DROPINDEX_CMD, self.index_name, delete_str)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/c0274/redis-rag-workbench/.venv/lib/python3.13/site-packages/redis/client.py", line 559, in execute_command
return self._execute_command(*args, **options)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "/home/c0274/redis-rag-workbench/.venv/lib/python3.13/site-packages/redis/client.py", line 567, in _execute_command
return conn.retry.call_with_retry(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
lambda: self._send_command_parse_response(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<2 lines>...
lambda error: self._disconnect_raise(conn, error),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/home/c0274/redis-rag-workbench/.venv/lib/python3.13/site-packages/redis/retry.py", line 62, in call_with_retry
return do()
File "/home/c0274/redis-rag-workbench/.venv/lib/python3.13/site-packages/redis/client.py", line 568, in
lambda: self._send_command_parse_response(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
conn, command_name, *args, **options
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
),
^
File "/home/c0274/redis-rag-workbench/.venv/lib/python3.13/site-packages/redis/client.py", line 542, in _send_command_parse_response
return self.parse_response(conn, command_name, **options)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/c0274/redis-rag-workbench/.venv/lib/python3.13/site-packages/redis/client.py", line 584, in parse_response
response = connection.read_response()
File "/home/c0274/redis-rag-workbench/.venv/lib/python3.13/site-packages/redis/connection.py", line 616, in read_response
raise response
redis.exceptions.ResponseError: Unknown argument
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/c0274/.local/share/uv/python/cpython-3.13.3-linux-x86_64-gnu/lib/python3.13/multiprocessing/process.py", line 313, in _bootstrap
self.run()
~~~~~~~~^^
File "/home/c0274/.local/share/uv/python/cpython-3.13.3-linux-x86_64-gnu/lib/python3.13/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/c0274/redis-rag-workbench/.venv/lib/python3.13/site-packages/uvicorn/_subprocess.py", line 80, in subprocess_started
target(sockets=sockets)
~~~~~~^^^^^^^^^^^^^^^^^
File "/home/c0274/redis-rag-workbench/.venv/lib/python3.13/site-packages/uvicorn/server.py", line 66, in run
return asyncio.run(self.serve(sockets=sockets))
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/c0274/.local/share/uv/python/cpython-3.13.3-linux-x86_64-gnu/lib/python3.13/asyncio/runners.py", line 195, in run
return runner.run(main)
~~~~~~~~~~^^^^^^
File "/home/c0274/.local/share/uv/python/cpython-3.13.3-linux-x86_64-gnu/lib/python3.13/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "uvloop/loop.pyx", line 1518, in uvloop.loop.Loop.run_until_complete
File "/home/c0274/redis-rag-workbench/.venv/lib/python3.13/site-packages/uvicorn/server.py", line 70, in serve
await self._serve(sockets)
File "/home/c0274/redis-rag-workbench/.venv/lib/python3.13/site-packages/uvicorn/server.py", line 77, in _serve
config.load()
~~~~~~~~~~~^^
File "/home/c0274/redis-rag-workbench/.venv/lib/python3.13/site-packages/uvicorn/config.py", line 435, in load
self.loaded_app = import_from_string(self.app)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/home/c0274/redis-rag-workbench/.venv/lib/python3.13/site-packages/uvicorn/importer.py", line 19, in import_from_string
module = importlib.import_module(module_str)
File "/home/c0274/.local/share/uv/python/cpython-3.13.3-linux-x86_64-gnu/lib/python3.13/importlib/init.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 1026, in exec_module
File "", line 488, in _call_with_frames_removed
File "/home/c0274/redis-rag-workbench/main.py", line 26, in
workbench.initialize()
~~~~~~~~~~~~~~~~~~~~^^
File "/home/c0274/redis-rag-workbench/demos/workbench/workbench.py", line 91, in initialize
app.initialize()
~~~~~~~~~~~~~~^^
File "/home/c0274/redis-rag-workbench/demos/workbench/chat_app.py", line 170, in initialize
self.initialize_components()
~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/home/c0274/redis-rag-workbench/demos/workbench/chat_app.py", line 190, in initialize_components
self.semantic_router = SemanticRouter.from_yaml(
~~~~~~~~~~~~~~~~~~~~~~~~^
"demos/workbench/router.yaml", redis_url=self.redis_url, overwrite=True
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/home/c0274/redis-rag-workbench/.venv/lib/python3.13/site-packages/redisvl/extensions/router/semantic.py", line 553, in from_yaml
return cls.from_dict(
~~~~~~~~~~~~~^
yaml_data,
^^^^^^^^^^
**kwargs,
^^^^^^^^^
)
^
File "/home/c0274/redis-rag-workbench/.venv/lib/python3.13/site-packages/redisvl/extensions/router/semantic.py", line 490, in from_dict
return cls(
name=name,
...<3 lines>...
**kwargs,
)
File "/home/c0274/redis-rag-workbench/.venv/lib/python3.13/site-packages/redisvl/utils/utils.py", line 122, in inner_normal
return func(*args, **kwargs)
File "/home/c0274/redis-rag-workbench/.venv/lib/python3.13/site-packages/redisvl/extensions/router/semantic.py", line 98, in init
self._initialize_index(redis_client, redis_url, overwrite, **connection_kwargs)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/c0274/redis-rag-workbench/.venv/lib/python3.13/site-packages/redisvl/utils/utils.py", line 122, in inner_normal
return func(*args, **kwargs)
File "/home/c0274/redis-rag-workbench/.venv/lib/python3.13/site-packages/redisvl/extensions/router/semantic.py", line 131, in _initialize_index
self._index.create(overwrite=overwrite, drop=False)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/c0274/redis-rag-workbench/.venv/lib/python3.13/site-packages/redisvl/index/index.py", line 459, in create
self.delete(drop=drop)
~~~~~~~~~~~^^^^^^^^^^^
File "/home/c0274/redis-rag-workbench/.venv/lib/python3.13/site-packages/redisvl/index/index.py", line 488, in delete
raise RedisSearchError(f"Error while deleting index: {str(e)}") from e
redisvl.exceptions.RedisSearchError: Error while deleting index: Unknown argument