Repository navigation
无法启动成功,无法使用 #1354
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
前提ifno: ollama本地部署,已有配置中相关模型,启动时docker-compose.yml相关端口未占用, wrenai version: 0.15.3
问题1:pgsql,password带有符号#时,无法识别,
问题二:无法使用
这是返回值:
{
"errors": [
{
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"createAskingTask"
],
"message": "Cannot read properties of null (reading 'hash')",
"extensions": {
"code": "INTERNAL_SERVER_ERROR",
"message": "Cannot read properties of null (reading 'hash')",
"shortMessage": "Internal server error"
}
}
],
"data": null
}
以下是config.yml
type: llm
provider: litellm_llm
models:
- api_base: http://127.0.0.1:11434/v1 # change this to your ollama host, api_base should be <ollama_url>/v1
api_key_name: LLM_OLLAMA_API_KEY
model: openai/deepseek-r1:14b # openai/<ollama_model_name>
timeout: 600
---
type: embedder
provider: litellm_embedder
models:
# - model: text-embedding-3-large
# api_base: https://api.openai.com/v1
# api_key_name: EMBEDDER_OPENAI_API_KEY
# timeout: 120
- model: openai/bge-m3:latest # put your ollama embedder model name here, openai/<ollama_model_name>
api_base: http://127.0.0.1:11434/v1 # change this to your ollama host, api_base should be <ollama_url>/v1
api_key_name: EMBEDDER_OLLAMA_API_KEY
timeout: 600
---
type: engine
provider: wren_ui
endpoint: http://wren-ui:3000
---
type: document_store
provider: qdrant
location: http://qdrant:6333
embedding_model_dim: 3072
timeout: 120
recreate_index: true
---
type: pipeline
pipes:
- name: db_schema_indexing
embedder: litellm_embedder.openai/bge-m3:latest
document_store: qdrant
- name: historical_question_indexing
embedder: litellm_embedder.openai/bge-m3:latest
document_store: qdrant
- name: table_description_indexing
embedder: litellm_embedder.openai/bge-m3:latest
document_store: qdrant
- name: db_schema_retrieval
llm: litellm_llm.openai/deepseek-r1:14b
embedder: litellm_embedder.openai/bge-m3:latest
document_store: qdrant
- name: historical_question_retrieval
embedder: litellm_embedder.openai/bge-m3:latest
document_store: qdrant
- name: sql_generation
llm: litellm_llm.openai/deepseek-r1:14b
engine: wren_ui
- name: sql_correction
llm: litellm_llm.openai/deepseek-r1:14b
engine: wren_ui
- name: followup_sql_generation
llm: litellm_llm.openai/deepseek-r1:14b
engine: wren_ui
- name: sql_summary
llm: litellm_llm.openai/deepseek-r1:14b
- name: sql_answer
llm: litellm_llm.openai/deepseek-r1:14b
engine: wren_ui
- name: sql_breakdown
llm: litellm_llm.openai/deepseek-r1:14b
engine: wren_ui
- name: sql_expansion
llm: litellm_llm.openai/deepseek-r1:14b
engine: wren_ui
- name: sql_explanation
llm: litellm_llm.openai/deepseek-r1:14b
- name: semantics_description
llm: litellm_llm.openai/deepseek-r1:14b
- name: relationship_recommendation
llm: litellm_llm.openai/deepseek-r1:14b
engine: wren_ui
- name: question_recommendation
llm: litellm_llm.openai/deepseek-r1:14b
- name: question_recommendation_db_schema_retrieval
llm: litellm_llm.openai/deepseek-r1:14b
embedder: litellm_embedder.openai/bge-m3:latest
document_store: qdrant
- name: question_recommendation_sql_generation
llm: litellm_llm.openai/deepseek-r1:14b
engine: wren_ui
- name: chart_generation
llm: litellm_llm.openai/deepseek-r1:14b
- name: chart_adjustment
llm: litellm_llm.openai/deepseek-r1:14b
- name: intent_classification
llm: litellm_llm.openai/deepseek-r1:14b
embedder: litellm_embedder.openai/bge-m3:latest
document_store: qdrant
- name: data_assistance
llm: litellm_llm.openai/deepseek-r1:14b
- name: sql_pairs_indexing
document_store: qdrant
embedder: litellm_embedder.openai/bge-m3:latest
- name: sql_pairs_deletion
document_store: qdrant
embedder: litellm_embedder.openai/bge-m3:latest
- name: sql_pairs_retrieval
document_store: qdrant
embedder: litellm_embedder.openai/bge-m3:latest
llm: litellm_llm.openai/deepseek-r1:14b
- name: preprocess_sql_data
llm: litellm_llm.openai/deepseek-r1:14b
- name: sql_executor
engine: wren_ui
- name: sql_question_generation
llm: litellm_llm.openai/deepseek-r1:14b
- name: sql_generation_reasoning
llm: litellm_llm.openai/deepseek-r1:14b
- name: sql_regeneration
llm: litellm_llm.openai/deepseek-r1:14b
engine: wren_ui
---
settings:
column_indexing_batch_size: 50
table_retrieval_size: 10
table_column_retrieval_size: 100
allow_using_db_schemas_without_pruning: false
query_cache_maxsize: 1000
query_cache_ttl: 3600
langfuse_host: https://cloud.langfuse.com
langfuse_enable: true
logging_level: DEBUG
development: false
.env配置:
COMPOSE_PROJECT_NAME=wrenai
PLATFORM=linux/amd64
PROJECT_DIR=.
# service port
WREN_ENGINE_PORT=8080
WREN_ENGINE_SQL_PORT=7432
WREN_AI_SERVICE_PORT=5555
WREN_UI_PORT=3000
IBIS_SERVER_PORT=8000
WREN_UI_ENDPOINT=http://wren-ui:${WREN_UI_PORT}
# ai service settings
QDRANT_HOST=qdrant
SHOULD_FORCE_DEPLOY=1
# vendor keys
LLM_OPENAI_API_KEY=
EMBEDDER_OPENAI_API_KEY=
LLM_AZURE_OPENAI_API_KEY=
EMBEDDER_AZURE_OPENAI_API_KEY=
QDRANT_API_KEY=
LLM_OLLAMA_API_KEY=xxx
EMBEDDER_OLLAMA_API_KEY=xxx
# version
# CHANGE THIS TO THE LATEST VERSION
WREN_PRODUCT_VERSION=0.15.3
WREN_ENGINE_VERSION=0.13.1
WREN_AI_SERVICE_VERSION=0.15.7
IBIS_SERVER_VERSION=0.13.1
WREN_UI_VERSION=0.20.1
WREN_BOOTSTRAP_VERSION=0.1.5
# user id (uuid v4)
USER_UUID=
# for other services
POSTHOG_API_KEY=phc_nhF32aj4xHXOZb0oqr2cn4Oy9uiWzz6CCP4KZmRq9aE
POSTHOG_HOST=https://app.posthog.com
TELEMETRY_ENABLED=true
# this is for telemetry to know the model, i think ai-service might be able to provide a endpoint to get the information
GENERATION_MODEL=gpt-4o-mini
LANGFUSE_SECRET_KEY=
LANGFUSE_PUBLIC_KEY=
# the port exposes to the host
# OPTIONAL: change the port if you have a conflict
HOST_PORT=3000
AI_SERVICE_FORWARD_PORT=5555
# Wren UI
EXPERIMENTAL_ENGINE_RUST_VERSION=false
以下是一些容器的log:
wrenai-wren-ai-service-1
2025-03-04 14:24:02 INFO: Started server process [9]
2025-03-04 14:24:02 INFO: Waiting for application startup.
2025-03-04 14:24:02 I0304 06:24:02.642 9 wren-ai-service:40] Imported Provider: src.providers.document_store
2025-03-04 14:24:02 I0304 06:24:02.646 9 wren-ai-service:64] Registering provider: qdrant
2025-03-04 14:24:02 I0304 06:24:02.646 9 wren-ai-service:40] Imported Provider: src.providers.document_store.qdrant
2025-03-04 14:24:02 I0304 06:24:02.647 9 wren-ai-service:40] Imported Provider: src.providers.embedder
2025-03-04 14:24:03 I0304 06:24:03.547 9 wren-ai-service:64] Registering provider: azure_openai_embedder
2025-03-04 14:24:03 I0304 06:24:03.547 9 wren-ai-service:40] Imported Provider: src.providers.embedder.azure_openai
2025-03-04 14:24:04 /app/.venv/lib/python3.12/site-packages/pydantic/_internal/_config.py:345: UserWarning: Valid config keys have changed in V2:
2025-03-04 14:24:04 * 'fields' has been removed
2025-03-04 14:24:04 warnings.warn(message, UserWarning)
2025-03-04 14:24:05 I0304 06:24:05.271 9 wren-ai-service:64] Registering provider: litellm_embedder
2025-03-04 14:24:05 I0304 06:24:05.271 9 wren-ai-service:40] Imported Provider: src.providers.embedder.litellm
2025-03-04 14:24:05 I0304 06:24:05.276 9 wren-ai-service:64] Registering provider: ollama_embedder
2025-03-04 14:24:05 I0304 06:24:05.276 9 wren-ai-service:40] Imported Provider: src.providers.embedder.ollama
2025-03-04 14:24:05 I0304 06:24:05.287 9 wren-ai-service:64] Registering provider: openai_embedder
2025-03-04 14:24:05 I0304 06:24:05.288 9 wren-ai-service:40] Imported Provider: src.providers.embedder.openai
2025-03-04 14:24:05 I0304 06:24:05.289 9 wren-ai-service:40] Imported Provider: src.providers.engine
2025-03-04 14:24:05 I0304 06:24:05.291 9 wren-ai-service:64] Registering provider: wren_ui
2025-03-04 14:24:05 I0304 06:24:05.292 9 wren-ai-service:64] Registering provider: wren_ibis
2025-03-04 14:24:05 I0304 06:24:05.293 9 wren-ai-service:64] Registering provider: wren_engine
2025-03-04 14:24:05 I0304 06:24:05.293 9 wren-ai-service:40] Imported Provider: src.providers.engine.wren
2025-03-04 14:24:05 I0304 06:24:05.295 9 wren-ai-service:40] Imported Provider: src.providers.llm
2025-03-04 14:24:05 I0304 06:24:05.318 9 wren-ai-service:64] Registering provider: azure_openai_llm
2025-03-04 14:24:05 I0304 06:24:05.318 9 wren-ai-service:40] Imported Provider: src.providers.llm.azure_openai
2025-03-04 14:24:05 I0304 06:24:05.319 9 wren-ai-service:64] Registering provider: litellm_llm
2025-03-04 14:24:05 I0304 06:24:05.321 9 wren-ai-service:40] Imported Provider: src.providers.llm.litellm
2025-03-04 14:24:05 I0304 06:24:05.332 9 wren-ai-service:64] Registering provider: ollama_llm
2025-03-04 14:24:05 I0304 06:24:05.332 9 wren-ai-service:40] Imported Provider: src.providers.llm.ollama
2025-03-04 14:24:05 I0304 06:24:05.464 9 wren-ai-service:64] Registering provider: openai_llm
2025-03-04 14:24:05 I0304 06:24:05.464 9 wren-ai-service:40] Imported Provider: src.providers.llm.openai
2025-03-04 14:24:05 I0304 06:24:05.465 9 wren-ai-service:40] Imported Provider: src.providers.loader
2025-03-04 14:24:05 ERROR: Traceback (most recent call last):
2025-03-04 14:24:05 File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 693, in lifespan
2025-03-04 14:24:05 async with self.lifespan_context(app) as maybe_state:
2025-03-04 14:24:05 File "/usr/local/lib/python3.12/contextlib.py", line 204, in __aenter__
2025-03-04 14:24:05 return await anext(self.gen)
2025-03-04 14:24:05 ^^^^^^^^^^^^^^^^^^^^^
2025-03-04 14:24:05 File "/app/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 133, in merged_lifespan
2025-03-04 14:24:05 async with original_context(app) as maybe_original_state:
2025-03-04 14:24:05 File "/usr/local/lib/python3.12/contextlib.py", line 204, in __aenter__
2025-03-04 14:24:05 return await anext(self.gen)
2025-03-04 14:24:05 ^^^^^^^^^^^^^^^^^^^^^
2025-03-04 14:24:05 File "/src/__main__.py", line 31, in lifespan
2025-03-04 14:24:05 pipe_components = generate_components(settings.components)
2025-03-04 14:24:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-04 14:24:05 File "/src/providers/__init__.py", line 332, in generate_components
2025-03-04 14:24:05 config = transform(configs)
2025-03-04 14:24:05 ^^^^^^^^^^^^^^^^^^
2025-03-04 14:24:05 File "/src/providers/__init__.py", line 294, in transform
2025-03-04 14:24:05 converted = processor(entry)
2025-03-04 14:24:05 ^^^^^^^^^^^^^^^^
2025-03-04 14:24:05 File "/src/providers/__init__.py", line 78, in llm_processor
2025-03-04 14:24:05 "kwargs": model["kwargs"],
2025-03-04 14:24:05 ~~~~~^^^^^^^^^^
2025-03-04 14:24:05 KeyError: 'kwargs'
2025-03-04 14:24:05
2025-03-04 14:24:05 ERROR: Application startup failed. Exiting.
2025-03-04 14:25:02 INFO: Started server process [8]
2025-03-04 14:25:02 INFO: Waiting for application startup.
2025-03-04 14:25:02 I0304 06:25:02.173 8 wren-ai-service:40] Imported Provider: src.providers.document_store
2025-03-04 14:25:02 I0304 06:25:02.176 8 wren-ai-service:64] Registering provider: qdrant
2025-03-04 14:25:02 I0304 06:25:02.176 8 wren-ai-service:40] Imported Provider: src.providers.document_store.qdrant
2025-03-04 14:25:02 I0304 06:25:02.177 8 wren-ai-service:40] Imported Provider: src.providers.embedder
2025-03-04 14:25:02 I0304 06:25:02.732 8 wren-ai-service:64] Registering provider: azure_openai_embedder
2025-03-04 14:25:02 I0304 06:25:02.732 8 wren-ai-service:40] Imported Provider: src.providers.embedder.azure_openai
2025-03-04 14:25:03 /app/.venv/lib/python3.12/site-packages/pydantic/_internal/_config.py:345: UserWarning: Valid config keys have changed in V2:
2025-03-04 14:25:03 * 'fields' has been removed
2025-03-04 14:25:03 warnings.warn(message, UserWarning)
2025-03-04 14:25:04 I0304 06:25:04.114 8 wren-ai-service:64] Registering provider: litellm_embedder
2025-03-04 14:25:04 I0304 06:25:04.115 8 wren-ai-service:40] Imported Provider: src.providers.embedder.litellm
2025-03-04 14:25:04 I0304 06:25:04.117 8 wren-ai-service:64] Registering provider: ollama_embedder
2025-03-04 14:25:04 I0304 06:25:04.117 8 wren-ai-service:40] Imported Provider: src.providers.embedder.ollama
2025-03-04 14:25:04 I0304 06:25:04.120 8 wren-ai-service:64] Registering provider: openai_embedder
2025-03-04 14:25:04 I0304 06:25:04.120 8 wren-ai-service:40] Imported Provider: src.providers.embedder.openai
2025-03-04 14:25:04 I0304 06:25:04.121 8 wren-ai-service:40] Imported Provider: src.providers.engine
2025-03-04 14:25:04 I0304 06:25:04.122 8 wren-ai-service:64] Registering provider: wren_ui
2025-03-04 14:25:04 I0304 06:25:04.123 8 wren-ai-service:64] Registering provider: wren_ibis
2025-03-04 14:25:04 I0304 06:25:04.123 8 wren-ai-service:64] Registering provider: wren_engine
2025-03-04 14:25:04 I0304 06:25:04.123 8 wren-ai-service:40] Imported Provider: src.providers.engine.wren
2025-03-04 14:25:04 I0304 06:25:04.125 8 wren-ai-service:40] Imported Provider: src.providers.llm
2025-03-04 14:25:04 I0304 06:25:04.133 8 wren-ai-service:64] Registering provider: azure_openai_llm
2025-03-04 14:25:04 I0304 06:25:04.133 8 wren-ai-service:40] Imported Provider: src.providers.llm.azure_openai
2025-03-04 14:25:04 I0304 06:25:04.134 8 wren-ai-service:64] Registering provider: litellm_llm
2025-03-04 14:25:04 I0304 06:25:04.134 8 wren-ai-service:40] Imported Provider: src.providers.llm.litellm
2025-03-04 14:25:04 I0304 06:25:04.137 8 wren-ai-service:64] Registering provider: ollama_llm
2025-03-04 14:25:04 I0304 06:25:04.138 8 wren-ai-service:40] Imported Provider: src.providers.llm.ollama
2025-03-04 14:25:04 I0304 06:25:04.195 8 wren-ai-service:64] Registering provider: openai_llm
2025-03-04 14:25:04 I0304 06:25:04.195 8 wren-ai-service:40] Imported Provider: src.providers.llm.openai
2025-03-04 14:25:04 I0304 06:25:04.196 8 wren-ai-service:40] Imported Provider: src.providers.loader
2025-03-04 14:25:04 ERROR: Traceback (most recent call last):
2025-03-04 14:25:04 File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 693, in lifespan
2025-03-04 14:25:04 async with self.lifespan_context(app) as maybe_state:
2025-03-04 14:25:04 File "/usr/local/lib/python3.12/contextlib.py", line 204, in __aenter__
2025-03-04 14:25:04 return await anext(self.gen)
2025-03-04 14:25:04 ^^^^^^^^^^^^^^^^^^^^^
2025-03-04 14:25:04 File "/app/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 133, in merged_lifespan
2025-03-04 14:25:04 async with original_context(app) as maybe_original_state:
2025-03-04 14:25:04 File "/usr/local/lib/python3.12/contextlib.py", line 204, in __aenter__
2025-03-04 14:25:04 return await anext(self.gen)
2025-03-04 14:25:04 ^^^^^^^^^^^^^^^^^^^^^
2025-03-04 14:25:04 File "/src/__main__.py", line 31, in lifespan
2025-03-04 14:25:04 pipe_components = generate_components(settings.components)
2025-03-04 14:25:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-04 14:25:04 File "/src/providers/__init__.py", line 332, in generate_components
2025-03-04 14:25:04 config = transform(configs)
2025-03-04 14:25:04 ^^^^^^^^^^^^^^^^^^
2025-03-04 14:25:04 File "/src/providers/__init__.py", line 294, in transform
2025-03-04 14:25:04 converted = processor(entry)
2025-03-04 14:25:04 ^^^^^^^^^^^^^^^^
2025-03-04 14:25:04 File "/src/providers/__init__.py", line 78, in llm_processor
2025-03-04 14:25:04 "kwargs": model["kwargs"],
2025-03-04 14:25:04 ~~~~~^^^^^^^^^^
2025-03-04 14:25:04 KeyError: 'kwargs'
2025-03-04 14:25:04
2025-03-04 14:25:04 ERROR: Application startup failed. Exiting.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working







Activity
wwwy3y3 commentedon Mar 4, 2025
hi @yuzhi-jiang thanks for reporting.
As for the first subissue you mentioned here, cannot connect to postgres with password contains
#, I think will be resolved by #1281 , which will soon be released.@paopa could you check the config yaml here ? see what's going on.
paopa commentedon Mar 4, 2025
Hi @yuzhi-jiang, I noticed the error is due to leaking the kwargs for llm. If you don't want specified kwargs for llm, at least leave
kwargs: {}in the model section. Thank you!e.g.
yuzhi-jiang commentedon Mar 4, 2025
yuzhi-jiang commentedon Mar 4, 2025
你好,我按要求补上了
kwargs: {},但测试还是有些别的问题,AuthenticationError是LLM_OLLAMA_API_KEY=xxx不行吗,因为ollama没有设置密码==========
log:
paopa commentedon Mar 4, 2025
Right. I think you could remove
api_key_name: LLM_OPENAI_API_KEYin both the llm and embedder sections, and give it a try again. Thank you!yuzhi-jiang commentedon Mar 5, 2025
你好,今天试了移除配置
api_key_name: LLM_OPENAI_API_KEY但是似乎还是一样的报错paopa commentedon Mar 5, 2025
Hi @yuzhi-jiang, can you change 127.0.0.1 to host.docker.internal for the api_base property? I think using 127.0.0.1 cannot be connected from the container.
yuzhi-jiang commentedon Mar 5, 2025
host.docker.internal?
我不太明白,是指 http://localhost:11434/ 吗,我测试修改过本地的host: 127.0.0.1 local.docker,能够被ping通,但是无法连接上ollama
paopa commentedon Mar 5, 2025
Since the AI service is a container and needs to access your Ollama, I’m not sure if the way you used it works. But you can connect to the host on your machine using host.docker.internal. Check out this link for more details: https://docs.docker.com/desktop/features/networking/#i-want-to-connect-from-a-container-to-a-service-on-the-host
yuzhi-jiang commentedon Mar 5, 2025
我理解你的意思了,是 AI service的网络问题是吧,明天我会试试,感谢你的回答
yuzhi-jiang commentedon Mar 6, 2025
最新问题:
网络现在是通了,llm模型现在是可以访问到ollama servre了,但是出现了一个新的问题,或者bug?
ollama 已经可以收到请求:
问题
1.当我使用如下配置的embedder模型
错误信息是:
2.当我是使用
错误信息就变成了AuthenticationError:
···
The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
2025-03-06 09:28:36
2025-03-06 09:28:36 During handling of the above exception, another exception occurred:
2025-03-06 09:28:36
2025-03-06 09:28:36 Traceback (most recent call last):
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/main.py", line 3147, in aembedding
2025-03-06 09:28:36 response = await init_response # type: ignore
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/llms/openai/openai.py", line 1111, in aembedding
2025-03-06 09:28:36 raise OpenAIError(
2025-03-06 09:28:36 litellm.llms.openai.common_utils.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
2025-03-06 09:28:36
2025-03-06 09:28:36 During handling of the above exception, another exception occurred:
2025-03-06 09:28:36
2025-03-06 09:28:36 Traceback (most recent call last):
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/hamilton/async_driver.py", line 122, in new_fn
2025-03-06 09:28:36 await fn(**fn_kwargs) if asyncio.iscoroutinefunction(fn) else fn(**fn_kwargs)
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/langfuse/decorators/langfuse_decorator.py", line 219, in async_wrapper
2025-03-06 09:28:36 self._handle_exception(observation, e)
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/langfuse/decorators/langfuse_decorator.py", line 517, in _handle_exception
2025-03-06 09:28:36 raise e
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/langfuse/decorators/langfuse_decorator.py", line 217, in async_wrapper
2025-03-06 09:28:36 result = await func(*args, **kwargs)
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/src/pipelines/indexing/table_description.py", line 95, in embedding
2025-03-06 09:28:36 return await embedder.run(documents=chunk["documents"])
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/backoff/_async.py", line 151, in retry
2025-03-06 09:28:36 ret = await target(*args, **kwargs)
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/src/providers/embedder/litellm.py", line 144, in run
2025-03-06 09:28:36 embeddings, meta = await self._embed_batch(
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/src/providers/embedder/litellm.py", line 106, in _embed_batch
2025-03-06 09:28:36 response = await aembedding(
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/utils.py", line 1358, in wrapper_async
2025-03-06 09:28:36 raise e
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/utils.py", line 1217, in wrapper_async
2025-03-06 09:28:36 result = await original_function(*args, **kwargs)
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/main.py", line 3163, in aembedding
2025-03-06 09:28:36 raise exception_type(
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py", line 2190, in exception_type
2025-03-06 09:28:36 raise e
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py", line 356, in exception_type
2025-03-06 09:28:36 raise AuthenticationError(
2025-03-06 09:28:36 litellm.exceptions.AuthenticationError: litellm.AuthenticationError: AuthenticationError: OpenAIException - The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
2025-03-06 09:28:36
Calculating embeddings: 0%| | 0/3 [00:00<?, ?it/s]I0306 01:28:36.884 8 wren-ai-service:32] Project ID: None, Cleaning documents in view_questions
2025-03-06 09:28:36
2025-03-06 09:28:36 Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
2025-03-06 09:28:36 LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.
2025-03-06 09:28:36
2025-03-06 09:28:36
Calculating embeddings: 0%| | 0/3 [00:00<?, ?it/s]
2025-03-06 09:28:36
2025-03-06 09:28:36 ********************************************************************************
2025-03-06 09:28:36 > embedding [src.pipelines.indexing.db_schema.embedding()] encountered an error<
2025-03-06 09:28:36 > Node inputs:
2025-03-06 09:28:36 {'chunk': "<Task finished name='Task-10' coro=<AsyncGraphAdap...",
2025-03-06 09:28:36 'embedder': '<src.providers.embedder.litellm.AsyncDocumentEmbed...'}
2025-03-06 09:28:36 ********************************************************************************
2025-03-06 09:28:36 Traceback (most recent call last):
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/llms/openai/openai.py", line 1058, in aembedding
2025-03-06 09:28:36 openai_aclient: AsyncOpenAI = self._get_openai_client( # type: ignore
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/llms/openai/openai.py", line 355, in _get_openai_client
2025-03-06 09:28:36 _new_client: Union[OpenAI, AsyncOpenAI] = AsyncOpenAI(
2025-03-06 09:28:36 ^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/openai/_client.py", line 337, in init
2025-03-06 09:28:36 raise OpenAIError(
2025-03-06 09:28:36 openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
2025-03-06 09:28:36
2025-03-06 09:28:36 During handling of the above exception, another exception occurred:
2025-03-06 09:28:36
2025-03-06 09:28:36 Traceback (most recent call last):
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/main.py", line 3147, in aembedding
2025-03-06 09:28:36 response = await init_response # type: ignore
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/llms/openai/openai.py", line 1111, in aembedding
2025-03-06 09:28:36 raise OpenAIError(
2025-03-06 09:28:36 litellm.llms.openai.common_utils.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
2025-03-06 09:28:36
2025-03-06 09:28:36 During handling of the above exception, another exception occurred:
2025-03-06 09:28:36
2025-03-06 09:28:36 Traceback (most recent call last):
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/hamilton/async_driver.py", line 122, in new_fn
2025-03-06 09:28:36 await fn(**fn_kwargs) if asyncio.iscoroutinefunction(fn) else fn(**fn_kwargs)
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/langfuse/decorators/langfuse_decorator.py", line 219, in async_wrapper
2025-03-06 09:28:36 self._handle_exception(observation, e)
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/langfuse/decorators/langfuse_decorator.py", line 517, in _handle_exception
2025-03-06 09:28:36 raise e
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/langfuse/decorators/langfuse_decorator.py", line 217, in async_wrapper
2025-03-06 09:28:36 result = await func(*args, **kwargs)
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/src/pipelines/indexing/db_schema.py", line 312, in embedding
2025-03-06 09:28:36 return await embedder.run(documents=chunk["documents"])
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/backoff/_async.py", line 151, in retry
2025-03-06 09:28:36 ret = await target(*args, **kwargs)
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/src/providers/embedder/litellm.py", line 144, in run
2025-03-06 09:28:36 embeddings, meta = await self._embed_batch(
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/src/providers/embedder/litellm.py", line 106, in _embed_batch
2025-03-06 09:28:36 response = await aembedding(
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/utils.py", line 1358, in wrapper_async
2025-03-06 09:28:36 raise e
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/utils.py", line 1217, in wrapper_async
2025-03-06 09:28:36 result = await original_function(*args, **kwargs)
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/main.py", line 3163, in aembedding
2025-03-06 09:28:36 raise exception_type(
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py", line 2190, in exception_type
2025-03-06 09:28:36 raise e
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py", line 356, in exception_type
2025-03-06 09:28:36 raise AuthenticationError(
2025-03-06 09:28:36 litellm.exceptions.AuthenticationError: litellm.AuthenticationError: AuthenticationError: OpenAIException - The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
2025-03-06 09:28:36 -------------------------------------------------------------------
2025-03-06 09:28:36 Oh no an error! Need help with Hamilton?
2025-03-06 09:28:36 Join our slack and ask for help! https://join.slack.com/t/hamilton-opensource/shared_invite/zt-2niepkra8-DGKGf_tTYhXuJWBTXtIs4g
2025-03-06 09:28:36 -------------------------------------------------------------------
2025-03-06 09:28:36
2025-03-06 09:28:36 E0306 01:28:36.900 8 wren-ai-service:98] Failed to prepare semantics: litellm.AuthenticationError: AuthenticationError: OpenAIException - The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
2025-03-06 09:28:36 Traceback (most recent call last):
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/llms/openai/openai.py", line 1058, in aembedding
2025-03-06 09:28:36 openai_aclient: AsyncOpenAI = self._get_openai_client( # type: ignore
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/llms/openai/openai.py", line 355, in _get_openai_client
2025-03-06 09:28:36 _new_client: Union[OpenAI, AsyncOpenAI] = AsyncOpenAI(
2025-03-06 09:28:36 ^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/openai/_client.py", line 337, in init
2025-03-06 09:28:36 raise OpenAIError(
2025-03-06 09:28:36 openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
2025-03-06 09:28:36
2025-03-06 09:28:36 During handling of the above exception, another exception occurred:
2025-03-06 09:28:36
2025-03-06 09:28:36 Traceback (most recent call last):
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/main.py", line 3147, in aembedding
2025-03-06 09:28:36 response = await init_response # type: ignore
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/llms/openai/openai.py", line 1111, in aembedding
2025-03-06 09:28:36 raise OpenAIError(
2025-03-06 09:28:36 litellm.llms.openai.common_utils.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
2025-03-06 09:28:36
2025-03-06 09:28:36 During handling of the above exception, another exception occurred:
2025-03-06 09:28:36
2025-03-06 09:28:36 Traceback (most recent call last):
2025-03-06 09:28:36 File "/src/web/v1/services/semantics_preparation.py", line 90, in prepare_semantics
2025-03-06 09:28:36 await asyncio.gather(*tasks)
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/langfuse/decorators/langfuse_decorator.py", line 219, in async_wrapper
2025-03-06 09:28:36 self._handle_exception(observation, e)
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/langfuse/decorators/langfuse_decorator.py", line 517, in _handle_exception
2025-03-06 09:28:36 raise e
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/langfuse/decorators/langfuse_decorator.py", line 217, in async_wrapper
2025-03-06 09:28:36 result = await func(*args, **kwargs)
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/src/pipelines/indexing/table_description.py", line 151, in run
2025-03-06 09:28:36 return await self._pipe.execute(
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/hamilton/async_driver.py", line 375, in execute
2025-03-06 09:28:36 raise e
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/hamilton/async_driver.py", line 366, in execute
2025-03-06 09:28:36 outputs = await self.raw_execute(_final_vars, overrides, display_graph, inputs=inputs)
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/hamilton/async_driver.py", line 326, in raw_execute
2025-03-06 09:28:36 raise e
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/hamilton/async_driver.py", line 321, in raw_execute
2025-03-06 09:28:36 results = await await_dict_of_tasks(task_dict)
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/hamilton/async_driver.py", line 23, in await_dict_of_tasks
2025-03-06 09:28:36 coroutines_gathered = await asyncio.gather(*coroutines)
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/hamilton/async_driver.py", line 36, in process_value
2025-03-06 09:28:36 return await val
2025-03-06 09:28:36 ^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/hamilton/async_driver.py", line 91, in new_fn
2025-03-06 09:28:36 fn_kwargs = await await_dict_of_tasks(task_dict)
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/hamilton/async_driver.py", line 23, in await_dict_of_tasks
2025-03-06 09:28:36 coroutines_gathered = await asyncio.gather(*coroutines)
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/hamilton/async_driver.py", line 36, in process_value
2025-03-06 09:28:36 return await val
2025-03-06 09:28:36 ^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/hamilton/async_driver.py", line 91, in new_fn
2025-03-06 09:28:36 fn_kwargs = await await_dict_of_tasks(task_dict)
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/hamilton/async_driver.py", line 23, in await_dict_of_tasks
2025-03-06 09:28:36 coroutines_gathered = await asyncio.gather(*coroutines)
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/hamilton/async_driver.py", line 36, in process_value
2025-03-06 09:28:36 return await val
2025-03-06 09:28:36 ^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/hamilton/async_driver.py", line 122, in new_fn
2025-03-06 09:28:36 await fn(**fn_kwargs) if asyncio.iscoroutinefunction(fn) else fn(**fn_kwargs)
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/langfuse/decorators/langfuse_decorator.py", line 219, in async_wrapper
2025-03-06 09:28:36 self._handle_exception(observation, e)
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/langfuse/decorators/langfuse_decorator.py", line 517, in _handle_exception
2025-03-06 09:28:36 raise e
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/langfuse/decorators/langfuse_decorator.py", line 217, in async_wrapper
2025-03-06 09:28:36 result = await func(*args, **kwargs)
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/src/pipelines/indexing/table_description.py", line 95, in embedding
2025-03-06 09:28:36 return await embedder.run(documents=chunk["documents"])
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/backoff/_async.py", line 151, in retry
2025-03-06 09:28:36 ret = await target(*args, **kwargs)
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/src/providers/embedder/litellm.py", line 144, in run
2025-03-06 09:28:36 embeddings, meta = await self._embed_batch(
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/src/providers/embedder/litellm.py", line 106, in _embed_batch
2025-03-06 09:28:36 response = await aembedding(
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/utils.py", line 1358, in wrapper_async
2025-03-06 09:28:36 raise e
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/utils.py", line 1217, in wrapper_async
2025-03-06 09:28:36 result = await original_function(*args, **kwargs)
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/main.py", line 3163, in aembedding
2025-03-06 09:28:36 raise exception_type(
2025-03-06 09:28:36 ^^^^^^^^^^^^^^^
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py", line 2190, in exception_type
2025-03-06 09:28:36 raise e
2025-03-06 09:28:36 File "/app/.venv/lib/python3.12/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py", line 356, in exception_type
2025-03-06 09:28:36 raise AuthenticationError(
2025-03-06 09:28:36 litellm.exceptions.AuthenticationError: litellm.AuthenticationError: AuthenticationError: OpenAIException - The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
2025-03-06 09:28:36 -------------------------------------------------------------------
2025-03-06 09:28:36 Oh no an error! Need help with Hamilton?
2025-03-06 09:28:36 Join our slack and ask for help! https://join.slack.com/t/hamilton-opensource/shared_invite/zt-2niepkra8-DGKGf_tTYhXuJWBTXtIs4g
2025-03-06 09:28:36 -------------------------------------------------------------------
2025-03-06 09:28:36
2025-03-06 09:28:36 W0306 01:28:36.918 8 wren-ai-service:261] Calling QdrantDocumentStore.write_documents() with empty list
2025-03-06 09:28:36 W0306 01:28:36.923 8 wren-ai-service:261] Calling QdrantDocumentStore.write_documents() with empty list
2025-03-06 09:28:37 INFO: 172.19.0.5:56076 - "GET /v1/semantics-preparations/b24b4523491303777a6559a348394ded844925f5/status HTTP/1.1" 200 OK
2025-03-06 09:28:37 INFO: 172.19.0.5:56086 - "POST /v1/question-recommendations HTTP/1.1" 200 OK
2025-03-06 09:28:37 I0306 01:28:37.886 8 wren-ai-service:154] Request c413d709-8537-4f26-b62f-3a36b978ff8a: Generate Question Recommendation pipeline is running...
2025-03-06 09:28:37 I0306 01:28:37.907 8 wren-ai-service:263] Question Recommendation pipeline is running...
2025-03-06 09:28:37 Forcing deployment: {'data': {'deploy': {'status': 'FAILED', 'error': 'Wren AI Error: deployment hash:b24b4523491303777a6559a348394ded844925f5, [object Object]'}}}
···
paopa commentedon Mar 6, 2025
For the first question, I think the error might be because you forgot to update the pipeline setting in the config.yaml to match the current embedding model.
e.g.
paopa commentedon Mar 6, 2025
For the second question, could you share the current config.yaml you’re using? It looks like you might be missing an API key for the OpenAI-compatible endpoint.
Or, if you prefer, you can refer to my Ollama config example.
I’ve made a couple of changes. I’ve updated the model with the prefix
ollamaand removed the/v1from theapi_base.yuzhi-jiang commentedon Mar 6, 2025
是的,第一个和第二个应该是同一个问题的
目前我完整配置如下(确定可以容器连接上ollama了):
config.yml
.env
ai service log:
10 remaining items
yuzhi-jiang commentedon Mar 7, 2025
@paopa 感谢你帮我修改配置,我使用了你建议的最新配置,但我依然遇到如下错误,我注意到wrenai在3天前有更新,我是否需要更新docker image 的version?
paopa commentedon Mar 7, 2025
Hi @yuzhi-jiang, could you check again to make sure the config is correct? The message indicates that it cannot map to your LLM provider instance for the semantics description object. It might be a typo or something else, as I don’t have this issue with the same config. You could also try restarting the AI service to see if that helps.
I don’t think it matters much with the new release, but I’d love for you to try the latest version. If you have a chance, please let us know what you think. Your feedback is super valuable to us and helps us make this project even better. Thanks a bunch!
yuzhi-jiang commentedon Mar 7, 2025
@paopa 你好,经过我检查,如果不算配置错误,应该不算拼写问题,我copy以上配置的,为了方便展示,我做了diff
观察到全都是replace,应该是没有配置错误的
如下
yuzhi-jiang commentedon Mar 7, 2025
我认为config.yaml,或许可以简化,或者加一层,或许在代码中是之间读取这个config.yaml,但是对于不熟知的用户来说,却会造成一定的使用门槛,配置中写的规则(比如必填 ollama_url/v1)似乎可以不必遵守,我认为应该以用户最简配置为主,如果是customModel,则只需要填写modelname,base_url,api_key即可了
paopa commentedon Mar 7, 2025
Hey @yuzhi-jiang, if the files are the same, I’m not sure why the error occurred. Maybe you could try stopping the container and restarting it again?
Thanks for the suggestion! Actually, we’ve found a lot of community members on GitHub and Discord who are having trouble setting up the config. We’ve already raised an issue about it and added it to our backlog. We’ll plan how to solve it better!
paopa commentedon Mar 7, 2025
Hi @yuzhi-jiang, I got a same issue with you from other community member. Can you give Wren AI 0.15.4 a try? We just released it this week, and I’ve been using it and it’s working well with the config!
yuzhi-jiang commentedon Mar 10, 2025
@paopa 你好,我今天使用了 0.15.4 ,修改了env中的部分配置,其他没修改
依旧有报错
paopa commentedon Mar 10, 2025
Hey! I can't reproduce this issue with the above config. Can you check the container version for the Wren AI service is correct or is the config.yaml correct? Thank you!
zhenglu696 commentedon Mar 27, 2025
@yuzhi-jiang 你好,我现在用的是deepseek模型,在页面上提问问题时,也报了上面的错误,辛苦问下,您这边解决了吗?方便我们通过微信或者其他方式沟通下吗?非常感谢
jesset commentedon Mar 28, 2025
我这边遇到同样的问题,日志如下:
出错的行 /src/pipelines/retrieval/retrieval.py", line 332 :
WrenAI/wren-ai-service/src/pipelines/retrieval/retrieval.py
Line 332 in 88941ee
langfuse 中的trace日志如下
filter_columns_in_tables, 看起来似乎格式不对?使用的模型为openrouter的
openrouter/deepseek/deepseek-r1:free和openrouter/deepseek/deepseek-chat-v3-0324:free都得到一样的错误rara011088 commentedon Apr 21, 2025
@jesset 我这边遇到跟你一模一样的问题,不过我用的是 model gpt-4o-2024-08-06,请问你这边有找到解决方式吗?
jesset commentedon Apr 21, 2025
我是参考了这个临时缓解 #1529
rara011088 commentedon Apr 22, 2025
请问这样修改后是不是要重新 build image 才能测试?
jesset commentedon Apr 22, 2025
是的
fix(core): disable EliminateCrossJoin rule (Canner#1354)