Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AI] sca ai rag example run failed #3773

Open
793834982 opened this issue Jun 25, 2024 · 9 comments
Open

[AI] sca ai rag example run failed #3773

793834982 opened this issue Jun 25, 2024 · 9 comments

Comments

@793834982
Copy link

when i run spring-cloud-ai-rag-example get a error
Parameter 1 of constructor in com.alibaba.cloud.example.ai.rag.service.RAGService required a bean of type 'org.springframework.ai.vectorstore.VectorStore' that could not be found
Is it the person in charge who missed submitting the code

@yuluo-yx yuluo-yx added this to the Spring Cloud Alibaba AI milestone Jun 25, 2024
@yuluo-yx yuluo-yx changed the title Parameter 1 of constructor in com.alibaba.cloud.example.ai.rag.service.RAGService required a bean of type 'org.springframework.ai.vectorstore.VectorStore' that could not be found [AI] sca ai rag example run failed Jun 25, 2024
@yuluo-yx
Copy link
Collaborator

yuluo-yx commented Jun 25, 2024

My local startup is fine. Check your local environment. @793834982

信息: Starting service [Tomcat]
6月 25, 2024 11:04:46 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet engine: [Apache Tomcat/10.1.19]
6月 25, 2024 11:04:46 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring embedded WebApplicationContext
[main] INFO org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 1267 ms
[main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port 8081 (http) with context path ''
[main] INFO com.alibaba.cloud.example.ai.rag.RAGApplication - Started RAGApplication in 3.042 seconds (process running for 3.474)
[main] INFO com.alibaba.cloud.example.ai.rag.loader.RAGDataLoader - Creating Embeddings...

@airufei

This comment was marked as abuse.

@airufei
Copy link

airufei commented Aug 7, 2024

Unsatisfied dependency expressed through constructor parameter 1: Error creating bean with name 'vectorStore' defined in class path resource [org/springframework/ai/autoconfigure/vectorstore/redis/RedisVectorStoreAutoConfiguration.class]: Invalid rule type: JSON

@airufei
Copy link

airufei commented Aug 7, 2024

image

@yuluo-yx
Copy link
Collaborator

yuluo-yx commented Aug 7, 2024

image
failed.

@airufei
Copy link

airufei commented Aug 7, 2024

image failed.

Every time the spring cloud ai rag example application is launched, Redis will automatically restart (presumably due to a hang, increasing memory and CPU may not solve the problem)

@airufei
Copy link

airufei commented Aug 7, 2024

image failed.

Fast memory test PASSED, however your memory can still be broken. Please run a memory test for several hours if possible.

2024-08-07T16:15:48.026406273+08:00 

2024-08-07T16:15:48.026418263+08:00 ------ DUMPING CODE AROUND EIP ------

2024-08-07T16:15:48.026423335+08:00 Symbol: _Z27FP32_InnerProductSIMD16_SSEILh0EEfPKvS1_m (base: 0x7fcde915ff70)

2024-08-07T16:15:48.026427784+08:00 Module: /opt/redis-stack/lib/redisearch.so (base 0x7fcde8e54000)

2024-08-07T16:15:48.026432120+08:00 $ xxd -r -p /tmp/dump.hex /tmp/dump.bin

2024-08-07T16:15:48.026443220+08:00 $ objdump --adjust-vma=0x7fcde915ff70 -D -b binary -m i386:x86-64 /tmp/dump.bin

2024-08-07T16:15:48.026447758+08:00 ------

2024-08-07T16:15:48.026451896+08:00 8:M 07 Aug 2024 08:15:48.026 # dump of function (hexdump of 136 bytes):

2024-08-07T16:15:48.026457789+08:00 f30f1efa488d0497c5f057c90f1f4000c5f8101fc5e059064883c7404883c640c5f81067d0c5f8106fe0c5f81056f0c5f858c1c5d8594ed0c5f858c1c5d0594ee0c5f858c1c5f8104ff0c5f059cac5f058c84839f877b9c5f0c6c155c5fa58c1c5f015d1c5f0c6c9ffc5fa58c2c5fa58c9c5fa1005efb91a00c5fa5cc1c36690f30f1efac5fa100e

2024-08-07T16:15:48.026461676+08:00 

2024-08-07T16:15:48.026465740+08:00 === REDIS BUG REPORT END. Make sure to include from START to END. ===

2024-08-07T16:15:48.026469404+08:00 

2024-08-07T16:15:48.026474064+08:00        Please report the crash by opening an issue on github:

2024-08-07T16:15:48.026477784+08:00 

2024-08-07T16:15:48.026482443+08:00            http://github.com/redis/redis/issues

2024-08-07T16:15:48.026486054+08:00 

2024-08-07T16:15:48.026489994+08:00   If a Redis module was involved, please open in the module's repo instead.

2024-08-07T16:15:48.026493694+08:00 

2024-08-07T16:15:48.026497593+08:00   Suspect RAM error? Use redis-server --test-memory to verify it.

2024-08-07T16:15:48.026501208+08:00 

2024-08-07T16:15:48.026505221+08:00   Some other issues could be detected by redis-server --check-system

2024-08-07T16:15:48.118811530+08:00 Illegal instruction (core dumped)

@airufei
Copy link

airufei commented Aug 7, 2024

image failed.

Redis uses the m.daocloud.io/docker.io/redis/redis-stack-server: latest image and deploys it in k8s using Deployment mode

@yuluo-yx
Copy link
Collaborator

yuluo-yx commented Aug 7, 2024

maybe you can provide an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants